Home
last modified time | relevance | path

Searched refs:SharedModuleInfo (Results 1 – 15 of 15) sorted by relevance

/external/chromium_org/extensions/common/manifest_handlers/
Dshared_module_manifest_unittest.cc34 EXPECT_TRUE(SharedModuleInfo::IsSharedModule(extension.get())) in TEST_F()
36 EXPECT_FALSE(SharedModuleInfo::ImportsModules(extension.get())) in TEST_F()
38 EXPECT_TRUE(SharedModuleInfo::IsExportAllowed(extension.get(), "foo")) in TEST_F()
40 EXPECT_TRUE(SharedModuleInfo::IsExportAllowed(extension.get(), "foo/bar")) in TEST_F()
43 EXPECT_TRUE(SharedModuleInfo::IsExportAllowedByWhitelist(extension.get(), in TEST_F()
45 EXPECT_TRUE(SharedModuleInfo::IsExportAllowedByWhitelist(extension.get(), in TEST_F()
47 EXPECT_FALSE(SharedModuleInfo::IsExportAllowedByWhitelist(extension.get(), in TEST_F()
56 EXPECT_TRUE(SharedModuleInfo::IsExportAllowedByWhitelist(extension.get(), in TEST_F()
58 EXPECT_TRUE(SharedModuleInfo::IsExportAllowedByWhitelist(extension.get(), in TEST_F()
60 EXPECT_TRUE(SharedModuleInfo::IsExportAllowedByWhitelist(extension.get(), in TEST_F()
[all …]
Dshared_module_info.cc30 static base::LazyInstance<SharedModuleInfo> g_empty_shared_module_info =
33 const SharedModuleInfo& GetSharedModuleInfo(const Extension* extension) { in GetSharedModuleInfo()
34 SharedModuleInfo* info = static_cast<SharedModuleInfo*>( in GetSharedModuleInfo()
43 SharedModuleInfo::SharedModuleInfo() { in SharedModuleInfo() function in extensions::SharedModuleInfo
46 SharedModuleInfo::~SharedModuleInfo() { in ~SharedModuleInfo()
50 void SharedModuleInfo::ParseImportedPath(const std::string& path, in ParseImportedPath()
65 bool SharedModuleInfo::IsImportedPath(const std::string& path) { in IsImportedPath()
76 bool SharedModuleInfo::IsSharedModule(const Extension* extension) { in IsSharedModule()
82 bool SharedModuleInfo::IsExportAllowed(const Extension* extension, in IsExportAllowed()
89 bool SharedModuleInfo::IsExportAllowedByWhitelist(const Extension* extension, in IsExportAllowedByWhitelist()
[all …]
Dshared_module_info.h17 class SharedModuleInfo : public Extension::ManifestData {
19 SharedModuleInfo();
20 virtual ~SharedModuleInfo();
/external/chromium_org/chrome/browser/extensions/
Dshared_module_service.cc23 typedef std::vector<SharedModuleInfo::ImportInfo> ImportInfoVector;
24 typedef std::list<SharedModuleInfo::ImportInfo> ImportInfoList;
47 const ImportInfoVector& imports = SharedModuleInfo::GetImports(extension); in CheckImports()
62 } else if (!SharedModuleInfo::IsSharedModule(imported_module)) { in CheckImports()
99 SharedModuleInfo::IsSharedModule); in SatisfyImports()
110 if (SharedModuleInfo::IsSharedModule(extension)) { in GetDependentExtensions()
123 if (SharedModuleInfo::ImportsExtensionById(iter->get(), in GetDependentExtensions()
148 if (SharedModuleInfo::IsSharedModule(iter->get())) in PruneSharedModules()
151 const ImportInfoVector& imports = SharedModuleInfo::GetImports(iter->get()); in PruneSharedModules()
Dshared_module_service.h46 std::list<SharedModuleInfo::ImportInfo>* missing_modules,
47 std::list<SharedModuleInfo::ImportInfo>* outdated_modules);
Dcrx_installer.cc69 using extensions::SharedModuleInfo;
289 if (SharedModuleInfo::IsSharedModule(extension) && in AllowInstall()
480 if (SharedModuleInfo::ImportsModules(extension())) { in CheckInstall()
481 const std::vector<SharedModuleInfo::ImportInfo>& imports = in CheckInstall()
482 SharedModuleInfo::GetImports(extension()); in CheckInstall()
483 std::vector<SharedModuleInfo::ImportInfo>::const_iterator i; in CheckInstall()
488 !SharedModuleInfo::IsSharedModule(imported_module)) { in CheckInstall()
495 !SharedModuleInfo::IsExportAllowedByWhitelist(imported_module, in CheckInstall()
Dwebstore_installer.cc320 SharedModuleInfo::ImportInfo info; in Start()
327 std::list<SharedModuleInfo::ImportInfo>::const_iterator i; in Start()
389 SharedModuleInfo::ImportInfo info = pending_modules_.front(); in OnExtensionInstalled()
413 } else if (!SharedModuleInfo::IsSharedModule(extension)) { in OnExtensionInstalled()
457 const SharedModuleInfo::ImportInfo& info = pending_modules_.front(); in OnDownloadStarted()
Dwebstore_installer.h280 std::list<SharedModuleInfo::ImportInfo> pending_modules_;
Dextension_service.cc107 using extensions::SharedModuleInfo;
1820 if (SharedModuleInfo::IsSharedModule(extension)) in FinishInstallation()
/external/chromium_org/chrome/common/
Dpepper_permission_util.cc20 using extensions::SharedModuleInfo;
56 typedef std::vector<SharedModuleInfo::ImportInfo> ImportInfoVector; in IsExtensionOrSharedModuleWhitelisted()
57 const ImportInfoVector& imports = SharedModuleInfo::GetImports(extension); in IsExtensionOrSharedModuleWhitelisted()
64 SharedModuleInfo::IsSharedModule(imported_extension) && in IsExtensionOrSharedModuleWhitelisted()
/external/chromium_org/chrome/browser/ui/views/apps/app_info_dialog/
Dapp_info_header_panel.cc192 const std::vector<extensions::SharedModuleInfo::ImportInfo>& imports = in DisplayLicenses()
193 extensions::SharedModuleInfo::GetImports(app_); in DisplayLicenses()
205 if (!extensions::SharedModuleInfo::ImportsModules(app_)) in CanDisplayLicenses()
210 const std::vector<extensions::SharedModuleInfo::ImportInfo>& imports = in CanDisplayLicenses()
211 extensions::SharedModuleInfo::GetImports(app_); in CanDisplayLicenses()
/external/chromium_org/extensions/browser/
Dextension_protocols.cc65 using extensions::SharedModuleInfo;
482 if (SharedModuleInfo::IsImportedPath(path)) { in MaybeCreateJob()
485 SharedModuleInfo::ParseImportedPath(path, &new_extension_id, in MaybeCreateJob()
496 if (SharedModuleInfo::IsImportedPath(first_party_path)) { in MaybeCreateJob()
499 SharedModuleInfo::ParseImportedPath(first_party_path, &first_party_id, in MaybeCreateJob()
506 if (SharedModuleInfo::ImportsExtensionById(extension, new_extension_id) && in MaybeCreateJob()
509 SharedModuleInfo::IsExportAllowed(new_extension, new_relative_path))) { in MaybeCreateJob()
Dinfo_map.cc197 if (SharedModuleInfo::IsImportedPath(path)) { in MapUrlToLocalFilePath()
201 SharedModuleInfo::ParseImportedPath( in MapUrlToLocalFilePath()
207 if (!SharedModuleInfo::ImportsExtensionById(extension, new_extension_id) || in MapUrlToLocalFilePath()
208 !SharedModuleInfo::IsExportAllowed(new_extension, new_relative_path)) { in MapUrlToLocalFilePath()
/external/chromium_org/chrome/common/extensions/
Dmanifest_url_handler.cc61 !SharedModuleInfo::IsSharedModule(extension); in GetHomepageURL()
/external/chromium_org/extensions/browser/api/runtime/
Druntime_api.cc318 if (extension && SharedModuleInfo::IsSharedModule(extension)) { in DispatchOnInstalledEvent()