/external/chromium_org/chrome/browser/extensions/ |
extension_toolbar_model.h | 15 #include "extensions/common/extension.h" 40 // MVC. Also used for signaling view changes such as showing extension popups. 43 // An extension with a browser action button has been added, and should go 45 virtual void BrowserActionAdded(const extensions::Extension* extension, 48 // The browser action button for |extension| should no longer show. 49 virtual void BrowserActionRemoved(const extensions::Extension* extension) {} 51 // The browser action button for |extension| has been moved to |index|. 52 virtual void BrowserActionMoved(const extensions::Extension* extension [all...] |
process_manager_browsertest.cc | 21 // Test that basic extension loading creates the appropriate ExtensionHosts 31 // Load an extension with a background page. 32 scoped_refptr<const Extension> extension = local 36 ASSERT_TRUE(extension.get()); 41 EXPECT_TRUE(pm->GetBackgroundHostForExtension(extension->id())); 42 EXPECT_TRUE(pm->GetSiteInstanceForURL(extension->url())); 43 EXPECT_EQ(1u, pm->GetRenderViewHostsForExtension(extension->id()).size()); 44 EXPECT_FALSE(pm->IsBackgroundHostClosing(extension->id())); 45 EXPECT_EQ(0, pm->GetLazyKeepaliveCount(extension.get())) [all...] |
extension_protocols_unittest.cc | 20 #include "extensions/common/extension.h" 30 scoped_refptr<Extension> CreateTestExtension(const std::string& name, 43 scoped_refptr<Extension> extension( 44 Extension::Create(path, Manifest::INTERNAL, manifest, 45 Extension::NO_FLAGS, &error)); 46 EXPECT_TRUE(extension.get()) << error; 47 return extension; 50 scoped_refptr<Extension> CreateWebStoreExtension() { 61 scoped_refptr<Extension> extension 165 scoped_refptr<Extension> extension = local 227 scoped_refptr<Extension> extension = CreateWebStoreExtension(); local 264 scoped_refptr<Extension> extension = CreateTestResponseHeaderExtension(); local 302 scoped_refptr<Extension> extension = CreateTestExtension("foo", false); local [all...] |
/external/chromium_org/extensions/browser/ |
info_map_unittest.cc | 11 #include "extensions/common/extension.h" 33 // Returns a barebones test Extension object with the given name. 34 static scoped_refptr<Extension> CreateExtension(const std::string& name) { 46 scoped_refptr<Extension> extension = local 47 Extension::Create(path.AppendASCII(name), 50 Extension::NO_FLAGS, 52 EXPECT_TRUE(extension.get()) << error; 54 return extension; 57 static scoped_refptr<Extension> LoadManifest(const std::string& dir 69 scoped_refptr<Extension> extension = local [all...] |
/external/chromium_org/chrome/browser/sync/test/integration/ |
extensions_helper.h | 30 // Installs the extension for the given index to |profile|, and returns the 31 // extension ID of the new extension. 34 // Installs the extension for the given index to all profiles (including the 35 // verifier), and returns the extension ID of the new extension. 38 // Uninstalls the extension for the given index from |profile|. Assumes that 49 // Enables the extension for the given index on |profile|. 52 // Disables the extension for the given index on |profile|. 55 // Returns true if the extension with index |index| is enabled on |profile| [all...] |
/external/chromium_org/chrome/common/extensions/api/extension_action/ |
page_action_handler.cc | 11 #include "extensions/common/extension.h" 26 bool PageActionHandler::Parse(Extension* extension, base::string16* error) { 30 if (extension->manifest()->HasKey(keys::kPageActions)) { 32 if (!extension->manifest()->GetList(keys::kPageActions, &list_value)) { 51 } else if (extension->manifest()->HasKey(keys::kPageAction)) { 52 if (!extension->manifest()->GetDictionary(keys::kPageAction, 59 // An extension cannot have both browser and page actions. 60 if (extension->manifest()->HasKey(keys::kBrowserAction)) { 67 page_action_info = ActionInfo::Load(extension, page_action_value, error) [all...] |
script_badge_handler.cc | 12 #include "extensions/common/extension.h" 33 bool ScriptBadgeHandler::Parse(Extension* extension, base::string16* error) { 37 if (!extension->manifest()->HasKey(keys::kScriptBadge)) { 38 SetActionInfoDefaults(extension, action_info.get()); 39 ActionInfo::SetScriptBadgeInfo(extension, action_info.release()); 47 extension->AddInstallWarning( 52 if (!extension->manifest()->GetDictionary(keys::kScriptBadge, &dict)) { 57 action_info = ActionInfo::Load(extension, dict, error); 62 // Script badges always use their extension's title and icon so users can rel [all...] |
script_badge_manifest_unittest.cc | 39 scoped_refptr<Extension> extension( 43 .Set("name", "my extension") 55 ASSERT_TRUE(extension.get()); 57 ActionInfo::GetScriptBadgeInfo(extension.get()); 59 EXPECT_THAT(StripMissingFlagWarning(extension->install_warnings()), 76 EXPECT_EQ("my extension", script_badge_info->default_title); 81 scoped_refptr<Extension> extension( 85 .Set("name", "my extension") [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
Extensions.java | 48 * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension 59 private final List<Extension> extensions; 67 // the flag showing is there any unsupported critical extension 72 // Extension objects as values 73 private volatile HashMap<String, Extension> oidMap; 85 public Extensions(List<Extension> extensions) { 138 for (Extension extension : extensions) { 139 String oid = extension.getExtnID(); 140 if (extension.getCritical()) 165 localOidMap.put(extension.getExtnID(), extension); local 200 Extension extension = getExtensionByOID("2.5.29.15"); local 226 Extension extension = getExtensionByOID("2.5.29.37"); local 254 Extension extension = getExtensionByOID("2.5.29.19"); local 341 Extension extension = getExtensionByOID("2.5.29.29"); local [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_context_menu_model.h | 15 class Extension; 19 // The menu model for the context menu for extension action icons (browser and 38 // Creates a menu model for the given extension action. If 42 ExtensionContextMenuModel(const Extension* extension, 61 // Gets the extension we are displaying the menu for. Returns NULL if the 62 // extension has been uninstalled and no longer exists. 63 const Extension* GetExtension() const; 65 // A copy of the extension's id. 68 // The extension action we are displaying the menu for (or NULL) [all...] |
extension_pref_value_map.h | 17 // extension pref values (incognito and regular) are stored herein and 22 // The extension that has been installed later takes higher precedence. 25 // - The effective regular extension pref value is determined by the regular 26 // extension pref value of the extension with the highest precedence. 27 // - The effective incognito extension pref value is determined by the incognito 28 // extension pref value of the extension with the highest precedence, unless 29 // another extension with higher precedence overrides it with a regular 30 // extension pref value [all...] |
extension_toolbar_model_browsertest.cc | 40 virtual void BrowserActionAdded(const Extension* extension, int index) { 44 virtual void BrowserActionRemoved(const Extension* extension) { 48 virtual void BrowserActionMoved(const Extension* extension, int index) { 52 const Extension* ExtensionAt(int index) { 72 // Load an extension with no browser action. 77 // This extension should not be in the model (has no browser action). 82 // Load an extension with a browser action 90 const Extension* extension = ExtensionAt(0); local [all...] |
extension_toolbar_model.cc | 11 #include "chrome/common/extensions/extension.h" 49 void ExtensionToolbarModel::MoveBrowserAction(const Extension* extension, 51 ExtensionList::iterator pos = std::find(begin(), end(), extension); 62 toolitems_.insert(iter, make_scoped_refptr(extension)); 72 toolitems_.push_back(make_scoped_refptr(extension)); 75 FOR_EACH_OBSERVER(Observer, observers_, BrowserActionMoved(extension, index)); 97 const Extension* extension = NULL; local 99 extension = Details<UnloadedExtensionInfo>(details)->extension 185 const Extension* extension = service_->extensions()->at(i); local [all...] |
extension_toolbar_model.h | 10 #include "chrome/common/extensions/extension.h" 31 // An extension with a browser action button has been added, and should go 33 virtual void BrowserActionAdded(const Extension* extension, int index) {} 35 // The browser action button for |extension| should no longer show. 36 virtual void BrowserActionRemoved(const Extension* extension) {} 38 // The browser action button for |extension| has been moved to |index|. 39 virtual void BrowserActionMoved(const Extension* extension, int index) { [all...] |
/external/chromium_org/chrome/browser/extensions/api/module/ |
module.cc | 18 namespace extension { namespace in namespace:extensions 22 // A preference for storing the extension's update URL data. If not empty, the 24 // a new version of the extension is available. 36 } // namespace extension 43 extension_id(), extension::kUpdateURLData, new base::StringValue(data)); 50 const Extension* extension = GetExtension(); local 53 extension_util::IsIncognitoEnabled(extension->id(), ext_service))); 60 const Extension* extension = GetExtension() local [all...] |
/external/chromium_org/chrome/browser/ui/gtk/extensions/ |
extension_installed_bubble_gtk.h | 18 class Extension; 22 // extension. Depending on the type of extension, the BubbleGtk will 39 // the extension has loaded. |extension| is the installed extension. |browser| 41 // icon of the extension. 42 static void Show(const extensions::Extension* extension, 47 ExtensionInstalledBubbleGtk(const extensions::Extension* extension [all...] |
/external/chromium_org/chrome/browser/ui/views/extensions/ |
extension_installed_bubble_view.h | 15 class Extension; 19 // extension. Depending on the type of extension, the Bubble will 32 // the extension has loaded. |extension| is the installed extension. |browser| 34 // icon of the extension. 35 static void Show(const extensions::Extension* extension, 40 ExtensionInstalledBubbleView(const extensions::Extension* extension [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
extension_to_load.py | 18 'Extension path not a directory %s' % path) 24 'Component extension %s must have a public key' % path) 29 # the extension path. 36 """Unique extension id of this extension.""" 38 # Calculate extension id from the public key. 41 # Calculate extension id based on the path on the device. 49 """Path to extension source directory.""" 54 """Path to extension destination directory, for remote instances of 64 """Whether this extension should be loaded as a component extension."" [all...] |
/external/chromium/chrome/browser/sidebar/ |
sidebar_container.cc | 9 #include "chrome/common/extensions/extension.h" 36 const Extension* extension = GetExtension(); local 37 if (extension && extension->is_app()) { 40 process->set_installed_app(extension); 43 BindingsPolicy::EXTENSION); 55 const Extension* extension = GetExtension(); local 56 if (!extension) 82 const Extension* extension = GetExtension(); local [all...] |
/external/chromium_org/apps/ |
app_restore_service_browsertest.cc | 16 #include "extensions/common/extension.h" 18 using extensions::Extension; 35 const Extension* extension = LoadExtension( local 37 ASSERT_TRUE(extension); 41 ASSERT_TRUE(extension_prefs->IsExtensionRunning(extension->id())); 43 // Wait for the extension to get suspended. 47 ASSERT_FALSE(extension_prefs->IsExtensionRunning(extension->id())); 50 extension_prefs->SetExtensionRunning(extension->id(), true); 78 const Extension* extension local 123 const Extension* extension = local [all...] |
/external/chromium_org/chrome/common/extensions/api/commands/ |
commands_manifest_unittest.cc | 35 scoped_refptr<Extension> extension = local 37 ASSERT_TRUE(extension.get()); 39 const CommandMap* commands = CommandsInfo::GetNamedCommands(extension.get()); 50 CommandsInfo::GetBrowserActionCommand(extension.get()); 58 CommandsInfo::GetPageActionCommand(extension.get()); 72 scoped_refptr<Extension> extension = local 77 scoped_refptr<Extension> extension local 87 scoped_refptr<Extension> extension = local [all...] |
/external/chromium_org/extensions/common/manifest_handlers/ |
csp_info.cc | 26 "script-src 'self' chrome-extension-resource:; object-src 'self'"; 29 "'self' data: chrome-extension-resource:" 32 "default-src 'self' chrome-extension-resource:;" 58 const Extension* extension) { 60 extension->GetManifestData(keys::kContentSecurityPolicy)); 66 const Extension* extension, 68 return SandboxedPageInfo::IsSandboxedPage(extension, relative_path) ? 69 SandboxedPageInfo::GetContentSecurityPolicy(extension) [all...] |
shared_module_manifest_unittest.cc | 7 #include "extensions/common/extension.h" 32 scoped_refptr<Extension> extension = LoadAndExpectSuccess(manifest); local 34 EXPECT_TRUE(SharedModuleInfo::IsSharedModule(extension.get())) 36 EXPECT_FALSE(SharedModuleInfo::ImportsModules(extension.get())) 38 EXPECT_TRUE(SharedModuleInfo::IsExportAllowed(extension.get(), "foo")) 40 EXPECT_TRUE(SharedModuleInfo::IsExportAllowed(extension.get(), "foo/bar")) 47 scoped_refptr<Extension> extension = LoadAndExpectSuccess(manifest); local 49 EXPECT_TRUE(SharedModuleInfo::IsSharedModule(extension.get()) 87 scoped_refptr<Extension> extension = LoadAndExpectSuccess(manifest); local [all...] |
/external/chromium/chrome/browser/sync/protocol/ |
extension_specifics.proto | 5 // Sync protocol datatype extension for extensions. 19 // Properties of extension sync objects. 24 // Globally unique id for this extension. 29 // Auto-update URL to use for this extension. May be blank, in 33 // Whether or not this extension is enabled. 35 // Whether or not this extension is enabled in incognito mode. 38 // The name of the extension. Used only for debugging. 43 optional ExtensionSpecifics extension = 48119;
|
/external/chromium/chrome/common/extensions/docs/examples/api/messaging/timer/ |
page.js | 1 chrome.extension.onConnect.addListener(function(port) { 7 chrome.extension.onRequest.addListener(
|