Home
last modified time | relevance | path

Searched refs:permissions_data (Results 1 – 25 of 101) sorted by relevance

12345

/external/chromium_org/extensions/common/permissions/
Dpermissions_data_unittest.cc49 return extension->permissions_data()->CheckAPIPermissionWithParam( in CheckSocketPermission()
84 return extension->permissions_data()->RequiresActionForScriptExecution( in RequiresActionForScriptExecution()
163 extension->permissions_data() in TEST()
168 EXPECT_FALSE(extension->permissions_data()->HasEffectiveAccessToAllHosts()); in TEST()
171 hosts = extension->permissions_data()->GetEffectiveHostPermissions(); in TEST()
174 EXPECT_FALSE(extension->permissions_data()->HasEffectiveAccessToAllHosts()); in TEST()
178 hosts = extension->permissions_data()->GetEffectiveHostPermissions(); in TEST()
181 EXPECT_FALSE(extension->permissions_data()->HasEffectiveAccessToAllHosts()); in TEST()
184 hosts = extension->permissions_data()->GetEffectiveHostPermissions(); in TEST()
187 EXPECT_FALSE(extension->permissions_data()->HasEffectiveAccessToAllHosts()); in TEST()
[all …]
/external/chromium_org/chrome/browser/extensions/
Dactive_tab_permission_granter.cc43 const PermissionsData* permissions_data = extension->permissions_data(); in GrantIfRequested() local
51 permissions_data->RequiresActionForScriptExecution(extension, in GrantIfRequested()
55 if (extension->permissions_data()->HasAPIPermission( in GrantIfRequested()
67 if (extension->permissions_data()->HasAPIPermission( in GrantIfRequested()
76 permissions_data->UpdateTabSpecificPermissions(tab_id_, new_permissions); in GrantIfRequested()
126 it->get()->permissions_data()->ClearTabSpecificPermissions(tab_id_); in ClearActiveExtensionsAndNotify()
Dbrowser_permissions_policy_delegate_unittest.cc77 const PermissionsData* permissions_data = extension->permissions_data(); in TEST_F() local
78 EXPECT_TRUE(permissions_data->CanAccessPage(extension, in TEST_F()
85 EXPECT_FALSE(permissions_data->CanAccessPage(extension, in TEST_F()
Dextension_special_storage_policy.cc107 extension->permissions_data()->HasAPIPermission( in GrantRightsForExtension()
109 extension->permissions_data()->HasAPIPermission( in GrantRightsForExtension()
125 if (extension->permissions_data()->HasAPIPermission( in GrantRightsForExtension()
130 if (extension->permissions_data()->HasAPIPermission( in GrantRightsForExtension()
148 extension->permissions_data()->HasAPIPermission( in RevokeRightsForExtension()
150 extension->permissions_data()->HasAPIPermission( in RevokeRightsForExtension()
165 if (extension->permissions_data()->HasAPIPermission( in RevokeRightsForExtension()
170 if (extension->permissions_data()->HasAPIPermission( in RevokeRightsForExtension()
Dactive_tab_unittest.cc110 const PermissionsData* permissions_data = extension->permissions_data(); in IsAllowed() local
112 permissions_data->CanAccessPage(extension, url, url, tab_id, -1, NULL); in IsAllowed()
114 permissions_data->CanCaptureVisiblePage(tab_id, NULL); in IsAllowed()
146 return extension->permissions_data()->HasAPIPermissionForTab( in HasTabsPermission()
152 return extension->permissions_data()->HasAPIPermissionForTab( in IsGrantedForTab()
371 const PermissionsData* permissions_data = in TEST_F() local
372 extension_with_tab_capture->permissions_data(); in TEST_F()
373 EXPECT_TRUE(permissions_data->HasAPIPermissionForTab( in TEST_F()
377 EXPECT_FALSE(permissions_data->HasAPIPermissionForTab( in TEST_F()
Dpermissions_updater.cc42 extension->permissions_data()->active_permissions()); in AddPermissions()
59 extension->permissions_data()->active_permissions()); in RemovePermissions()
84 extension->permissions_data()->active_permissions().get()); in GrantActivePermissions()
122 extension->permissions_data()->SetActivePermissions(permissions); in SetActivePermissions()
Dpermissions_updater_unittest.cc133 extension->permissions_data()->active_permissions(); in TEST_F()
135 *extension->permissions_data()->active_permissions().get()); in TEST_F()
164 *extension->permissions_data()->active_permissions().get()); in TEST_F()
200 *extension->permissions_data()->active_permissions().get()); in TEST_F()
/external/chromium_org/chrome/common/extensions/
Dextension_unittest.cc239 EXPECT_FALSE(extension->permissions_data()->CanAccessPage( in TEST()
244 EXPECT_TRUE(extension->permissions_data()->CanAccessPage( in TEST()
250 EXPECT_FALSE(extension->permissions_data()->CanAccessPage( in TEST()
256 EXPECT_TRUE(extension->permissions_data()->CanAccessPage( in TEST()
262 EXPECT_FALSE(extension->permissions_data()->CanAccessPage( in TEST()
268 EXPECT_FALSE(extension->permissions_data()->CanAccessPage( in TEST()
274 EXPECT_FALSE(extension->permissions_data()->CanRunContentScriptOnPage( in TEST()
279 EXPECT_TRUE(extension->permissions_data()->CanRunContentScriptOnPage( in TEST()
285 EXPECT_FALSE(extension->permissions_data()->CanRunContentScriptOnPage( in TEST()
290 EXPECT_TRUE(extension->permissions_data()->CanRunContentScriptOnPage( in TEST()
[all …]
/external/chromium_org/chrome/common/extensions/permissions/
Dsettings_override_permission_unittest.cc67 extension->permissions_data()->active_permissions()); in TEST_F()
72 extension->permissions_data()->GetPermissionMessageStrings(); in TEST_F()
91 extension->permissions_data()->active_permissions()); in TEST_F()
96 extension->permissions_data()->GetPermissionMessageStrings(); in TEST_F()
115 extension->permissions_data()->active_permissions()); in TEST_F()
120 extension->permissions_data()->GetPermissionMessageStrings(); in TEST_F()
139 extension->permissions_data()->active_permissions()); in TEST_F()
157 extension->permissions_data()->active_permissions()); in TEST_F()
Dpermission_set_unittest.cc134 permissions = extension->permissions_data()->active_permissions(); in TEST()
136 extension->permissions_data() in TEST()
145 permissions = extension->permissions_data()->active_permissions(); in TEST()
154 permissions = extension->permissions_data()->active_permissions(); in TEST()
161 permissions = extension->permissions_data()->active_permissions(); in TEST()
170 permissions = extension->permissions_data()->active_permissions(); in TEST()
177 permissions = extension->permissions_data()->active_permissions(); in TEST()
186 permissions = extension->permissions_data()->active_permissions(); in TEST()
194 permissions = extension->permissions_data()->active_permissions(); in TEST()
201 permissions = extension->permissions_data()->active_permissions(); in TEST()
[all …]
/external/chromium_org/chrome/renderer/extensions/
Drenderer_permissions_policy_delegate_unittest.cc71 EXPECT_TRUE(extension->permissions_data()->CanAccessPage( in TEST_F()
77 EXPECT_FALSE(extension->permissions_data()->CanAccessPage( in TEST_F()
89 EXPECT_TRUE(extension->permissions_data()->CanAccessPage( in TEST_F()
99 EXPECT_FALSE(extension->permissions_data()->CanAccessPage( in TEST_F()
Dchrome_extensions_dispatcher_delegate.cc76 extension->permissions_data()->HasAPIPermission( in InitOriginPermissions()
274 if (extension->permissions_data()->HasAPIPermission( in RequireAdditionalModules()
321 extension->permissions_data()->ClearTabSpecificPermissions(tab_id); in ClearTabSpecificPermissions()
345 extension->permissions_data()->UpdateTabSpecificPermissions( in UpdateTabSpecificPermissions()
/external/chromium_org/extensions/browser/
Dinfo_map_unittest.cc149 match->permissions_data()->HasAPIPermission( in TEST_F()
153 match->permissions_data()->HasAPIPermission( in TEST_F()
157 match->permissions_data()->HasAPIPermission(APIPermission::kTab)); in TEST_F()
163 match->permissions_data()->HasAPIPermission(APIPermission::kTab)); in TEST_F()
165 match->permissions_data()->HasAPIPermission( in TEST_F()
/external/chromium_org/chrome/browser/extensions/api/autotest_private/
Dautotest_private_api.cc35 const PermissionsData* permissions_data = ext->permissions_data(); in GetHostPermissions() local
37 effective_perm ? permissions_data->GetEffectiveHostPermissions() in GetHostPermissions()
38 : permissions_data->active_permissions()->explicit_hosts(); in GetHostPermissions()
53 ext->permissions_data()->active_permissions()->GetAPIsAsStrings(); in GetAPIPermissions()
/external/chromium_org/extensions/common/
Dextension_messages.cc36 apis(extension->permissions_data()->active_permissions()->apis()), in ExtensionMsg_Loaded_Params()
37 manifest_permissions(extension->permissions_data() in ExtensionMsg_Loaded_Params()
40 explicit_hosts(extension->permissions_data() in ExtensionMsg_Loaded_Params()
43 scriptable_hosts(extension->permissions_data() in ExtensionMsg_Loaded_Params()
55 extension->permissions_data()->SetActivePermissions(new PermissionSet( in ConvertToExtension()
/external/chromium_org/chrome/browser/background/
Dbackground_application_list_model_unittest.cc144 temporary->permissions_data()->active_permissions(); in AddBackgroundPermission()
156 extension, extension->permissions_data()->active_permissions().get()); in RemoveBackgroundPermission()
325 ext->permissions_data()->HasAPIPermission(APIPermission::kBackground)); in TEST_F()
328 bgapp->permissions_data()->HasAPIPermission(APIPermission::kBackground)); in TEST_F()
346 ext->permissions_data()->HasAPIPermission(APIPermission::kBackground)); in TEST_F()
351 bgapp->permissions_data()->HasAPIPermission(APIPermission::kBackground)); in TEST_F()
356 ext->permissions_data()->HasAPIPermission(APIPermission::kBackground)); in TEST_F()
361 bgapp->permissions_data()->HasAPIPermission(APIPermission::kBackground)); in TEST_F()
/external/chromium_org/extensions/common/manifest_handlers/
Dexternally_connectable_unittest.cc42 EXPECT_TRUE(extension->permissions_data()->HasAPIPermission( in TEST_F()
104 EXPECT_FALSE(extension->permissions_data()->HasAPIPermission( in TEST_F()
125 EXPECT_TRUE(extension->permissions_data()->HasAPIPermission( in TEST_F()
168 EXPECT_TRUE(extension->permissions_data()->HasAPIPermission( in TEST_F()
193 EXPECT_FALSE(extension->permissions_data()->HasAPIPermission( in TEST_F()
/external/chromium_org/chrome/browser/extensions/api/web_request/
Dweb_request_permissions.cc134 extension->permissions_data()->HasHostPermission(url) || in CanExtensionAccessURL()
140 if (!extension->permissions_data()->HasEffectiveAccessToAllHosts()) in CanExtensionAccessURL()
/external/chromium_org/chrome/browser/media_galleries/
Dmedia_galleries_scan_result_controller.cc117 const extensions::PermissionsData* permissions_data = in GetSubtext() local
118 extension_->permissions_data(); in GetSubtext()
119 bool has_copy_to_permission = permissions_data->CheckAPIPermissionWithParam( in GetSubtext()
121 bool has_delete_permission = permissions_data->CheckAPIPermissionWithParam( in GetSubtext()
/external/chromium_org/chrome/common/extensions/manifest_tests/
Dextension_manifests_old_unittest.cc17 EXPECT_TRUE(extension->permissions_data()->HasAPIPermission( in TEST_F()
Dextension_manifests_devtools_unittest.cc23 EXPECT_TRUE(extension->permissions_data()->HasEffectiveAccessToAllHosts()); in TEST_F()
/external/chromium_org/extensions/browser/api/socket/
Dsocket_api.cc213 if (!GetExtension()->permissions_data()->CheckAPIPermissionWithParam( in AsyncWorkStart()
278 if (!GetExtension()->permissions_data()->CheckAPIPermissionWithParam( in Work()
311 if (!GetExtension()->permissions_data()->CheckAPIPermissionWithParam( in Work()
513 if (!GetExtension()->permissions_data()->CheckAPIPermissionWithParam( in AsyncWorkStart()
727 if (!GetExtension()->permissions_data()->CheckAPIPermissionWithParam( in Work()
771 if (!GetExtension()->permissions_data()->CheckAPIPermissionWithParam( in Work()
878 if (!GetExtension()->permissions_data()->CheckAPIPermissionWithParam( in Work()
/external/chromium_org/chrome/browser/extensions/api/guest_view/
Dguest_view_internal_api.cc27 if (!GetExtension()->permissions_data()->HasAPIPermission( in RunAsync()
/external/chromium_org/chrome/browser/ui/omnibox/
Dlocation_bar.cc28 ((*i)->permissions_data()->HasAPIPermission( in IsBookmarkStarHiddenByExtension()
/external/chromium_org/chrome/browser/extensions/api/push_messaging/
Dpush_messaging_api.cc346 if (extension->permissions_data()->HasAPIPermission( in OnExtensionLoaded()
359 if (extension->permissions_data()->HasAPIPermission( in OnExtensionUnloaded()
372 extension->permissions_data()->HasAPIPermission( in OnExtensionWillBeInstalled()

12345