HomeSort by relevance Sort by last modified time
    Searched refs:URLPattern (Results 1 - 25 of 66) sorted by null

1 2 3

  /external/chromium_org/extensions/common/
url_pattern_unittest.cc 15 URLPattern::SCHEME_HTTP |
16 URLPattern::SCHEME_HTTPS |
17 URLPattern::SCHEME_FILE |
18 URLPattern::SCHEME_FTP |
19 URLPattern::SCHEME_CHROMEUI |
20 URLPattern::SCHEME_EXTENSION |
21 URLPattern::SCHEME_FILESYSTEM;
26 URLPattern::ParseResult expected_result;
28 { "http", URLPattern::PARSE_ERROR_MISSING_SCHEME_SEPARATOR },
29 { "http:", URLPattern::PARSE_ERROR_WRONG_SCHEME_SEPARATOR }
    [all...]
url_pattern.h 14 // A pattern that can be used to match URLs. A URLPattern is a very restricted
44 class URLPattern {
86 explicit URLPattern(int valid_schemes);
88 // Convenience to construct a URLPattern from a string. If the string is not
90 URLPattern(int valid_schemes, const std::string& pattern);
92 URLPattern();
93 ~URLPattern();
95 bool operator<(const URLPattern& other) const;
96 bool operator>(const URLPattern& other) const;
97 bool operator==(const URLPattern& other) const
    [all...]
url_pattern.cc 20 const char URLPattern::kAllUrlsPattern[] = "<all_urls>";
37 URLPattern::SCHEME_HTTP,
38 URLPattern::SCHEME_HTTPS,
39 URLPattern::SCHEME_FILE,
40 URLPattern::SCHEME_FTP,
41 URLPattern::SCHEME_CHROMEUI,
42 URLPattern::SCHEME_EXTENSION,
43 URLPattern::SCHEME_FILESYSTEM,
59 // Message explaining each URLPattern::ParseResult.
72 COMPILE_ASSERT(URLPattern::NUM_PARSE_RESULTS == arraysize(kParseResultMessages)
    [all...]
user_script_unittest.cc 15 URLPattern::SCHEME_HTTP |
16 URLPattern::SCHEME_HTTPS |
17 URLPattern::SCHEME_FILE |
18 URLPattern::SCHEME_FTP |
19 URLPattern::SCHEME_CHROMEUI;
76 TEST(ExtensionUserScriptTest, UrlPattern) {
77 URLPattern pattern(kAllSchemes);
78 ASSERT_EQ(URLPattern::PARSE_SUCCESS, pattern.Parse("http://*/foo*"));
85 // NOTE: URLPattern is tested more extensively in url_pattern_unittest.cc.
91 URLPattern pattern(kAllSchemes)
    [all...]
url_pattern_set.h 26 typedef std::set<URLPattern>::const_iterator const_iterator;
27 typedef std::set<URLPattern>::iterator iterator;
51 explicit URLPatternSet(const std::set<URLPattern>& patterns);
59 const std::set<URLPattern>& patterns() const { return patterns_; }
65 bool AddPattern(const URLPattern& pattern);
80 bool ContainsPattern(const URLPattern& pattern) const;
109 std::set<URLPattern> patterns_;
user_script.cc 34 // The bitmask for valid user script injectable schemes used by URLPattern.
36 kValidUserScriptSchemes = URLPattern::SCHEME_CHROMEUI |
37 URLPattern::SCHEME_HTTP |
38 URLPattern::SCHEME_HTTPS |
39 URLPattern::SCHEME_FILE |
40 URLPattern::SCHEME_FTP
61 return URLPattern::SCHEME_ALL;
65 valid_schemes &= ~URLPattern::SCHEME_CHROMEUI;
93 void UserScript::add_url_pattern(const URLPattern& pattern) {
97 void UserScript::add_exclude_url_pattern(const URLPattern& pattern)
    [all...]
url_pattern_set.cc 31 out->patterns_ = base::STLSetDifference<std::set<URLPattern> >(
39 out->patterns_ = base::STLSetIntersection<std::set<URLPattern> >(
47 out->patterns_ = base::STLSetUnion<std::set<URLPattern> >(
89 URLPatternSet::URLPatternSet(const std::set<URLPattern>& patterns)
107 std::set<URLPattern>::const_iterator iter =
132 bool URLPatternSet::AddPattern(const URLPattern& pattern) {
147 URLPattern origin_pattern(valid_schemes);
150 URLPattern::PARSE_SUCCESS) {
167 bool URLPatternSet::ContainsPattern(const URLPattern& pattern) const {
234 URLPattern pattern(valid_schemes)
    [all...]
  /external/chromium_org/chrome/browser/extensions/api/content_settings/
content_settings_helpers.cc 62 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS |
63 URLPattern::SCHEME_FILE;
64 URLPattern url_pattern(kAllowedSchemes);
65 URLPattern::ParseResult result = url_pattern.Parse(pattern_str);
66 if (result != URLPattern::PARSE_SUCCESS) {
67 *error = URLPattern::GetParseResultString(result);
  /external/chromium_org/chrome/browser/extensions/
permissions_updater_unittest.cc 38 const std::set<URLPattern>& scriptable_hosts,
39 const std::set<URLPattern>& explicit_hosts,
42 for (std::set<URLPattern>::const_iterator pattern = scriptable_hosts.begin();
49 for (std::set<URLPattern>::const_iterator pattern = explicit_hosts.begin();
72 testing::AssertionResult SetsAreEqual(const std::set<URLPattern>& set1,
73 const std::set<URLPattern>& set2) {
77 std::set<URLPattern> difference = base::STLSetUnion<std::set<URLPattern> >(
78 base::STLSetDifference<std::set<URLPattern> >(set1, set2),
79 base::STLSetDifference<std::set<URLPattern> >(set2, set1))
    [all...]
webstore_inline_installer.cc 169 // Turn the verified site into a URL that can be parsed by URLPattern.
174 // If scheme is omitted, URLPattern will match against either an
176 // or HTTPS, and URLPattern will only match the scheme specified.
178 int valid_schemes = URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS;
185 valid_schemes = URLPattern::SCHEME_HTTP;
187 valid_schemes = URLPattern::SCHEME_HTTPS;
202 URLPattern verified_site_pattern(valid_schemes);
203 URLPattern::ParseResult parse_result =
205 if (parse_result != URLPattern::PARSE_SUCCESS)
    [all...]
user_script_listener.h 21 class URLPattern;
56 typedef std::list<URLPattern> URLPatterns;
  /external/chromium_org/chrome/common/extensions/manifest_handlers/
content_scripts_manifest_unittest.cc 34 URLPattern::GetParseResultString(
35 URLPattern::PARSE_ERROR_INVALID_SCHEME))),
69 URLPattern(URLPattern::SCHEME_HTTP, "http://yahoo.com/*"));
content_scripts_handler.cc 152 URLPattern pattern(UserScript::ValidUserScriptSchemes(
155 URLPattern::ParseResult parse_result = pattern.Parse(match_str);
156 if (parse_result != URLPattern::PARSE_SUCCESS) {
161 URLPattern::GetParseResultString(parse_result));
173 pattern.valid_schemes() & ~URLPattern::SCHEME_CHROMEUI);
181 pattern.valid_schemes() & ~URLPattern::SCHEME_FILE);
211 URLPattern pattern(valid_schemes);
213 URLPattern::ParseResult parse_result = pattern.Parse(match_str);
214 if (parse_result != URLPattern::PARSE_SUCCESS) {
218 URLPattern::GetParseResultString(parse_result))
    [all...]
  /external/chromium_org/chrome/common/extensions/permissions/
permission_set_unittest.cc 37 int schemes = URLPattern::SCHEME_ALL;
38 extent->AddPattern(URLPattern(schemes, pattern));
    [all...]
  /external/chromium_org/chrome/browser/extensions/api/messaging/
native_messaging_host_manifest.cc 116 URLPattern pattern(URLPattern::SCHEME_EXTENSION);
117 URLPattern::ParseResult result = pattern.Parse(pattern_string);
118 if (result != URLPattern::PARSE_SUCCESS) {
120 "\": " + URLPattern::GetParseResultString(result);
  /external/chromium_org/extensions/common/manifest_handlers/
web_accessible_resources_info.cc 80 URLPattern pattern(URLPattern::SCHEME_EXTENSION);
81 if (pattern.Parse(extension->url().spec()) != URLPattern::PARSE_SUCCESS) {
permissions_parser.cc 72 const URLPattern& pattern,
96 // Otherwise, the valid schemes were handled by URLPattern.
181 ? URLPattern::SCHEME_ALL
190 URLPattern pattern = URLPattern(kAllowedSchemes);
191 URLPattern::ParseResult parse_result = pattern.Parse(permission_str);
192 if (parse_result == URLPattern::PARSE_SUCCESS) {
201 valid_schemes &= ~URLPattern::SCHEME_FILE;
210 valid_schemes &= ~URLPattern::SCHEME_CHROMEUI;
externally_connectable_unittest.cc 258 URLPattern(URLPattern::SCHEME_ALL, "<all_urls>")));
275 URLPattern pattern(URLPattern::SCHEME_ALL, "<all_urls>");
288 URLPattern(URLPattern::SCHEME_ALL, "http://*/*")));
301 URLPattern(URLPattern::SCHEME_ALL, "http://*.co.uk/*")));
314 URLPattern(URLPattern::SCHEME_ALL, "http://*.appspot.com/*")))
    [all...]
sandboxed_page_info.cc 80 URLPattern pattern(URLPattern::SCHEME_EXTENSION);
81 if (pattern.Parse(extension->url().spec()) != URLPattern::PARSE_SUCCESS) {
  /external/chromium_org/chrome/browser/ui/ash/launcher/
app_shortcut_launcher_item_controller.h 15 class URLPattern;
71 const URLPattern& refocus_pattern,
  /external/chromium_org/chrome/common/extensions/api/file_browser_handlers/
file_browser_handler.h 18 class URLPattern;
46 void AddPattern(const URLPattern& pattern);
  /external/chromium_org/chrome/common/extensions/manifest_tests/
extension_manifests_web_unittest.cc 30 URLPattern::GetParseResultString(
31 URLPattern::PARSE_ERROR_MISSING_SCHEME_SEPARATOR))),
  /external/chromium_org/chrome/browser/extensions/api/permissions/
permissions_api_helpers.cc 138 allowed_schemes &= ~URLPattern::SCHEME_FILE;
139 URLPattern origin(allowed_schemes);
140 URLPattern::ParseResult parse_result = origin.Parse(*it);
141 if (URLPattern::PARSE_SUCCESS != parse_result) {
145 URLPattern::GetParseResultString(parse_result));
  /external/chromium_org/chrome/browser/nacl_host/
nacl_browser_delegate_impl.cc 156 URLPattern pattern(URLPattern::SCHEME_ALL);
157 if (pattern.Parse(*iter) == URLPattern::PARSE_SUCCESS) {
161 pattern.SetValidSchemes(URLPattern::SCHEME_ALL);
174 for (std::vector<URLPattern>::iterator iter = debug_patterns_.begin();
  /external/chromium_org/chrome/common/extensions/api/url_handlers/
url_handlers_parser.cc 120 URLPattern pattern(URLPattern::SCHEME_HTTP |
121 URLPattern::SCHEME_HTTPS);
122 if (pattern.Parse(str_pattern) != URLPattern::PARSE_SUCCESS) {

Completed in 296 milliseconds

1 2 3