/external/chromium_org/chrome/common/extensions/permissions/ |
chrome_api_permissions.cc | 24 template<typename T> APIPermission* CreateAPIPermission( 34 APIPermission::ID id; 42 { APIPermission::kBackground, "background" }, 43 { APIPermission::kClipboardRead, "clipboardRead", 47 { APIPermission::kClipboardWrite, "clipboardWrite" }, 48 { APIPermission::kDeclarativeContent, "declarativeContent" }, 49 { APIPermission::kDeclarativeWebRequest, "declarativeWebRequest", 53 { APIPermission::kDesktopCapture, "desktopCapture", 57 { APIPermission::kDns, "dns" }, 58 { APIPermission::kDownloads, "downloads", APIPermissionInfo::kFlagNone [all...] |
settings_override_permission.h | 16 class SettingsOverrideAPIPermission : public APIPermission { 22 // APIPermission overrides. 25 virtual bool Check(const APIPermission::CheckParam* param) const OVERRIDE; 26 virtual bool Contains(const APIPermission* rhs) const OVERRIDE; 27 virtual bool Equal(const APIPermission* rhs) const OVERRIDE; 30 virtual APIPermission* Clone() const OVERRIDE; 31 virtual APIPermission* Diff(const APIPermission* rhs) const OVERRIDE; 32 virtual APIPermission* Union(const APIPermission* rhs) const OVERRIDE [all...] |
settings_override_permission.cc | 16 : APIPermission(permission), 54 const APIPermission::CheckParam* param) const { 58 bool SettingsOverrideAPIPermission::Contains(const APIPermission* rhs) const { 63 bool SettingsOverrideAPIPermission::Equal(const APIPermission* rhs) const { 80 APIPermission* SettingsOverrideAPIPermission::Clone() const { 84 APIPermission* SettingsOverrideAPIPermission::Diff( 85 const APIPermission* rhs) const { 90 APIPermission* SettingsOverrideAPIPermission::Union( 91 const APIPermission* rhs) const { 96 APIPermission* SettingsOverrideAPIPermission::Intersect [all...] |
settings_override_permission_unittest.cc | 68 EXPECT_TRUE(permission_set->HasAPIPermission(APIPermission::kHomepage)); 75 EXPECT_FALSE(permission_set->HasAPIPermission(APIPermission::kStartupPages)); 77 APIPermission::kSearchProvider)); 85 EXPECT_TRUE(permission_set->HasAPIPermission(APIPermission::kStartupPages)); 92 EXPECT_FALSE(permission_set->HasAPIPermission(APIPermission::kHomepage)); 94 APIPermission::kSearchProvider)); 102 EXPECT_TRUE(permission_set->HasAPIPermission(APIPermission::kSearchProvider)); 109 EXPECT_FALSE(permission_set->HasAPIPermission(APIPermission::kHomepage)); 110 EXPECT_FALSE(permission_set->HasAPIPermission(APIPermission::kStartupPages)); 119 EXPECT_TRUE(permission_set->HasAPIPermission(APIPermission::kSearchProvider)) [all...] |
permission_set_unittest.cc | 66 EXPECT_EQ(APIPermission::kTab, info->GetByName("tabs")->id()); 67 EXPECT_EQ(APIPermission::kManagement, 79 EXPECT_NE(APIPermission::kInvalid, api->id()); 80 EXPECT_NE(APIPermission::kUnknown, api->id()); 98 expected.insert(APIPermission::kBackground); 99 expected.insert(APIPermission::kManagement); 100 expected.insert(APIPermission::kTab); 111 EXPECT_EQ(tabs_name, info->GetByID(APIPermission::kTab)->name()); 112 EXPECT_EQ(APIPermission::kTab, info->GetByName("tabs")->id()); 113 EXPECT_EQ(APIPermission::kTab, info->GetByName("windows")->id()) [all...] |
bluetooth_permission.h | 23 struct CheckParam : APIPermission::CheckParam { 37 // APIPermission overrides
|
bluetooth_permission_data.h | 30 bool Check(const APIPermission::CheckParam* param) const;
|
media_galleries_permission.h | 28 struct CheckParam : public APIPermission::CheckParam { 42 // APIPermission overrides.
|
media_galleries_permission_data.h | 28 bool Check(const APIPermission::CheckParam* param) const;
|
usb_device_permission.h | 19 struct CheckParam : public APIPermission::CheckParam { 32 // APIPermission overrides
|
set_disjunction_permission.h | 24 // APIPermission::CheckParam matches any of the conditions in the set, the 29 class SetDisjunctionPermission : public APIPermission { 32 : APIPermission(info) { 38 // APIPermission overrides 43 virtual bool Check(const APIPermission::CheckParam* param) const OVERRIDE { 52 virtual bool Contains(const APIPermission* rhs) const OVERRIDE { 61 virtual bool Equal(const APIPermission* rhs) const OVERRIDE { 68 virtual APIPermission* Clone() const OVERRIDE { 74 virtual APIPermission* Diff(const APIPermission* rhs) const OVERRIDE [all...] |
/external/chromium_org/extensions/common/permissions/ |
api_permission.cc | 11 using extensions::APIPermission; 16 class SimpleAPIPermission : public APIPermission { 19 : APIPermission(permission) { } 35 const APIPermission::CheckParam* param) const OVERRIDE { 39 virtual bool Contains(const APIPermission* rhs) const OVERRIDE { 44 virtual bool Equal(const APIPermission* rhs) const OVERRIDE { 61 virtual APIPermission* Clone() const OVERRIDE { 65 virtual APIPermission* Diff(const APIPermission* rhs) const OVERRIDE { 70 virtual APIPermission* Union(const APIPermission* rhs) const OVERRIDE [all...] |
api_permission_set.h | 23 typedef APIPermission ElementType; 24 typedef APIPermission::ID ElementIDType; 39 void insert(APIPermission::ID id); 43 void insert(APIPermission* permission);
|
api_permission_set_unittest.cc | 17 apis.insert(APIPermission::kTab); 18 apis.insert(APIPermission::kBackground); 19 apis.insert(APIPermission::kProxy); 20 apis.insert(APIPermission::kClipboardWrite); 21 apis.insert(APIPermission::kPlugin); 23 EXPECT_EQ(apis.find(APIPermission::kProxy)->id(), APIPermission::kProxy); 24 EXPECT_TRUE(apis.find(APIPermission::kSocket) == apis.end()); 28 EXPECT_EQ(apis.erase(APIPermission::kTab), 1u); 31 EXPECT_EQ(apis.erase(APIPermission::kTab), 0u) [all...] |
api_permission.h | 27 // APIPermission is for handling some complex permissions. Please refer to 30 class APIPermission { 179 explicit APIPermission(const APIPermissionInfo* info); 181 virtual ~APIPermission(); 189 // Returns the APIPermission of this permission. 204 virtual bool Contains(const APIPermission* rhs) const = 0; 207 virtual bool Equal(const APIPermission* rhs) const = 0; 209 // Parses the APIPermission from |value|. Returns false if error happens. 216 virtual APIPermission* Clone() const = 0; 219 virtual APIPermission* Diff(const APIPermission* rhs) const = 0 [all...] |
permission_set.h | 74 bool HasAPIPermission(APIPermission::ID permission) const; 83 bool CheckAPIPermission(APIPermission::ID permission) const; 86 bool CheckAPIPermissionWithParam(APIPermission::ID permission, 87 const APIPermission::CheckParam* param) const; 124 void AddAPIPermission(APIPermission::ID id);
|
permissions_info.h | 30 const APIPermissionInfo* GetByID(APIPermission::ID id) const; 65 typedef std::map<APIPermission::ID, APIPermissionInfo*> IDMap;
|
permission_set.cc | 176 APIPermission::ID id) const { 187 bool PermissionSet::CheckAPIPermission(APIPermission::ID permission) const { 192 APIPermission::ID permission, 193 const APIPermission::CheckParam* param) const { 249 if (apis_.find(APIPermission::kDownloads) != apis_.end()) 250 apis_.insert(APIPermission::kDownloadsInternal); 254 if (apis_.find(APIPermission::kWebView) != apis_.end()) 255 apis_.insert(APIPermission::kWebRequestInternal); 258 if (apis_.find(APIPermission::kWebRequest) != apis_.end()) 259 apis_.insert(APIPermission::kWebRequestInternal) [all...] |
api_permission_set.cc | 32 scoped_ptr<APIPermission> permission( 112 void APIPermissionSet::insert(APIPermission::ID id) { 118 void APIPermissionSet::insert(APIPermission* permission) { 169 if (ContainsKey(map(), APIPermission::kFileSystemWrite) && 170 ContainsKey(map(), APIPermission::kFileSystemDirectory)) { 171 insert(APIPermission::kFileSystemWriteDirectory);
|
/external/chromium_org/chrome/browser/extensions/ |
suggest_permission_util.h | 21 void SuggestAPIPermissionInDevToolsConsole(APIPermission::ID permission, 26 void SuggestAPIPermissionInDevToolsConsole(APIPermission::ID permission, 34 APIPermission::ID permission, 42 APIPermission::ID permission,
|
suggest_permission_util.cc | 25 void SuggestAPIPermissionInDevToolsConsole(APIPermission::ID permission, 47 void SuggestAPIPermissionInDevToolsConsole(APIPermission::ID permission, 64 APIPermission::ID permission, 77 APIPermission::ID permission,
|
active_tab_permission_granter.cc | 46 if (extension->HasAPIPermission(APIPermission::kActiveTab)) { 53 new_apis.insert(APIPermission::kTab); 56 if (extension->HasAPIPermission(APIPermission::kTabCapture)) 57 new_apis.insert(APIPermission::kTabCaptureForTab);
|
extension_special_storage_policy.cc | 23 using extensions::APIPermission; 99 extension->HasAPIPermission(APIPermission::kUnlimitedStorage) || 100 extension->HasAPIPermission(APIPermission::kFileBrowserHandler) || 115 if (extension->HasAPIPermission(APIPermission::kUnlimitedStorage) && 119 if (extension->HasAPIPermission(APIPermission::kFileBrowserHandler)) 136 extension->HasAPIPermission(APIPermission::kUnlimitedStorage) || 137 extension->HasAPIPermission(APIPermission::kFileBrowserHandler) || 151 if (extension->HasAPIPermission(APIPermission::kUnlimitedStorage) && 155 if (extension->HasAPIPermission(APIPermission::kFileBrowserHandler))
|
/external/chromium_org/chrome/common/extensions/manifest_tests/ |
extension_manifests_old_unittest.cc | 17 extensions::APIPermission::kUnlimitedStorage));
|
/external/chromium_org/chrome/browser/extensions/api/preference/ |
preference_helpers.h | 42 extensions::APIPermission::ID permission,
|