/external/chromium_org/extensions/common/manifest_handlers/ |
permissions_parser.cc | 13 #include "extensions/common/extension.h" 34 struct ManifestPermissions : public Extension::ManifestData { 51 bool CanSpecifyExperimentalPermission(const Extension* extension) { 52 if (extension->location() == Manifest::COMPONENT) 63 if (extension->from_webstore()) 69 // Checks whether the host |pattern| is allowed for the given |extension|, 71 bool CanSpecifyHostPermission(const Extension* extension, 77 ExtensionsClient::Get()->GetPermittedChromeSchemeHosts(extension, [all...] |
background_info.h | 12 #include "extensions/common/extension.h" 18 class BackgroundInfo : public Extension::ManifestData { 23 static GURL GetBackgroundURL(const Extension* extension); 25 const Extension* extension); 26 static bool HasBackgroundPage(const Extension* extension); 27 static bool HasPersistentBackgroundPage(const Extension* extension); [all...] |
icons_handler.cc | 14 #include "extensions/common/extension.h" 29 const ExtensionIconSet& IconsInfo::GetIcons(const Extension* extension) { 31 extension->GetManifestData(keys::kIcons)); 37 const Extension* extension, 40 const std::string& path = GetIcons(extension).Get(size, match_type); 41 return path.empty() ? ExtensionResource() : extension->GetResource(path); 45 GURL IconsInfo::GetIconURL(const Extension* extension, [all...] |
web_accessible_resources_info.cc | 22 const WebAccessibleResourcesInfo* GetResourcesInfo(const Extension* extension) { 24 extension->GetManifestData(keys::kWebAccessibleResources)); 37 const Extension* extension, 41 if (extension->manifest_version() < 2 && 42 !WebAccessibleResourcesInfo::HasWebAccessibleResources(extension)) 45 const WebAccessibleResourcesInfo* info = GetResourcesInfo(extension); 47 extension->ResourceMatches( 53 const Extension* extension) [all...] |
/external/chromium_org/chrome/common/extensions/manifest_handlers/ |
content_scripts_handler.h | 10 #include "extensions/common/extension.h" 18 struct ContentScriptsInfo : public Extension::ManifestData { 22 // Paths to the content scripts the extension contains (possibly empty). 25 // Returns the content scripts for the extension (if the extension has 27 static const UserScriptList& GetContentScripts(const Extension* extension); 29 // Returns the list of hosts that this extension can run content scripts on. 30 static URLPatternSet GetScriptableHosts(const Extension* extension); [all...] |
app_launch_info.cc | 55 const AppLaunchInfo& GetAppLaunchInfo(const Extension* extension) { 57 extension->GetManifestData(keys::kLaunch)); 74 const Extension* extension) { 75 return GetAppLaunchInfo(extension).launch_local_path_; 80 const Extension* extension) { 81 return GetAppLaunchInfo(extension).launch_web_url_; 86 const Extension* extension) [all...] |
app_launch_info.h | 12 #include "extensions/common/extension.h" 20 class AppLaunchInfo : public Extension::ManifestData { 25 // Get the local path inside the extension to use with the launcher. 26 static const std::string& GetLaunchLocalPath(const Extension* extension); 29 static const GURL& GetLaunchWebURL(const Extension* extension); 37 const Extension* extension); 41 static int GetLaunchWidth(const Extension* extension) [all...] |
synthesize_browser_action_handler.cc | 19 bool SynthesizeBrowserActionHandler::Parse(Extension* extension, 24 if (extension->location() == Manifest::COMPONENT || 25 extension->location() == Manifest::EXTERNAL_COMPONENT) 28 if (extension->manifest()->HasKey(manifest_keys::kSynthesizeBrowserAction)) 29 return false; // This key is reserved, no extension should be using it. 31 if (!extension->manifest()->HasKey(manifest_keys::kBrowserAction) && 32 !extension->manifest()->HasKey(manifest_keys::kPageAction)) 33 ActionInfo::SetBrowserActionInfo(extension, new ActionInfo());
|
ui_overrides_handler.h | 9 #include "extensions/common/extension.h" 19 struct UIOverrides : public Extension::ManifestData { 23 static const UIOverrides* Get(const Extension* extension); 25 static bool RemovesBookmarkButton(const Extension* extension); 26 static bool RemovesBookmarkShortcut(const Extension* extension); 27 static bool RemovesBookmarkOpenPagesShortcut(const Extension* extension); [all...] |
automation_unittest.cc | 23 AutomationInfo* GetAutomationInfo(scoped_refptr<Extension> extension) { 25 extension->GetManifestData(manifest_keys::kAutomation)); 33 scoped_refptr<Extension> extension = local 35 ASSERT_TRUE(extension.get()); 38 extension->permissions_data()->GetPermissionMessageStrings(); 41 const AutomationInfo* info = AutomationInfo::Get(extension.get()); 46 scoped_refptr<Extension> extension local 65 scoped_refptr<Extension> extension = local 84 scoped_refptr<Extension> extension = LoadAndExpectWarning( local 116 scoped_refptr<Extension> extension = local 140 scoped_refptr<Extension> extension = local 159 scoped_refptr<Extension> extension = local 186 scoped_refptr<Extension> extension = local 205 scoped_refptr<Extension> extension = local 224 scoped_refptr<Extension> extension = local 242 scoped_refptr<Extension> extension = local 262 scoped_refptr<Extension> extension = LoadAndExpectWarning( local [all...] |
/external/chromium_org/extensions/browser/ |
extension_registry_observer.h | 9 #include "extensions/common/extension.h" 17 class Extension; 27 // Called after an extension is loaded. The extension will exclusively exist 31 const Extension* extension) {} 33 // Called after an extension is unloaded. The extension no longer exists in 36 const Extension* extension, [all...] |
management_policy.cc | 11 void GetExtensionNameAndId(const Extension* extension, 14 // The extension may be NULL in testing. 15 *id = extension ? extension->id() : "[test]"; 16 *name = extension ? extension->name() : "test"; 27 bool ManagementPolicy::Provider::UserMayLoad(const Extension* extension, 33 const Extension* extension, base::string16* error) const [all...] |
/external/chromium_org/extensions/common/features/ |
feature.cc | 13 #include "extensions/common/extension.h" 39 const Extension* extension) { 40 return IsAvailableToManifest(extension->id(), 41 extension->GetType(), 42 extension->location(), 43 extension->manifest_version());
|
/external/chromium_org/extensions/common/api/bluetooth/ |
bluetooth_manifest_data.cc | 21 BluetoothManifestData* BluetoothManifestData::Get(const Extension* extension) { 23 extension->GetManifestData(manifest_keys::kBluetooth)); 28 const Extension* extension, 30 const BluetoothManifestData* data = BluetoothManifestData::Get(extension); 31 return data && data->permission()->CheckRequest(extension, request); 36 const Extension* extension) { 37 const BluetoothManifestData* data = BluetoothManifestData::Get(extension); [all...] |
/external/chromium_org/chrome/browser/chromeos/extensions/ |
device_local_account_management_policy_provider.cc | 12 #include "extensions/common/extension.h" 58 "edhhaiphkklkcfcbnlbpbiepchnkgkpn", // Helper.extension demo 101 const extensions::Extension* extension, 104 // Allow extension if it is an externally hosted component of Chrome. 105 if (extension->location() == 110 // Allow extension if its type is whitelisted for use in public sessions. 111 if (extension->GetType() == extensions::Manifest::TYPE_HOSTED_APP) 114 // Allow extension if its specific ID is whitelisted for use in public 117 if (extension->id() == kPublicSessionWhitelist[i] [all...] |
/external/chromium_org/chrome/common/extensions/api/extension_action/ |
browser_action_handler.cc | 11 #include "extensions/common/extension.h" 25 bool BrowserActionHandler::Parse(Extension* extension, 28 if (!extension->manifest()->GetDictionary( 34 scoped_ptr<ActionInfo> action_info = ActionInfo::Load(extension, dict, error); 38 ActionInfo::SetBrowserActionInfo(extension, action_info.release()); 44 const Extension* extension, 47 const ActionInfo* action = ActionInfo::GetBrowserActionInfo(extension); 51 extension, [all...] |
/external/chromium_org/chrome/common/extensions/manifest_tests/ |
extension_manifests_homepage_unittest.cc | 8 #include "extensions/common/extension.h" 18 scoped_refptr<extensions::Extension> extension( 34 scoped_refptr<extensions::Extension> extension( 37 extensions::ManifestURL::GetHomepageURL(extension.get())); 41 extension = LoadAndExpectSuccess("homepage_google_hosted.json"); 43 extensions::ManifestURL::GetHomepageURL(extension.get()).spec(), 47 extension = LoadAndExpectSuccess("homepage_externally_hosted.json"); 48 EXPECT_EQ(GURL(), extensions::ManifestURL::GetHomepageURL(extension.get())) [all...] |
/external/chromium_org/chrome/browser/extensions/ |
extension_special_storage_policy.cc | 21 #include "extensions/common/extension.h" 27 using extensions::Extension; 92 const extensions::Extension* extension) { 93 return extension->is_hosted_app() && !extension->from_bookmark(); 104 const extensions::Extension* extension) { 105 DCHECK(extension); 106 if (!(NeedsProtection(extension) || [all...] |
active_script_controller.cc | 29 #include "extensions/common/extension.h" 42 // Returns true if the extension should be regarded as a "permitted" extension 48 bool ShouldRecordExtension(const Extension* extension) { 49 return extension->ShouldDisplayInExtensionSettings() && 50 !Manifest::IsPolicyLocation(extension->location()) && 51 !Manifest::IsComponentLocation(extension->location()) && 52 !PermissionsData::CanExecuteScriptEverywhere(extension) && 53 extension->permissions_data( 246 const Extension* extension = local [all...] |
extension_action_manager_unittest.cc | 30 // Build an extension, populating |action_type| key with |action|, and 32 scoped_refptr<Extension> BuildExtension(DictionaryBuilder& extension_icons, 36 // Returns true if |action|'s title matches |extension|'s name. 37 bool TitlesMatch(const Extension& extension, const ExtensionAction& action); 40 // |extension|'s icon for size |extension_key|; 41 bool IconsMatch(const Extension& extension, 46 // Returns the appropriate action for |extension| according to |action_type|. 48 const Extension& extension) 76 scoped_refptr<Extension> extension = ExtensionBuilder() local 117 scoped_refptr<Extension> extension = BuildExtension( local 188 scoped_refptr<Extension> extension = BuildExtension( local [all...] |
extension_nacl_browsertest.cc | 29 using extensions::Extension; 37 // .nexe is part of an extension from the Chrome Webstore. 58 const Extension* InstallExtension(const base::FilePath& file_path, 62 const Extension* extension = NULL; local 66 extension = service->GetExtensionById(kExtensionId, false); 71 // Install the extension from a folder so it's unpacked. 73 extension = service->GetExtensionById(kExtensionId, false); 80 extension = service->GetExtensionById(last_loaded_extension_id(), 88 extension = service->GetExtensionById(last_loaded_extension_id() 154 const Extension* extension = InstallExtension(INSTALL_TYPE_FROM_WEBSTORE); local 164 const Extension* extension = InstallExtension(INSTALL_TYPE_NON_WEBSTORE); local 174 const Extension* extension = InstallExtension(INSTALL_TYPE_COMPONENT); local 185 const Extension* extension = InstallExtension(INSTALL_TYPE_UNPACKED); local 197 const Extension* extension = InstallExtension(INSTALL_TYPE_FROM_WEBSTORE); local 216 const Extension* extension = InstallHostedApp(); local [all...] |
convert_user_script_unittest.cc | 18 #include "extensions/common/extension.h" 45 scoped_refptr<Extension> extension(ConvertUserScriptToExtension( 49 ASSERT_TRUE(extension.get()); 54 EXPECT_TRUE(ext_dir.Set(extension->path())); 56 // Validate generated extension metadata. 57 EXPECT_EQ("My user script", extension->name()); 58 EXPECT_EQ("2.2.2", extension->VersionString()); 59 EXPECT_EQ("Does totally awesome stuff.", extension->description()); 61 extension->public_key()) [all...] |
active_tab_unittest.cc | 27 #include "extensions/common/extension.h" 41 scoped_refptr<const Extension> CreateTestExtension( 52 .Set("name", "Extension with ID " + id) 71 extension(CreateTestExtension("deadbeef", true, false)), 94 bool IsAllowed(const scoped_refptr<const Extension>& extension, 96 return IsAllowed(extension, url, PERMITTED_BOTH, tab_id()); 99 bool IsAllowed(const scoped_refptr<const Extension>& extension, 102 return IsAllowed(extension, url, feature, tab_id()) 159 scoped_refptr<const Extension> extension; member in class:extensions::__anon8242::ActiveTabTest [all...] |
extension_gcm_app_handler.cc | 18 #include "extensions/common/extension.h" 25 const char kDummyAppId[] = "extension.guard.dummy.id"; 30 bool IsGCMPermissionEnabled(const Extension* extension) { 31 return extension->permissions_data()->HasAPIPermission(APIPermission::kGcm); 54 for (ExtensionSet::const_iterator extension = enabled_extensions.begin(); 55 extension != enabled_extensions.end(); 56 ++extension) { 57 if (IsGCMPermissionEnabled(extension->get())) 58 GetGCMDriver()->RemoveAppHandler((*extension)->id()) [all...] |
/external/chromium_org/chrome/common/extensions/ |
manifest_url_handler.h | 10 #include "extensions/common/extension.h" 20 // that may be specified in the manifest of an extension. 21 struct ManifestURL : public Extension::ManifestData { 24 // Returns the DevTools Page for this extension. 25 static const GURL& GetDevToolsPage(const Extension* extension); 27 // Returns the Homepage URL for this extension. 31 static const GURL GetHomepageURL(const Extension* extension); 33 // Returns true if the extension specified a valid home page url in th [all...] |