Home
last modified time | relevance | path

Searched refs:gurl (Results 1 – 25 of 163) sorted by relevance

1234567

/external/chromium_org/chrome/browser/metrics/rappor/
Dsampling.cc14 std::string GetDomainAndRegistrySampleFromGURL(const GURL& gurl) { in GetDomainAndRegistrySampleFromGURL() argument
15 if (gurl.SchemeIsHTTPOrHTTPS()) { in GetDomainAndRegistrySampleFromGURL()
17 gurl, net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES); in GetDomainAndRegistrySampleFromGURL()
19 if (gurl.SchemeIsFile()) in GetDomainAndRegistrySampleFromGURL()
20 return gurl.scheme() + "://"; in GetDomainAndRegistrySampleFromGURL()
21 return gurl.scheme() + "://" + gurl.host(); in GetDomainAndRegistrySampleFromGURL()
25 const GURL& gurl) { in SampleDomainAndRegistryFromGURL() argument
31 GetDomainAndRegistrySampleFromGURL(gurl)); in SampleDomainAndRegistryFromGURL()
Dsampling.h17 std::string GetDomainAndRegistrySampleFromGURL(const GURL& gurl);
22 const GURL& gurl);
/external/chromium_org/chrome/browser/android/
Durl_utilities.cc46 GURL gurl = GURL(ConvertJavaStringToUTF8(env, url)); in GetDomainAndRegistry() local
47 if (gurl.is_empty()) in GetDomainAndRegistry()
56 gurl, filter)).Release(); in GetDomainAndRegistry()
60 GURL gurl = GURL(ConvertJavaStringToUTF8(env, url)); in IsGoogleSearchUrl() local
61 if (gurl.is_empty()) in IsGoogleSearchUrl()
63 return google_util::IsGoogleSearchUrl(gurl); in IsGoogleSearchUrl()
67 GURL gurl = GURL(ConvertJavaStringToUTF8(env, url)); in IsGoogleHomePageUrl() local
68 if (gurl.is_empty()) in IsGoogleHomePageUrl()
70 return google_util::IsGoogleHomePageUrl(gurl); in IsGoogleHomePageUrl()
87 const GURL gurl = GURL(ConvertJavaStringToUTF8(env, url)); in IsGooglePropertyUrl() local
[all …]
/external/chromium_org/net/http/
Durl_security_manager_unittest.cc56 GURL gurl(kTestDataList[i].url); in TEST() local
58 url_security_manager->CanUseDefaultCredentials(gurl); in TEST()
61 << " Run: " << i << " URL: '" << gurl << "'"; in TEST()
75 GURL gurl(kTestDataList[i].url); in TEST() local
76 bool can_delegate = url_security_manager->CanDelegate(gurl); in TEST()
78 << " Run: " << i << " URL: '" << gurl << "'"; in TEST()
89 GURL gurl(kTestDataList[i].url); in TEST() local
90 bool can_delegate = url_security_manager->CanDelegate(gurl); in TEST()
Dhttp_auth_handler_factory_unittest.cc43 GURL gurl("www.google.com"); in TEST() local
61 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
67 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
70 "Digest", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), in TEST()
77 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
80 "Digest", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), in TEST()
86 "basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
92 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
95 "Digest", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), in TEST()
/external/chromium_org/components/history/core/browser/
Dhistory_match.cc33 const GURL& gurl = url_info.url(); in IsHostOnly() local
34 DCHECK(gurl.is_valid()); in IsHostOnly()
35 return (!gurl.has_path() || (gurl.path() == "/")) && !gurl.has_query() && in IsHostOnly()
36 !gurl.has_ref(); in IsHostOnly()
/external/chromium_org/chrome/browser/search_engines/
Dtemplate_url_service_android.cc171 GURL gurl(GetDefaultSearchURLForSearchTerms(template_url_service_, query)); in GetUrlForVoiceSearchQuery() local
172 if (google_util::IsGoogleSearchUrl(gurl)) in GetUrlForVoiceSearchQuery()
173 gurl = net::AppendQueryParameter(gurl, "inm", "vs"); in GetUrlForVoiceSearchQuery()
174 url = gurl.spec(); in GetUrlForVoiceSearchQuery()
213 GURL gurl(GetDefaultSearchURLForSearchTerms(template_url_service_, query)); in GetUrlForContextualSearchQuery() local
214 if (google_util::IsGoogleSearchUrl(gurl)) { in GetUrlForContextualSearchQuery()
215 gurl = net::AppendQueryParameter(gurl, "ctxs", "2"); in GetUrlForContextualSearchQuery()
218 gurl = net::AppendQueryParameter(gurl, "pf", "c"); in GetUrlForContextualSearchQuery()
225 gurl = net::AppendQueryParameter( in GetUrlForContextualSearchQuery()
226 gurl, "ctxsl_alternate_term", alternate_term); in GetUrlForContextualSearchQuery()
[all …]
/external/chromium_org/chrome/browser/media/
Dmedia_browsertest.cc34 GURL gurl; in RunMediaTestPage() local
43 gurl = http_test_server->GetURL("files/" + html_page + "?" + query); in RunMediaTestPage()
45 gurl = content::GetFileUrlWithQuery(media::GetTestDataFilePath(html_page), in RunMediaTestPage()
48 std::string final_title = RunTest(gurl, expected_title); in RunMediaTestPage()
52 std::string MediaBrowserTest::RunTest(const GURL& gurl, in RunTest() argument
54 DVLOG(0) << "Running test URL: " << gurl; in RunTest()
61 ui_test_utils::NavigateToURL(browser(), gurl); in RunTest()
/external/chromium_org/net/cookies/
Dcookie_monster_perftest.cc65 CookieMonster* cm, const GURL& gurl, const std::string& cookie) { in SetCookie() argument
66 cm->SetCookieWithOptionsAsync(gurl, cookie, options_, base::Bind( in SetCookie()
80 const std::string& GetCookies(CookieMonster* cm, const GURL& gurl) { in GetCookies() argument
81 cm->GetCookiesWithOptionsAsync(gurl, options_, base::Bind( in GetCookies()
221 GURL gurl("https://" + *it + "/"); in TEST_F() local
224 setCookieCallback.SetCookie(cm.get(), gurl, cookie); in TEST_F()
263 GURL gurl("https://" + *it + "/"); in TEST_F() local
266 setCookieCallback.SetCookie(cm.get(), gurl, cookie); in TEST_F()
290 std::string gurl("www" + domain_name); in TEST_F() local
294 AddCookieToList(gurl, cookie_line, in TEST_F()
[all …]
/external/chromium_org/net/base/
Dsdch_manager_unittest.cc49 const GURL& gurl) { in AddSdchDictionary() argument
51 sdch_manager_->GetAvailDictionaryList(gurl, &list); in AddSdchDictionary()
52 sdch_manager_->AddSdchDictionary(dictionary_text, gurl); in AddSdchDictionary()
54 sdch_manager_->GetAvailDictionaryList(gurl, &list2); in AddSdchDictionary()
110 GURL gurl("http://mytest.DoMain.com"); in TEST_F() local
111 std::string domain(gurl.host()); in TEST_F()
116 EXPECT_TRUE(sdch_manager()->IsInSupportedDomain(gurl)); in TEST_F()
120 GURL gurl("http://mytest.DoMain.com"); in TEST_F() local
121 std::string domain(gurl.host()); in TEST_F()
124 sdch_manager()->BlacklistDomain(gurl, SdchManager::MIN_PROBLEM_CODE); in TEST_F()
[all …]
/external/chromium_org/components/dom_distiller/webui/
Ddom_distiller_handler.cc27 const GURL gurl(url); in GetViewUrlFromArgs() local
28 if (url_utils::IsUrlDistillable(gurl)) { in GetViewUrlFromArgs()
29 return url_utils::GetDistillerViewUrlFromUrl(scheme, gurl); in GetViewUrlFromArgs()
64 GURL gurl(url); in HandleAddArticle() local
65 if (gurl.is_valid()) { in HandleAddArticle()
67 gurl, in HandleAddArticle()
/external/chromium_org/chrome/browser/extensions/activity_log/
Duma_policy.cc392 std::string UmaPolicy::CleanURL(const GURL& gurl) { in CleanURL() argument
393 if (gurl.spec().empty()) in CleanURL()
395 if (!gurl.is_valid()) in CleanURL()
396 return gurl.spec(); in CleanURL()
397 if (!gurl.has_ref()) in CleanURL()
398 return gurl.spec(); in CleanURL()
400 if (gurl.has_port()) in CleanURL()
401 port = ":" + gurl.port(); in CleanURL()
403 if (gurl.has_query()) in CleanURL()
404 query = "?" + gurl.query(); in CleanURL()
[all …]
/external/chromium_org/net/base/registry_controlled_domains/
Dregistry_controlled_domain.cc314 const GURL& gurl, in GetDomainAndRegistry() argument
316 const url::Component host = gurl.parsed_for_possibly_invalid_spec().host; in GetDomainAndRegistry()
317 if ((host.len <= 0) || gurl.HostIsIPAddress()) in GetDomainAndRegistry()
320 gurl.possibly_invalid_spec().data() + host.begin, host.len), filter); in GetDomainAndRegistry()
355 const GURL& gurl, in GetRegistryLength() argument
358 const url::Component host = gurl.parsed_for_possibly_invalid_spec().host; in GetRegistryLength()
361 if (gurl.HostIsIPAddress()) in GetRegistryLength()
364 std::string(gurl.possibly_invalid_spec().data() + host.begin, host.len), in GetRegistryLength()
/external/chromium_org/content/browser/media/
Dmedia_browsertest.cc34 GURL gurl; in RunMediaTestPage() local
43 gurl = http_test_server->GetURL("files/" + html_page + "?" + query); in RunMediaTestPage()
45 gurl = content::GetFileUrlWithQuery(media::GetTestDataFilePath(html_page), in RunMediaTestPage()
48 std::string final_title = RunTest(gurl, expected_title); in RunMediaTestPage()
52 std::string MediaBrowserTest::RunTest(const GURL& gurl, in RunTest() argument
54 VLOG(0) << "Running test URL: " << gurl; in RunTest()
58 NavigateToURL(shell(), gurl); in RunTest()
/external/chromium_org/content/renderer/pepper/
Dpepper_websocket_host.cc208 GURL gurl(url); in OnHostMsgConnect() local
209 url_ = gurl.spec(); in OnHostMsgConnect()
210 if (!gurl.is_valid()) in OnHostMsgConnect()
212 if (!gurl.SchemeIs("ws") && !gurl.SchemeIs("wss")) in OnHostMsgConnect()
214 if (gurl.has_ref()) in OnHostMsgConnect()
216 if (!net::IsPortAllowedByDefault(gurl.IntPort())) in OnHostMsgConnect()
218 WebURL web_url(gurl); in OnHostMsgConnect()
Dpepper_video_destination_host.cc49 GURL gurl(stream_url); in OnHostMsgOpen() local
50 if (!gurl.is_valid()) in OnHostMsgOpen()
55 NULL /* registry */, gurl.spec(), &frame_writer)) in OnHostMsgOpen()
/external/chromium_org/chrome/browser/ui/
Dsettings_window_manager.cc37 const GURL& gurl) { in ShowChromePageForProfile() argument
49 if (web_contents && web_contents->GetURL() == gurl) { in ShowChromePageForProfile()
53 NavigateParams params(browser, gurl, in ShowChromePageForProfile()
62 NavigateParams params(profile, gurl, ui::PAGE_TRANSITION_AUTO_BOOKMARK); in ShowChromePageForProfile()
/external/chromium_org/content/browser/
Dchild_process_security_policy_impl.cc217 bool CanLoadPage(const GURL& gurl) { in CanLoadPage() argument
224 GURL site_gurl = SiteInstanceImpl::GetSiteForURL(NULL, gurl); in CanLoadPage()
228 bool CanAccessCookiesForOrigin(const GURL& gurl) { in CanAccessCookiesForOrigin() argument
234 GURL site_gurl = SiteInstanceImpl::GetSiteForURL(NULL, gurl); in CanAccessCookiesForOrigin()
238 bool CanSendCookiesForOrigin(const GURL& gurl) { in CanSendCookiesForOrigin() argument
254 GURL site_gurl = SiteInstanceImpl::GetSiteForURL(NULL, gurl); in CanSendCookiesForOrigin()
258 void LockToOrigin(const GURL& gurl) { in LockToOrigin() argument
259 origin_lock_ = gurl; in LockToOrigin()
817 int child_id, const GURL& gurl) { in CanAccessCookiesForOrigin() argument
822 return state->second->CanAccessCookiesForOrigin(gurl); in CanAccessCookiesForOrigin()
[all …]
/external/chromium_org/net/filter/
Dmock_filter_context.h24 void SetURL(const GURL& gurl) { gurl_ = gurl; } in SetURL() argument
48 virtual bool GetURL(GURL* gurl) const OVERRIDE;
/external/chromium_org/chrome/browser/policy/
Dmanaged_bookmarks_policy_handler.cc72 GURL gurl = url_fixer::FixupURL(url, ""); in FilterBookmarks() local
73 if (!gurl.is_valid()) { in FilterBookmarks()
77 dict->SetString(ManagedBookmarksTracker::kUrl, gurl.spec()); in FilterBookmarks()
/external/chromium_org/android_webview/renderer/
Daw_content_renderer_client.cc96 const GURL& gurl = request.url(); in HandleNavigation() local
101 (gurl.SchemeIs(url::kHttpScheme) || gurl.SchemeIs(url::kHttpsScheme) || in HandleNavigation()
102 gurl.SchemeIs(url::kAboutScheme))) in HandleNavigation()
Daw_permission_client.cc21 GURL gurl(url); in AllowMixedContent() local
22 return !gurl.IsStandard(); in AllowMixedContent()
/external/chromium_org/content/public/test/
Dtest_file_system_backend.cc90 const GURL gurl = url.ToGURL(); in WatchDirectory() local
91 if (watched_urls_.find(gurl) != watched_urls_.end()) { in WatchDirectory()
97 watched_urls_.insert(gurl); in WatchDirectory()
118 const GURL gurl = url.ToGURL(); in UnwatchEntry() local
119 if (watched_urls_.find(gurl) == watched_urls_.end()) { in UnwatchEntry()
125 watched_urls_.erase(gurl); in UnwatchEntry()
/external/chromium_org/components/nacl/renderer/
Dppb_nacl_private_impl.cc240 const GURL& gurl) { in CreateWebURLLoader() argument
246 if (document.securityOrigin().canRequest(gurl)) { in CreateWebURLLoader()
257 const GURL& gurl) { in CreateWebURLRequest() argument
260 request.setURL(gurl); in CreateWebURLRequest()
675 GURL gurl(file_url); in OpenNaClExecutable() local
676 if (!gurl.SchemeIs("chrome-extension")) in OpenNaClExecutable()
689 if (!security_origin.canRequest(gurl)) in OpenNaClExecutable()
840 GURL gurl(base_url); in RequestNaClManifest() local
845 if (net::DataURL::Parse(gurl, &mime_type, &charset, &data)) { in RequestNaClManifest()
870 const GURL& gurl = load_manager->manifest_base_url(); in GetManifestBaseURL() local
[all …]
/external/chromium_org/net/url_request/
Durl_request_context_builder_unittest.cc113 GURL gurl("www.google.com"); in TEST_F() local
125 gurl, in TEST_F()
131 "Bogus", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST_F()

1234567