/external/chromium/chrome/common/extensions/ |
D | url_pattern_unittest.cc | 13 URLPattern::SCHEME_HTTP | 14 URLPattern::SCHEME_HTTPS | 15 URLPattern::SCHEME_FILE | 16 URLPattern::SCHEME_FTP | 17 URLPattern::SCHEME_CHROMEUI; 22 URLPattern::ParseResult expected_result; in TEST() 24 { "http", URLPattern::PARSE_ERROR_MISSING_SCHEME_SEPARATOR }, in TEST() 25 { "http:", URLPattern::PARSE_ERROR_WRONG_SCHEME_SEPARATOR }, in TEST() 26 { "http:/", URLPattern::PARSE_ERROR_WRONG_SCHEME_SEPARATOR }, in TEST() 27 { "about://", URLPattern::PARSE_ERROR_WRONG_SCHEME_SEPARATOR }, in TEST() [all …]
|
D | url_pattern.cc | 14 const char URLPattern::kAllUrlsPattern[] = "<all_urls>"; 31 URLPattern::SCHEME_HTTP, 32 URLPattern::SCHEME_HTTPS, 33 URLPattern::SCHEME_FILE, 34 URLPattern::SCHEME_FTP, 35 URLPattern::SCHEME_CHROMEUI, 36 URLPattern::SCHEME_FILESYSTEM, 64 COMPILE_ASSERT(URLPattern::NUM_PARSE_RESULTS == arraysize(kParseResultMessages), 80 URLPattern::URLPattern() in URLPattern() function in URLPattern 85 URLPattern::URLPattern(int valid_schemes) in URLPattern() function in URLPattern [all …]
|
D | extension_extent_unittest.cc | 11 URLPattern::SCHEME_HTTP | 12 URLPattern::SCHEME_HTTPS | 13 URLPattern::SCHEME_FILE | 14 URLPattern::SCHEME_FTP | 15 URLPattern::SCHEME_CHROMEUI; 26 extent.AddPattern(URLPattern(kAllSchemes, "http://www.google.com/*")); in TEST() 36 extent.AddPattern(URLPattern(kAllSchemes, "http://www.google.com/*")); in TEST() 37 extent.AddPattern(URLPattern(kAllSchemes, "http://www.yahoo.com/*")); in TEST() 46 extent1.AddPattern(URLPattern(kAllSchemes, "http://www.google.com/f*")); in TEST() 47 extent1.AddPattern(URLPattern(kAllSchemes, "http://www.yahoo.com/b*")); in TEST() [all …]
|
D | url_pattern.h | 76 class URLPattern { 119 explicit URLPattern(int valid_schemes); 124 URLPattern(int valid_schemes, const std::string& pattern); 131 URLPattern(); 134 ~URLPattern(); 203 bool OverlapsWith(const URLPattern& other) const; 209 std::vector<URLPattern> ConvertToExplicitSchemes() const; 211 static bool EffectiveHostCompare(const URLPattern& a, const URLPattern& b) { in EffectiveHostCompare() 220 bool operator()(const URLPattern& a, const URLPattern& b) const { in operator() 226 static const char* GetParseResultString(URLPattern::ParseResult parse_result); [all …]
|
D | user_script_unittest.cc | 12 URLPattern::SCHEME_HTTP | 13 URLPattern::SCHEME_HTTPS | 14 URLPattern::SCHEME_FILE | 15 URLPattern::SCHEME_FTP | 16 URLPattern::SCHEME_CHROMEUI; 73 URLPattern pattern(kAllSchemes); in TEST() 74 ASSERT_EQ(URLPattern::PARSE_SUCCESS, in TEST() 75 pattern.Parse("http://*/foo*", URLPattern::PARSE_STRICT)); in TEST() 89 URLPattern pattern(kAllSchemes); in TEST() 90 ASSERT_EQ(URLPattern::PARSE_SUCCESS, in TEST() [all …]
|
D | extension_unittest.cc | 52 int schemes = URLPattern::SCHEME_ALL; in AddPattern() 53 extent->AddPattern(URLPattern(schemes, pattern)); in AddPattern() 1458 URLPattern(URLPattern::SCHEME_HTTP, "http://www.foo.com/path")); in TEST() 1460 URLPattern(URLPattern::SCHEME_HTTP, "http://www.bar.com/path")); in TEST() 1462 URLPattern(URLPattern::SCHEME_HTTP, "http://www.baz.com/path")); in TEST() 1472 URLPattern(URLPattern::SCHEME_HTTP, "http://www.foo.com/path")); in TEST() 1474 URLPattern(URLPattern::SCHEME_HTTP, "http://www.baz.com/path")); in TEST() 1484 URLPattern(URLPattern::SCHEME_HTTPS, "https://www.bar.com/path")); in TEST() 1494 URLPattern(URLPattern::SCHEME_HTTP, "http://www.bar.com/pathypath")); in TEST() 1504 URLPattern(URLPattern::SCHEME_HTTP, "http://monkey.www.bar.com/path")); in TEST() [all …]
|
D | user_script.cc | 41 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS | 42 URLPattern::SCHEME_FILE | URLPattern::SCHEME_FTP; 70 void UserScript::add_url_pattern(const URLPattern& pattern) { in add_url_pattern() 187 URLPattern pattern(valid_schemes); in Unpickle() 193 bool had_file_scheme = (valid_schemes & URLPattern::SCHEME_FILE) != 0; in Unpickle() 195 pattern.set_valid_schemes(valid_schemes | URLPattern::SCHEME_FILE); in Unpickle() 196 CHECK(URLPattern::PARSE_SUCCESS == in Unpickle() 197 pattern.Parse(pattern_str, URLPattern::PARSE_LENIENT)); in Unpickle()
|
D | extension_messages.cc | 86 void ParamTraits<URLPattern>::Write(Message* m, const param_type& p) { in Write() 91 bool ParamTraits<URLPattern>::Read(const Message* m, void** iter, in Read() 100 return URLPattern::PARSE_SUCCESS == p->Parse(spec, URLPattern::PARSE_LENIENT); in Read() 103 void ParamTraits<URLPattern>::Log(const param_type& p, std::string* l) { in Log() 113 std::vector<URLPattern> patterns; in Read()
|
D | extension_extent.h | 12 class URLPattern; variable 17 typedef std::vector<URLPattern> PatternList; 27 void AddPattern(const URLPattern& pattern);
|
D | file_browser_handler.h | 16 class URLPattern; variable 21 typedef std::vector<URLPattern> PatternList; 42 void AddPattern(const URLPattern& pattern);
|
D | extension.cc | 333 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; 336 UserScript::kValidUserScriptSchemes | URLPattern::SCHEME_CHROMEUI; 710 URLPattern::ParseOption parse_strictness = in LoadUserScriptHelper() 711 (flags & STRICT_ERROR_CHECKS ? URLPattern::PARSE_STRICT in LoadUserScriptHelper() 712 : URLPattern::PARSE_LENIENT); in LoadUserScriptHelper() 771 URLPattern pattern(UserScript::kValidUserScriptSchemes); in LoadUserScriptHelper() 773 pattern.set_valid_schemes(URLPattern::SCHEME_ALL); in LoadUserScriptHelper() 775 URLPattern::ParseResult parse_result = pattern.Parse(match_str, in LoadUserScriptHelper() 777 if (parse_result != URLPattern::PARSE_SUCCESS) { in LoadUserScriptHelper() 782 URLPattern::GetParseResultString(parse_result)); in LoadUserScriptHelper() [all …]
|
D | extension_manifests_unittest.cc | 174 URLPattern::GetParseResultString( in TEST_F() 175 URLPattern::PARSE_ERROR_MISSING_SCHEME_SEPARATOR))); in TEST_F() 206 URLPattern::GetParseResultString(URLPattern::PARSE_ERROR_HAS_COLON))); in TEST_F() 323 URLPattern::GetParseResultString( in TEST_F() 324 URLPattern::PARSE_ERROR_INVALID_SCHEME))); in TEST_F() 346 URLPattern::GetParseResultString( in TEST_F() 347 URLPattern::PARSE_ERROR_HAS_COLON))); in TEST_F()
|
D | extension_messages.h | 116 struct ParamTraits<URLPattern> { 117 typedef URLPattern param_type; 183 std::vector<URLPattern>)
|
D | user_script.h | 18 class URLPattern; variable 24 typedef std::vector<URLPattern> PatternList; 154 void add_url_pattern(const URLPattern& pattern);
|
D | file_browser_handler.cc | 16 void FileBrowserHandler::AddPattern(const URLPattern& pattern) { in AddPattern()
|
D | extension_extent.cc | 29 void ExtensionExtent::AddPattern(const URLPattern& pattern) { in AddPattern()
|
D | extension.h | 493 bool CanSpecifyHostPermission(const URLPattern& pattern) const; 708 URLPattern::ParseOption parse_strictness,
|
/external/chromium/chrome/browser/extensions/ |
D | user_script_listener.h | 21 class URLPattern; variable 50 typedef std::list<URLPattern> URLPatterns;
|
D | extension_context_menu_api.cc | 142 URLPattern pattern(ExtensionMenuManager::kAllowedSchemes); in ParseURLPatterns() 145 if (URLPattern::PARSE_SUCCESS != pattern.Parse(tmp, in ParseURLPatterns() 146 URLPattern::PARSE_LENIENT)) { in ParseURLPatterns()
|
D | user_script_master.cc | 109 URLPattern pattern(UserScript::kValidUserScriptSchemes); in ParseMetadataHeader() 110 if (URLPattern::PARSE_SUCCESS != in ParseMetadataHeader() 111 pattern.Parse(value, URLPattern::PARSE_LENIENT)) in ParseMetadataHeader()
|
D | extension_webrequest_api.cc | 218 URLPattern pattern(URLPattern::SCHEME_ALL); in InitFromValue() 220 pattern.Parse(url, URLPattern::PARSE_STRICT) != in InitFromValue() 221 URLPattern::PARSE_SUCCESS) in InitFromValue()
|
D | extension_menu_manager.cc | 95 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; 473 URLPattern pattern(kAllowedSchemes); in HasAllowedScheme()
|
D | extension_prefs_unittest.cc | 42 int schemes = URLPattern::SCHEME_ALL; in AddPattern() 43 extent->AddPattern(URLPattern(schemes, pattern)); in AddPattern() 48 std::vector<URLPattern> patterns1 = extent1->patterns(); in AssertEqualExtents() 49 std::vector<URLPattern> patterns2 = extent2->patterns(); in AssertEqualExtents()
|
D | extension_prefs.cc | 667 URLPattern pattern( in GetGrantedPermissions() 673 if (URLPattern::PARSE_SUCCESS != pattern.Parse( in GetGrantedPermissions() 674 *i, URLPattern::PARSE_LENIENT)) { in GetGrantedPermissions() 679 pattern.valid_schemes() & ~URLPattern::SCHEME_FILE); in GetGrantedPermissions()
|
D | extension_management_api.cc | 110 std::vector<URLPattern>::const_iterator host_perms_iter; in CreateExtensionInfo()
|