Home
last modified time | relevance | path

Searched refs:URLPattern (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium/chrome/common/extensions/
Durl_pattern_unittest.cc13 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 …]
Durl_pattern.cc14 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 …]
Dextension_extent_unittest.cc11 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 …]
Durl_pattern.h76 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 …]
Duser_script_unittest.cc12 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 …]
Dextension_unittest.cc52 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 …]
Duser_script.cc41 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()
Dextension_messages.cc86 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()
Dextension_extent.h12 class URLPattern; variable
17 typedef std::vector<URLPattern> PatternList;
27 void AddPattern(const URLPattern& pattern);
Dfile_browser_handler.h16 class URLPattern; variable
21 typedef std::vector<URLPattern> PatternList;
42 void AddPattern(const URLPattern& pattern);
Dextension.cc333 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 …]
Dextension_manifests_unittest.cc174 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()
Dextension_messages.h116 struct ParamTraits<URLPattern> {
117 typedef URLPattern param_type;
183 std::vector<URLPattern>)
Duser_script.h18 class URLPattern; variable
24 typedef std::vector<URLPattern> PatternList;
154 void add_url_pattern(const URLPattern& pattern);
Dfile_browser_handler.cc16 void FileBrowserHandler::AddPattern(const URLPattern& pattern) { in AddPattern()
Dextension_extent.cc29 void ExtensionExtent::AddPattern(const URLPattern& pattern) { in AddPattern()
Dextension.h493 bool CanSpecifyHostPermission(const URLPattern& pattern) const;
708 URLPattern::ParseOption parse_strictness,
/external/chromium/chrome/browser/extensions/
Duser_script_listener.h21 class URLPattern; variable
50 typedef std::list<URLPattern> URLPatterns;
Dextension_context_menu_api.cc142 URLPattern pattern(ExtensionMenuManager::kAllowedSchemes); in ParseURLPatterns()
145 if (URLPattern::PARSE_SUCCESS != pattern.Parse(tmp, in ParseURLPatterns()
146 URLPattern::PARSE_LENIENT)) { in ParseURLPatterns()
Duser_script_master.cc109 URLPattern pattern(UserScript::kValidUserScriptSchemes); in ParseMetadataHeader()
110 if (URLPattern::PARSE_SUCCESS != in ParseMetadataHeader()
111 pattern.Parse(value, URLPattern::PARSE_LENIENT)) in ParseMetadataHeader()
Dextension_webrequest_api.cc218 URLPattern pattern(URLPattern::SCHEME_ALL); in InitFromValue()
220 pattern.Parse(url, URLPattern::PARSE_STRICT) != in InitFromValue()
221 URLPattern::PARSE_SUCCESS) in InitFromValue()
Dextension_menu_manager.cc95 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS;
473 URLPattern pattern(kAllowedSchemes); in HasAllowedScheme()
Dextension_prefs_unittest.cc42 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()
Dextension_prefs.cc667 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()
Dextension_management_api.cc110 std::vector<URLPattern>::const_iterator host_perms_iter; in CreateExtensionInfo()

12