/external/chromium_org/extensions/common/ |
D | csp_validator_unittest.cc | 11 using extensions::Manifest; 27 ContentSecurityPolicyIsSecure(std::string(), Manifest::TYPE_EXTENSION)); in TEST() 29 Manifest::TYPE_EXTENSION)); in TEST() 32 "default-src *", Manifest::TYPE_EXTENSION)); in TEST() 34 "default-src 'self'", Manifest::TYPE_EXTENSION)); in TEST() 36 "default-src 'none'", Manifest::TYPE_EXTENSION)); in TEST() 38 "default-src 'self' ftp://google.com", Manifest::TYPE_EXTENSION)); in TEST() 40 "default-src 'self' https://google.com", Manifest::TYPE_EXTENSION)); in TEST() 43 "default-src *; default-src 'self'", Manifest::TYPE_EXTENSION)); in TEST() 45 "default-src 'self'; default-src *", Manifest::TYPE_EXTENSION)); in TEST() [all …]
|
D | manifest.cc | 30 int GetLocationRank(Manifest::Location location) { in GetLocationRank() 36 case Manifest::COMPONENT: in GetLocationRank() 40 case Manifest::EXTERNAL_COMPONENT: in GetLocationRank() 46 case Manifest::EXTERNAL_POLICY: in GetLocationRank() 50 case Manifest::EXTERNAL_POLICY_DOWNLOAD: in GetLocationRank() 57 case Manifest::COMMAND_LINE: in GetLocationRank() 61 case Manifest::UNPACKED: in GetLocationRank() 67 case Manifest::EXTERNAL_REGISTRY: in GetLocationRank() 71 case Manifest::EXTERNAL_PREF: in GetLocationRank() 75 case Manifest::EXTERNAL_PREF_DOWNLOAD: in GetLocationRank() [all …]
|
D | manifest_test.h | 70 extensions::Manifest::Location location = 71 extensions::Manifest::INTERNAL, 76 extensions::Manifest::Location location = 77 extensions::Manifest::INTERNAL, 82 extensions::Manifest::Location location = 83 extensions::Manifest::INTERNAL, 89 extensions::Manifest::Location location = 90 extensions::Manifest::INTERNAL, 96 extensions::Manifest::Location location = 97 extensions::Manifest::INTERNAL, [all …]
|
/external/chromium_org/content/renderer/manifest/ |
D | manifest_parser_unittest.cc | 18 Manifest ParseManifest(const base::StringPiece& json, in ParseManifest() 37 Manifest manifest = ParseManifest(""); in TEST_F() 44 ASSERT_EQ(manifest.display, Manifest::DISPLAY_MODE_UNSPECIFIED); in TEST_F() 49 Manifest manifest = ParseManifest("{}"); in TEST_F() 56 ASSERT_EQ(manifest.display, Manifest::DISPLAY_MODE_UNSPECIFIED); in TEST_F() 63 Manifest manifest = ParseManifest("{ \"name\": \"foo\" }"); in TEST_F() 70 Manifest manifest = ParseManifest("{ \"name\": \" foo \" }"); in TEST_F() 76 Manifest manifest = ParseManifest("{ \"name\": {} }"); in TEST_F() 82 Manifest manifest = ParseManifest("{ \"name\": 42 }"); in TEST_F() 90 Manifest manifest = ParseManifest("{ \"short_name\": \"foo\" }"); in TEST_F() [all …]
|
D | manifest_parser.cc | 95 Manifest::DisplayMode ParseDisplay(const base::DictionaryValue& dictionary) { in ParseDisplay() 99 return Manifest::DISPLAY_MODE_UNSPECIFIED; in ParseDisplay() 102 return Manifest::DISPLAY_MODE_FULLSCREEN; in ParseDisplay() 104 return Manifest::DISPLAY_MODE_STANDALONE; in ParseDisplay() 106 return Manifest::DISPLAY_MODE_MINIMAL_UI; in ParseDisplay() 108 return Manifest::DISPLAY_MODE_BROWSER; in ParseDisplay() 110 return Manifest::DISPLAY_MODE_UNSPECIFIED; in ParseDisplay() 167 return Manifest::Icon::kDefaultDensity; in ParseIconDensity() 245 std::vector<Manifest::Icon> ParseIcons(const base::DictionaryValue& dictionary, in ParseIcons() 247 std::vector<Manifest::Icon> icons; in ParseIcons() [all …]
|
/external/chromium_org/extensions/common/features/ |
D | simple_feature_unittest.cc | 20 Manifest::Type extension_type; 21 Manifest::Location location; 28 Manifest::Location manifest_location) { in LocationIsAvailable() 33 Manifest::TYPE_UNKNOWN, in LocationIsAvailable() 44 {"", Manifest::TYPE_UNKNOWN, Manifest::INVALID_LOCATION, in TEST() 46 {"random-extension", Manifest::TYPE_UNKNOWN, Manifest::INVALID_LOCATION, in TEST() 48 {"", Manifest::TYPE_LEGACY_PACKAGED_APP, Manifest::INVALID_LOCATION, in TEST() 50 {"", Manifest::TYPE_UNKNOWN, Manifest::INVALID_LOCATION, in TEST() 52 {"", Manifest::TYPE_UNKNOWN, Manifest::COMPONENT, in TEST() 54 {"", Manifest::TYPE_UNKNOWN, Manifest::INVALID_LOCATION, in TEST() [all …]
|
D | complex_feature_unittest.cc | 47 Manifest::TYPE_EXTENSION, in TEST() 48 Manifest::INVALID_LOCATION, in TEST() 56 Manifest::TYPE_LEGACY_PACKAGED_APP, in TEST() 57 Manifest::INVALID_LOCATION, in TEST() 65 Manifest::TYPE_EXTENSION, in TEST() 66 Manifest::INVALID_LOCATION, in TEST() 72 Manifest::TYPE_LEGACY_PACKAGED_APP, in TEST() 73 Manifest::INVALID_LOCATION, in TEST() 107 Manifest::TYPE_EXTENSION, in TEST() 108 Manifest::INVALID_LOCATION, in TEST() [all …]
|
D | simple_feature.cc | 28 Manifest::Type type, in IsAvailableToManifestForBind() 29 Manifest::Location location, in IsAvailableToManifestForBind() 47 extension_types["extension"] = Manifest::TYPE_EXTENSION; in Mappings() 48 extension_types["theme"] = Manifest::TYPE_THEME; in Mappings() 49 extension_types["legacy_packaged_app"] = Manifest::TYPE_LEGACY_PACKAGED_APP; in Mappings() 50 extension_types["hosted_app"] = Manifest::TYPE_HOSTED_APP; in Mappings() 51 extension_types["platform_app"] = Manifest::TYPE_PLATFORM_APP; in Mappings() 52 extension_types["shared_module"] = Manifest::TYPE_SHARED_MODULE; in Mappings() 70 std::map<std::string, Manifest::Type> extension_types; 171 std::string GetDisplayName(Manifest::Type type) { in GetDisplayName() [all …]
|
D | base_feature_provider_unittest.cc | 28 std::set<Manifest::Type>* extension_types = feature->extension_types(); in TEST() 30 EXPECT_EQ(1u, extension_types->count(Manifest::TYPE_EXTENSION)); in TEST() 31 EXPECT_EQ(1u, extension_types->count(Manifest::TYPE_LEGACY_PACKAGED_APP)); in TEST() 32 EXPECT_EQ(1u, extension_types->count(Manifest::TYPE_PLATFORM_APP)); in TEST() 33 EXPECT_EQ(1u, extension_types->count(Manifest::TYPE_HOSTED_APP)); in TEST() 34 EXPECT_EQ(1u, extension_types->count(Manifest::TYPE_THEME)); in TEST() 35 EXPECT_EQ(1u, extension_types->count(Manifest::TYPE_SHARED_MODULE)); in TEST() 85 std::set<Manifest::Type>* extension_types = feature->extension_types(); in TEST() 87 EXPECT_EQ(1u, extension_types->count(Manifest::TYPE_EXTENSION)); in TEST() 88 EXPECT_EQ(1u, extension_types->count(Manifest::TYPE_LEGACY_PACKAGED_APP)); in TEST() [all …]
|
/external/chromium_org/chrome/common/extensions/ |
D | manifest_unittest.cc | 32 void AssertType(Manifest* manifest, Manifest::Type type) { in AssertType() 34 EXPECT_EQ(type == Manifest::TYPE_THEME, manifest->is_theme()); in AssertType() 35 EXPECT_EQ(type == Manifest::TYPE_PLATFORM_APP, in AssertType() 37 EXPECT_EQ(type == Manifest::TYPE_LEGACY_PACKAGED_APP, in AssertType() 39 EXPECT_EQ(type == Manifest::TYPE_HOSTED_APP, manifest->is_hosted_app()); in AssertType() 40 EXPECT_EQ(type == Manifest::TYPE_SHARED_MODULE, in AssertType() 47 void MutateManifest(scoped_ptr<Manifest>* manifest, in MutateManifest() 56 manifest->reset(new Manifest(Manifest::INTERNAL, manifest_value.Pass())); in MutateManifest() 71 scoped_ptr<Manifest> manifest( in TEST_F() 72 new Manifest(Manifest::INTERNAL, manifest_value.Pass())); in TEST_F() [all …]
|
D | extension_unittest.cc | 38 ASSERT_EQ(0, Manifest::INVALID_LOCATION); in TEST() 39 ASSERT_EQ(1, Manifest::INTERNAL); in TEST() 40 ASSERT_EQ(2, Manifest::EXTERNAL_PREF); in TEST() 41 ASSERT_EQ(3, Manifest::EXTERNAL_REGISTRY); in TEST() 42 ASSERT_EQ(4, Manifest::UNPACKED); in TEST() 43 ASSERT_EQ(5, Manifest::COMPONENT); in TEST() 44 ASSERT_EQ(6, Manifest::EXTERNAL_PREF_DOWNLOAD); in TEST() 45 ASSERT_EQ(7, Manifest::EXTERNAL_POLICY_DOWNLOAD); in TEST() 46 ASSERT_EQ(8, Manifest::COMMAND_LINE); in TEST() 47 ASSERT_EQ(9, Manifest::EXTERNAL_POLICY); in TEST() [all …]
|
D | sync_helper.cc | 52 case Manifest::TYPE_EXTENSION: in GetSyncType() 55 case Manifest::TYPE_USER_SCRIPT: in GetSyncType() 61 case Manifest::TYPE_HOSTED_APP: in GetSyncType() 62 case Manifest::TYPE_LEGACY_PACKAGED_APP: in GetSyncType() 63 case Manifest::TYPE_PLATFORM_APP: in GetSyncType() 66 case Manifest::TYPE_UNKNOWN: in GetSyncType() 69 case Manifest::TYPE_THEME: in GetSyncType() 70 case Manifest::TYPE_SHARED_MODULE: in GetSyncType() 73 case Manifest::NUM_LOAD_TYPES: in GetSyncType() 89 bool is_syncable = (extension->location() == Manifest::INTERNAL && in IsSyncable()
|
D | sync_type_unittest.cc | 33 Manifest::Location location, in MakeSyncTestExtensionWithPluginPermission() 85 Manifest::Location location, in MakeSyncTestExtension() 105 Manifest::INTERNAL, base::FilePath(), in TEST_F() 113 Manifest::INTERNAL, base::FilePath(), in TEST_F() 121 Manifest::INTERNAL, base::FilePath(), in TEST_F() 129 Manifest::INTERNAL, base::FilePath(), in TEST_F() 138 Manifest::INTERNAL, base::FilePath(), in TEST_F() 146 Manifest::EXTERNAL_PREF, base::FilePath(), in TEST_F() 155 Manifest::INTERNAL, base::FilePath(), Extension::NO_FLAGS)); in TEST_F() 162 Manifest::INTERNAL, base::FilePath(), in TEST_F() [all …]
|
/external/chromium_org/extensions/browser/ |
D | extension_web_contents_observer.cc | 43 Manifest::Type type = extension->GetType(); in RenderViewCreated() 44 if (type == Manifest::TYPE_EXTENSION || in RenderViewCreated() 45 type == Manifest::TYPE_LEGACY_PACKAGED_APP || in RenderViewCreated() 46 (type == Manifest::TYPE_PLATFORM_APP && in RenderViewCreated() 47 extension->location() == Manifest::COMPONENT)) { in RenderViewCreated() 53 if (type == Manifest::TYPE_EXTENSION || in RenderViewCreated() 54 type == Manifest::TYPE_LEGACY_PACKAGED_APP) { in RenderViewCreated() 63 case Manifest::TYPE_EXTENSION: in RenderViewCreated() 64 case Manifest::TYPE_USER_SCRIPT: in RenderViewCreated() 65 case Manifest::TYPE_HOSTED_APP: in RenderViewCreated() [all …]
|
/external/chromium_org/chrome/browser/extensions/ |
D | standard_management_policy_provider.cc | 28 if (!extensions::Manifest::IsComponentLocation(extension->location()) && in AdminPolicyIsModifiable() 29 !extensions::Manifest::IsPolicyLocation(extension->location())) { in AdminPolicyIsModifiable() 77 if (Manifest::IsComponentLocation(extension->location())) in UserMayLoad() 88 if (!Manifest::IsPolicyLocation(extension->location()) && in UserMayLoad() 101 case Manifest::TYPE_UNKNOWN: in UserMayLoad() 103 case Manifest::TYPE_EXTENSION: in UserMayLoad() 104 case Manifest::TYPE_THEME: in UserMayLoad() 105 case Manifest::TYPE_USER_SCRIPT: in UserMayLoad() 106 case Manifest::TYPE_HOSTED_APP: in UserMayLoad() 107 case Manifest::TYPE_LEGACY_PACKAGED_APP: in UserMayLoad() [all …]
|
D | installed_loader.cc | 103 if (Manifest::IsUnpackedLocation(info.extension_location)) in ShouldReloadExtensionManifest() 186 if (extension.get() && !Manifest::IsUnpackedLocation(extension->location()) && in Load() 247 if (info->extension_location == Manifest::COMMAND_LINE) in LoadAllExtensions() 286 if (extensions_info->at(i)->extension_location != Manifest::COMMAND_LINE) in LoadAllExtensions() 335 Manifest::Location location = extension->location(); in LoadAllExtensions() 336 Manifest::Type type = extension->GetType(); in LoadAllExtensions() 344 "Extensions.AppLocation", location, Manifest::NUM_LOCATIONS); in LoadAllExtensions() 347 "Extensions.ExtensionLocation", location, Manifest::NUM_LOCATIONS); in LoadAllExtensions() 351 "Extensions.NonWebstoreLocation", location, Manifest::NUM_LOCATIONS); in LoadAllExtensions() 367 if (Manifest::IsExternalLocation(location)) { in LoadAllExtensions() [all …]
|
D | external_provider_impl.cc | 77 Manifest::Location crx_location, in ExternalProviderImpl() 78 Manifest::Location download_location, in ExternalProviderImpl() 244 if (crx_location_ == Manifest::INVALID_LOCATION) { in SetPrefs() 281 if (download_location_ == Manifest::INVALID_LOCATION) { in SetPrefs() 330 const std::string& id, Manifest::Location* location, in GetExtensionDetails() 339 Manifest::Location loc = Manifest::INVALID_LOCATION; in GetExtensionDetails() 370 extensions::Manifest::Location crx_location = Manifest::INVALID_LOCATION; in CreateExternalProviders() 386 crx_location = Manifest::EXTERNAL_POLICY; in CreateExternalProviders() 408 Manifest::EXTERNAL_POLICY_DOWNLOAD, in CreateExternalProviders() 423 Manifest::EXTERNAL_PREF, in CreateExternalProviders() [all …]
|
D | extension_management_constants.cc | 27 { "extension", Manifest::TYPE_EXTENSION }, 28 { "theme", Manifest::TYPE_THEME }, 29 { "user_script", Manifest::TYPE_USER_SCRIPT }, 30 { "hosted_app", Manifest::TYPE_HOSTED_APP }, 31 { "legacy_packaged_app", Manifest::TYPE_LEGACY_PACKAGED_APP }, 32 { "platform_app", Manifest::TYPE_PLATFORM_APP }, 39 Manifest::Type GetManifestType(const std::string& name) { in GetManifestType() 44 return Manifest::TYPE_UNKNOWN; in GetManifestType()
|
/external/chromium_org/content/public/common/ |
D | manifest.cc | 9 const double Manifest::Icon::kDefaultDensity = 1; 10 const size_t Manifest::kMaxIPCStringLength = 4 * 1024; 12 Manifest::Icon::Icon() in Icon() 16 Manifest::Icon::~Icon() { in ~Icon() 19 Manifest::Manifest() in Manifest() function in content::Manifest 24 Manifest::~Manifest() { in ~Manifest() 27 bool Manifest::IsEmpty() const { in IsEmpty()
|
/external/chromium_org/chrome/common/extensions/manifest_tests/ |
D | extension_manifests_update_unittest.cc | 20 Testcase("update_url_valid_1.json", extensions::Manifest::INTERNAL, in TEST_F() 22 Testcase("update_url_valid_2.json", extensions::Manifest::INTERNAL, in TEST_F() 24 Testcase("update_url_valid_3.json", extensions::Manifest::INTERNAL, in TEST_F() 26 Testcase("update_url_valid_4.json", extensions::Manifest::INTERNAL, in TEST_F() 35 extensions::Manifest::INTERNAL, Extension::NO_FLAGS), in TEST_F() 37 extensions::Manifest::INTERNAL, Extension::NO_FLAGS), in TEST_F() 39 extensions::Manifest::INTERNAL, Extension::NO_FLAGS) in TEST_F()
|
/external/chromium_org/chrome/common/extensions/features/ |
D | chrome_channel_feature_filter_unittest.cc | 47 Manifest::TYPE_UNKNOWN, in IsAvailableInChannel() 48 Manifest::INVALID_LOCATION, in IsAvailableInChannel() 202 Manifest::TYPE_EXTENSION, in TEST_F() 203 Manifest::INVALID_LOCATION, in TEST_F() 208 Manifest::TYPE_LEGACY_PACKAGED_APP, in TEST_F() 209 Manifest::INVALID_LOCATION, in TEST_F() 217 Manifest::TYPE_EXTENSION, in TEST_F() 218 Manifest::INVALID_LOCATION, in TEST_F() 223 Manifest::TYPE_LEGACY_PACKAGED_APP, in TEST_F() 224 Manifest::INVALID_LOCATION, in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/android/ |
D | shortcut_helper.cc | 38 using content::Manifest; 60 display_(content::Manifest::DISPLAY_MODE_BROWSER), in ShortcutHelper() 92 display_ = content::Manifest::DISPLAY_MODE_STANDALONE; in OnDidGetWebApplicationInfo() 138 const std::vector<Manifest::Icon>& icons, float density) const { in FindBestMatchingIcon() 167 std::vector<Manifest::Icon> ShortcutHelper::FilterIconsByType( in FilterIconsByType() 168 const std::vector<Manifest::Icon>& icons) { in FilterIconsByType() 169 std::vector<Manifest::Icon> result; in FilterIconsByType() 183 const std::vector<Manifest::Icon>& unfiltered_icons) const { in FindBestMatchingIcon() 189 std::vector<Manifest::Icon> icons = FilterIconsByType(unfiltered_icons); in FindBestMatchingIcon() 201 if (icons[i].density == Manifest::Icon::kDefaultDensity && in FindBestMatchingIcon() [all …]
|
D | shortcut_helper.h | 53 void OnDidGetManifest(const content::Manifest& manifest); 90 content::Manifest::DisplayMode display, 99 content::Manifest::DisplayMode display, 121 const std::vector<content::Manifest::Icon>& icons) const; 127 GURL FindBestMatchingIcon(const std::vector<content::Manifest::Icon>& icons, 132 static std::vector<content::Manifest::Icon> FilterIconsByType( 133 const std::vector<content::Manifest::Icon>& icons); 146 content::Manifest::DisplayMode display_;
|
/external/chromium_org/mojo/tools/package_manager/ |
D | manifest.cc | 14 Manifest::Manifest() { in Manifest() function in mojo::Manifest 17 Manifest::~Manifest() { in ~Manifest() 20 bool Manifest::Parse(const std::string& str, std::string* err_msg) { in Parse() 41 bool Manifest::ParseFromFile(const base::FilePath& file_name, in ParseFromFile() 51 bool Manifest::PopulateDeps(const base::DictionaryValue* root, in PopulateDeps()
|
/external/chromium_org/chrome/common/extensions/permissions/ |
D | chrome_permission_message_provider.h | 25 Manifest::Type extension_type) const OVERRIDE; 28 Manifest::Type extension_type) const OVERRIDE; 31 Manifest::Type extension_type) const OVERRIDE; 35 Manifest::Type extension_type) const OVERRIDE; 49 Manifest::Type extension_type) const; 68 Manifest::Type extension_type) const;
|