Home
last modified time | relevance | path

Searched refs:SharedModuleInfo (Results 1 – 11 of 11) 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()
49 EXPECT_TRUE(SharedModuleInfo::IsSharedModule(extension.get())) in TEST_F()
51 EXPECT_FALSE(SharedModuleInfo::ImportsModules(extension.get())) in TEST_F()
53 EXPECT_TRUE(SharedModuleInfo::IsExportAllowed(extension.get(), "foo")) in TEST_F()
55 EXPECT_FALSE(SharedModuleInfo::IsExportAllowed(extension.get(), "foo/bar")) in TEST_F()
74 EXPECT_TRUE(SharedModuleInfo::IsImportedPath(kValidImportPath)); in TEST_F()
75 EXPECT_FALSE(SharedModuleInfo::IsImportedPath(kInvalidImportPath)); in TEST_F()
[all …]
Dshared_module_info.cc28 static base::LazyInstance<SharedModuleInfo> g_empty_shared_module_info =
31 const SharedModuleInfo& GetSharedModuleInfo(const Extension* extension) { in GetSharedModuleInfo()
32 SharedModuleInfo* info = static_cast<SharedModuleInfo*>( in GetSharedModuleInfo()
41 SharedModuleInfo::SharedModuleInfo() { in SharedModuleInfo() function in extensions::SharedModuleInfo
44 SharedModuleInfo::~SharedModuleInfo() { in ~SharedModuleInfo()
48 void SharedModuleInfo::ParseImportedPath(const std::string& path, in ParseImportedPath()
63 bool SharedModuleInfo::IsImportedPath(const std::string& path) { in IsImportedPath()
74 bool SharedModuleInfo::IsSharedModule(const Extension* extension) { in IsSharedModule()
80 bool SharedModuleInfo::IsExportAllowed(const Extension* extension, in IsExportAllowed()
87 bool SharedModuleInfo::ImportsExtensionById(const Extension* extension, in ImportsExtensionById()
[all …]
Dshared_module_info.h17 class SharedModuleInfo : public Extension::ManifestData {
19 SharedModuleInfo();
20 virtual ~SharedModuleInfo();
/external/chromium_org/chrome/browser/nacl_host/
Dnacl_browser_delegate_impl.cc27 using extensions::SharedModuleInfo;
151 if (SharedModuleInfo::IsImportedPath(path)) { in MapUrlToLocalFilePath()
155 SharedModuleInfo::ParseImportedPath(path, &new_extension_id, in MapUrlToLocalFilePath()
162 if (!SharedModuleInfo::ImportsExtensionById(extension, new_extension_id) || in MapUrlToLocalFilePath()
163 !SharedModuleInfo::IsExportAllowed(new_extension, new_relative_path)) { in MapUrlToLocalFilePath()
/external/chromium_org/chrome/common/
Dpepper_permission_util.cc53 typedef std::vector<extensions::SharedModuleInfo::ImportInfo> in IsExtensionOrSharedModuleWhitelisted()
56 extensions::SharedModuleInfo::GetImports(extension); in IsExtensionOrSharedModuleWhitelisted()
62 extensions::SharedModuleInfo::IsSharedModule(imported_extension) && in IsExtensionOrSharedModuleWhitelisted()
/external/chromium_org/chrome/browser/extensions/
Dextension_protocols.cc62 using extensions::SharedModuleInfo;
578 if (SharedModuleInfo::IsImportedPath(path)) { in MaybeCreateJob()
581 SharedModuleInfo::ParseImportedPath(path, &new_extension_id, in MaybeCreateJob()
592 if (SharedModuleInfo::IsImportedPath(first_party_path)) { in MaybeCreateJob()
595 SharedModuleInfo::ParseImportedPath(first_party_path, &first_party_id, in MaybeCreateJob()
602 if (SharedModuleInfo::ImportsExtensionById(extension, new_extension_id) && in MaybeCreateJob()
605 SharedModuleInfo::IsExportAllowed(new_extension, new_relative_path))) { in MaybeCreateJob()
Dcrx_installer.cc66 using extensions::SharedModuleInfo;
289 if (SharedModuleInfo::IsSharedModule(extension) && in AllowInstall()
479 if (SharedModuleInfo::ImportsModules(extension())) { in CheckImportsAndRequirements()
480 const std::vector<SharedModuleInfo::ImportInfo>& imports = in CheckImportsAndRequirements()
481 SharedModuleInfo::GetImports(extension()); in CheckImportsAndRequirements()
482 std::vector<SharedModuleInfo::ImportInfo>::const_iterator i; in CheckImportsAndRequirements()
488 !SharedModuleInfo::IsSharedModule(imported_module)) { in CheckImportsAndRequirements()
Dwebstore_installer.cc303 SharedModuleInfo::ImportInfo info; in Start()
310 std::list<SharedModuleInfo::ImportInfo>::const_iterator i; in Start()
358 SharedModuleInfo::ImportInfo info = pending_modules_.front(); in Observe()
374 } else if (!SharedModuleInfo::IsSharedModule(extension)) { in Observe()
439 const SharedModuleInfo::ImportInfo& info = pending_modules_.front(); in OnDownloadStarted()
Dextension_service.cc123 using extensions::SharedModuleInfo;
154 return SharedModuleInfo::IsSharedModule(extension); in IsSharedModule()
2042 std::list<SharedModuleInfo::ImportInfo>* missing_modules, in CheckImports()
2043 std::list<SharedModuleInfo::ImportInfo>* outdated_modules) { in CheckImports()
2048 if (SharedModuleInfo::ImportsModules(extension)) { in CheckImports()
2049 const std::vector<SharedModuleInfo::ImportInfo>& imports = in CheckImports()
2050 SharedModuleInfo::GetImports(extension); in CheckImports()
2051 std::vector<SharedModuleInfo::ImportInfo>::const_iterator i; in CheckImports()
2063 } else if (!SharedModuleInfo::IsSharedModule(imported_module)) { in CheckImports()
2081 std::list<SharedModuleInfo::ImportInfo> noinstalled; in SatisfyImports()
[all …]
Dwebstore_installer.h249 std::list<SharedModuleInfo::ImportInfo> pending_modules_;
Dextension_service.h376 std::list<extensions::SharedModuleInfo::ImportInfo>* missing_modules,
377 std::list<extensions::SharedModuleInfo::ImportInfo>* outdated_modules);