/external/chromium_org/components/url_fixer/ |
D | url_fixer_unittest.cc | 21 namespace url { namespace 32 const url::Component scheme; 33 const url::Component username; 34 const url::Component password; 35 const url::Component host; 36 const url::Component port; 37 const url::Component path; 38 const url::Component query; 39 const url::Component ref; 44 url::Component(0, 4), // scheme [all …]
|
/external/chromium_org/third_party/webrtc/base/ |
D | httpcommon_unittest.cc | 24 Url<char> url(TEST_URL); in TEST() local 25 EXPECT_TRUE(url.valid()); in TEST() 26 EXPECT_FALSE(url.secure()); in TEST() 27 EXPECT_STREQ(TEST_HOST, url.host().c_str()); in TEST() 28 EXPECT_EQ(80, url.port()); in TEST() 29 EXPECT_STREQ(TEST_PATH, url.path().c_str()); in TEST() 30 EXPECT_STREQ(TEST_QUERY, url.query().c_str()); in TEST() 31 EXPECT_STREQ(TEST_HOST, url.address().c_str()); in TEST() 32 EXPECT_STREQ(TEST_PATH TEST_QUERY, url.full_path().c_str()); in TEST() 33 EXPECT_STREQ(TEST_URL, url.url().c_str()); in TEST() [all …]
|
/external/chromium_org/chrome/browser/ui/webui/ |
D | bidi_checker_web_ui_test.cc | 299 std::string url(chrome::kChromeUISettingsFrameURL); in IN_PROC_BROWSER_TEST_F() local 300 url += std::string(chrome::kAutofillSubPage); in IN_PROC_BROWSER_TEST_F() 301 RunBidiCheckerOnPage(url); in IN_PROC_BROWSER_TEST_F() 320 std::string url(chrome::kChromeUISettingsFrameURL); in IN_PROC_BROWSER_TEST_F() local 321 url += std::string(chrome::kAutofillSubPage); in IN_PROC_BROWSER_TEST_F() 322 RunBidiCheckerOnPage(url); in IN_PROC_BROWSER_TEST_F() 327 std::string url(chrome::kChromeUISettingsFrameURL); in IN_PROC_BROWSER_TEST_F() local 328 url += std::string(chrome::kClearBrowserDataSubPage); in IN_PROC_BROWSER_TEST_F() 329 RunBidiCheckerOnPage(url); in IN_PROC_BROWSER_TEST_F() 334 std::string url(chrome::kChromeUISettingsFrameURL); in IN_PROC_BROWSER_TEST_F() local [all …]
|
D | chrome_web_ui_controller_factory.cc | 179 const GURL& url); 183 WebUIController* NewWebUI(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 191 const GURL& url) { in NewWebUI() argument 192 return new ExtensionWebUI(web_ui, url); in NewWebUI() 198 WebUIController* NewWebUI<AboutUI>(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 199 return new AboutUI(web_ui, url.host()); in NewWebUI() 204 WebUIController* NewWebUI<chromeos::OobeUI>(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 205 return new chromeos::OobeUI(web_ui, url); in NewWebUI() 212 const GURL& url) { in NewWebUI() argument 227 bool NeedsExtensionWebUI(Profile* profile, const GURL& url) { in NeedsExtensionWebUI() argument [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/blob/ |
D | BlobRegistry.cpp | 63 BlobRegistryContext(const KURL& url, PassOwnPtr<BlobData> blobData) in BlobRegistryContext() 64 : url(url.copy()) in BlobRegistryContext() 70 BlobRegistryContext(const KURL& url, const String& type) in BlobRegistryContext() 71 : url(url.copy()) in BlobRegistryContext() 76 BlobRegistryContext(const KURL& url, const KURL& srcURL) in BlobRegistryContext() 77 : url(url.copy()) in BlobRegistryContext() 82 BlobRegistryContext(const KURL& url, PassRefPtr<RawData> streamData) in BlobRegistryContext() 83 : url(url.copy()) in BlobRegistryContext() 88 BlobRegistryContext(const KURL& url) in BlobRegistryContext() 89 : url(url.copy()) in BlobRegistryContext() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
D | Location.cpp | 54 inline const KURL& Location::url() const in url() function in blink::Location 58 const KURL& url = m_frame->document()->url(); in url() local 59 if (!url.isValid()) in url() 62 return url; in url() 70 return url().string(); in href() 77 return DOMURLUtilsReadOnly::protocol(url()); in protocol() 84 return DOMURLUtilsReadOnly::host(url()); in host() 91 return DOMURLUtilsReadOnly::hostname(url()); in hostname() 98 return DOMURLUtilsReadOnly::port(url()); in port() 105 return DOMURLUtilsReadOnly::pathname(url()); in pathname() [all …]
|
/external/chromium_org/content/browser/frame_host/ |
D | debug_urls.cc | 39 void HandlePpapiFlashDebugURL(const GURL& url) { in HandlePpapiFlashDebugURL() argument 41 bool crash = url == GURL(kChromeUIPpapiFlashCrashURL); in HandlePpapiFlashDebugURL() 56 bool IsAsanDebugURL(const GURL& url) { in IsAsanDebugURL() argument 62 if (!(url.is_valid() && url.SchemeIs(kChromeUIScheme) && in IsAsanDebugURL() 63 url.DomainIs(kAsanCrashDomain, sizeof(kAsanCrashDomain) - 1) && in IsAsanDebugURL() 64 url.has_path())) { in IsAsanDebugURL() 68 if (url.path() == kAsanHeapOverflow || url.path() == kAsanHeapUnderflow || in IsAsanDebugURL() 69 url.path() == kAsanUseAfterFree) { in IsAsanDebugURL() 74 if (url.path() == kAsanCorruptHeapBlock || url.path() == kAsanCorruptHeap) in IsAsanDebugURL() 81 bool HandleAsanDebugURL(const GURL& url) { in HandleAsanDebugURL() argument [all …]
|
/external/chromium_org/components/search_engines/ |
D | template_url_unittest.cc | 46 TemplateURL url(data); in TEST_F() local 47 EXPECT_TRUE(url.url_ref().IsValid(search_terms_data_)); in TEST_F() 52 const char* url; in TEST_F() member 68 data.SetURL(value.url); in TEST_F() 69 TemplateURL url(data); in TEST_F() local 70 EXPECT_TRUE(url.url_ref().IsValid(search_terms_data_)); in TEST_F() 71 ASSERT_TRUE(url.url_ref().SupportsReplacement(search_terms_data_)); in TEST_F() 72 GURL result(url.url_ref().ReplaceSearchTerms( in TEST_F() 82 TemplateURL url(data); in TEST_F() local 83 EXPECT_TRUE(url.url_ref().IsValid(search_terms_data_)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/web_request/ |
D | web_request_permissions.cc | 26 bool IsSensitiveURL(const GURL& url) { in IsSensitiveURL() argument 30 const std::string host = url.host(); in IsSensitiveURL() 52 EndsWith(url.host(), ".clients.google.com", true) || in IsSensitiveURL() 53 url.host() == "sb-ssl.google.com" || in IsSensitiveURL() 54 (url.host() == "chrome.google.com" && in IsSensitiveURL() 55 StartsWithASCII(url.path(), "/webstore", true)); in IsSensitiveURL() 60 GURL url_without_query = url.ReplaceComponents(replacements); in IsSensitiveURL() 63 extension_urls::IsBlacklistUpdateUrl(url); in IsSensitiveURL() 69 bool HasWebRequestScheme(const GURL& url) { in HasWebRequestScheme() argument 70 return (url.SchemeIs(url::kAboutScheme) || url.SchemeIs(url::kFileScheme) || in HasWebRequestScheme() [all …]
|
/external/chromium_org/extensions/browser/api/web_request/ |
D | web_request_permissions.cc | 26 bool IsSensitiveURL(const GURL& url) { in IsSensitiveURL() argument 30 const std::string host = url.host(); in IsSensitiveURL() 52 EndsWith(url.host(), ".clients.google.com", true) || in IsSensitiveURL() 53 url.host() == "sb-ssl.google.com" || in IsSensitiveURL() 54 (url.host() == "chrome.google.com" && in IsSensitiveURL() 55 StartsWithASCII(url.path(), "/webstore", true)); in IsSensitiveURL() 60 GURL url_without_query = url.ReplaceComponents(replacements); in IsSensitiveURL() 63 extension_urls::IsBlacklistUpdateUrl(url); in IsSensitiveURL() 69 bool HasWebRequestScheme(const GURL& url) { in HasWebRequestScheme() argument 70 return (url.SchemeIs(url::kAboutScheme) || url.SchemeIs(url::kFileScheme) || in HasWebRequestScheme() [all …]
|
/external/chromium_org/chrome/browser/sync_file_system/local/ |
D | local_file_change_tracker.cc | 45 SyncStatusCode MarkDirty(const std::string& url); 46 SyncStatusCode ClearDirty(const std::string& url); 91 void LocalFileChangeTracker::OnStartUpdate(const FileSystemURL& url) { in OnStartUpdate() argument 93 if (ContainsKey(changes_, url) || ContainsKey(demoted_changes_, url)) in OnStartUpdate() 96 MarkDirtyOnDatabase(url); in OnStartUpdate() 99 void LocalFileChangeTracker::OnEndUpdate(const FileSystemURL& url) {} in OnEndUpdate() argument 101 void LocalFileChangeTracker::OnCreateFile(const FileSystemURL& url) { in OnCreateFile() argument 102 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in OnCreateFile() 106 void LocalFileChangeTracker::OnCreateFileFrom(const FileSystemURL& url, in OnCreateFileFrom() argument 108 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in OnCreateFileFrom() [all …]
|
D | local_file_sync_status.cc | 20 OriginAndType GetOriginAndType(const storage::FileSystemURL& url) { in GetOriginAndType() argument 21 return std::make_pair(url.origin(), url.type()); in GetOriginAndType() 80 void LocalFileSyncStatus::StartWriting(const FileSystemURL& url) { in StartWriting() argument 82 DCHECK(!IsChildOrParentSyncing(url)); in StartWriting() 83 writing_[GetOriginAndType(url)][NormalizePath(url.path())]++; in StartWriting() 86 void LocalFileSyncStatus::EndWriting(const FileSystemURL& url) { in EndWriting() argument 88 base::FilePath normalized_path = NormalizePath(url.path()); in EndWriting() 89 OriginAndType origin_and_type = GetOriginAndType(url); in EndWriting() 96 FOR_EACH_OBSERVER(Observer, observer_list_, OnSyncEnabled(url)); in EndWriting() 100 void LocalFileSyncStatus::StartSyncing(const FileSystemURL& url) { in StartSyncing() argument [all …]
|
/external/chromium_org/chrome/browser/prerender/ |
D | prerender_util.cc | 98 const GURL& url, GURL* alias_url) { in MaybeGetQueryStringBasedAliasURL() argument 100 url::Parsed parsed; in MaybeGetQueryStringBasedAliasURL() 101 url::ParseStandardURL(url.spec().c_str(), url.spec().length(), &parsed); in MaybeGetQueryStringBasedAliasURL() 102 url::Component query = parsed.query; in MaybeGetQueryStringBasedAliasURL() 103 url::Component key, value; in MaybeGetQueryStringBasedAliasURL() 104 while (url::ExtractQueryKeyValue(url.spec().c_str(), &query, &key, &value)) { in MaybeGetQueryStringBasedAliasURL() 105 if (key.len != 3 || strncmp(url.spec().c_str() + key.begin, "url", key.len)) in MaybeGetQueryStringBasedAliasURL() 110 url::RawCanonOutputW<1024> decoded_url; in MaybeGetQueryStringBasedAliasURL() 111 url::DecodeURLEscapeSequences(url.spec().c_str() + value.begin, value.len, in MaybeGetQueryStringBasedAliasURL() 123 uint8 GetQueryStringBasedExperiment(const GURL& url) { in GetQueryStringBasedExperiment() argument [all …]
|
D | prerender_unittest.cc | 49 const GURL& url, 129 PrerenderContents* FindEntry(const GURL& url) { in FindEntry() argument 132 if (PrerenderData* data = FindPrerenderData(url, NULL)) in FindEntry() 137 PrerenderContents* FindAndUseEntry(const GURL& url) { in FindAndUseEntry() argument 138 PrerenderData* prerender_data = FindPrerenderData(url, NULL); in FindAndUseEntry() 160 const GURL& url, in CreateNextPrerenderContents() argument 163 new DummyPrerenderContents(this, prerender_tracker_, url, in CreateNextPrerenderContents() 171 const GURL& url, in CreateNextPrerenderContents() argument 175 new DummyPrerenderContents(this, prerender_tracker_, url, in CreateNextPrerenderContents() 182 const GURL& url, in CreateNextPrerenderContents() argument [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-php/lib/lightopenid/ |
D | openid.php | 115 protected function request($url, $method='GET', $params=array()) argument 118 $curl = curl_init($url . ($method == 'GET' && $params ? '?' . $params : '')); 141 protected function build_url($url, $parts) argument 143 if (isset($url['query'], $parts['query'])) { 144 $parts['query'] = $url['query'] . '&' . $parts['query']; 147 $url = $parts + $url; 148 $url = $url['scheme'] . '://' 149 . (empty($url['username'])?'' 150 :(empty($url['password'])? "{$url['username']}@" 151 :"{$url['username']}:{$url['password']}@")) [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/weborigin/ |
D | SecurityOrigin.cpp | 50 static bool schemeRequiresAuthority(const KURL& url) in schemeRequiresAuthority() argument 55 return url.protocolIsInHTTPFamily() || url.protocolIs("ftp"); in schemeRequiresAuthority() 58 static SecurityOrigin* cachedOrigin(const KURL& url) in cachedOrigin() argument 61 return s_originCache->cachedOrigin(url); in cachedOrigin() 65 bool SecurityOrigin::shouldUseInnerURL(const KURL& url) in shouldUseInnerURL() argument 68 if (url.protocolIs("blob")) in shouldUseInnerURL() 70 if (url.protocolIs("filesystem")) in shouldUseInnerURL() 78 KURL SecurityOrigin::extractInnerURL(const KURL& url) in extractInnerURL() argument 80 if (url.innerURL()) in extractInnerURL() 81 return *url.innerURL(); in extractInnerURL() [all …]
|
/external/chromium_org/components/cloud_devices/common/ |
D | cloud_devices_urls.cc | 52 GURL url = GetCloudPrintURL(); in GetCloudPrintRelativeURL() local 55 base::TrimString(url.path(), kURLPathSeparator, &path); in GetCloudPrintRelativeURL() 62 return url.ReplaceComponents(replacements); in GetCloudPrintRelativeURL() 66 GURL url(GaiaUrls::GetInstance()->service_login_url()); in GetCloudPrintSigninURL() local 67 url = net::AppendQueryParameter(url, "service", "cloudprint"); in GetCloudPrintSigninURL() 68 url = net::AppendQueryParameter(url, "sarp", "1"); in GetCloudPrintSigninURL() 70 url = net::AppendQueryParameter(url, "continue", continue_str); in GetCloudPrintSigninURL() 71 return url; in GetCloudPrintSigninURL() 75 GURL url(GaiaUrls::GetInstance()->add_account_url()); in GetCloudPrintAddAccountURL() local 76 url = net::AppendQueryParameter(url, "service", "cloudprint"); in GetCloudPrintAddAccountURL() [all …]
|
/external/chromium_org/chrome/test/perf/ |
D | url_parse_perftest.cc | 26 const char url[] = "http://me:pass@host/foo/bar.html;param?query=yes#ref"; 27 int url_len = static_cast<int>(strlen(url)); 29 url::Parsed parsed; 33 url::ParseStandardURL(url, url_len, &parsed); 51 url::Parsed parsed1; 52 url::Parsed parsed2; 53 url::Parsed parsed3; 58 url::ParseStandardURL(typical_url1, typical_url1_len, &parsed1); 59 url::ParseStandardURL(typical_url2, typical_url2_len, &parsed2); 60 url::ParseStandardURL(typical_url3, typical_url3_len, &parsed3); [all …]
|
/external/chromium_org/chrome/browser/ui/location_bar/ |
D | origin_chip_info.cc | 40 int StringForChromeHost(const GURL& url) { in StringForChromeHost() argument 41 DCHECK(url.is_empty() || url.SchemeIs(content::kChromeUIScheme)); in StringForChromeHost() 43 if (url.is_empty()) in StringForChromeHost() 47 std::string host = url.host(); in StringForChromeHost() 166 bool OriginChip::IsMalware(const GURL& url, const content::WebContents* tab) { in IsMalware() argument 169 if (tab->GetURL() != url) in IsMalware() 182 GURL url(provided_url); in LabelFromURLForProfile() local 183 if (url.SchemeIs(content::kViewSourceScheme)) in LabelFromURLForProfile() 184 url = GURL(url.GetContent()); in LabelFromURLForProfile() 188 if (url.SchemeIs(url::kAboutScheme)) in LabelFromURLForProfile() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
D | DOMURLUtilsReadOnly.h | 37 virtual KURL url() const = 0; 44 String origin() { return origin(url()); } in origin() 46 static String protocol(const KURL& url) { return url.protocol() + ":"; } in protocol() argument 47 String protocol() { return protocol(url()); } in protocol() 49 static String username(const KURL& url) { return url.user(); } in username() argument 50 String username() { return username(url()); } in username() 52 static String password(const KURL& url) { return url.pass(); } in password() argument 53 String password() { return password(url()); } in password() 56 String host() { return host(url()); } in host() 58 static String hostname(const KURL& url) { return url.host(); } in hostname() argument [all …]
|
/external/chromium_org/content/browser/ |
D | browser_url_handler_impl.cc | 17 static bool HandleViewSource(GURL* url, BrowserContext* browser_context) { in HandleViewSource() argument 18 if (url->SchemeIs(kViewSourceScheme)) { in HandleViewSource() 20 *url = GURL(url->GetContent()); in HandleViewSource() 25 url::kHttpScheme, in HandleViewSource() 26 url::kHttpsScheme, in HandleViewSource() 27 url::kFtpScheme, in HandleViewSource() 30 url::kFileScheme, in HandleViewSource() 31 url::kFileSystemScheme in HandleViewSource() 44 if (url->SchemeIs(all_allowed_sub_schemes[i].c_str())) { in HandleViewSource() 51 *url = GURL(url::kAboutBlankURL); in HandleViewSource() [all …]
|
D | browser_url_handler_impl_unittest.cc | 16 static bool FooRewriter(GURL* url, BrowserContext* browser_context) { in FooRewriter() argument 17 if (url->scheme() == "foo") { in FooRewriter() 18 *url = GURL("bar://bar"); in FooRewriter() 25 static bool BarRewriter(GURL* url, BrowserContext* browser_context) { in BarRewriter() argument 26 if (url->scheme() == "bar") { in BarRewriter() 27 *url = GURL("foo://foo"); in BarRewriter() 39 GURL url("foo://bar"); in TEST_F() local 40 GURL original_url(url); in TEST_F() 42 handler.RewriteURLIfNecessary(&url, &browser_context, &reverse_on_redirect); in TEST_F() 44 ASSERT_EQ("bar://bar", url.spec()); in TEST_F() [all …]
|
/external/chromium_org/google_apis/drive/ |
D | drive_api_url_generator.cc | 42 GURL AddResumableUploadParam(const GURL& url) { in AddResumableUploadParam() argument 43 return net::AppendOrReplaceQueryParameter(url, "uploadType", "resumable"); in AddResumableUploadParam() 97 GURL url = in GetFilesPatchUrl() local 102 url = net::AppendOrReplaceQueryParameter(url, "setModifiedDate", "true"); in GetFilesPatchUrl() 106 url = net::AppendOrReplaceQueryParameter(url, "updateViewedDate", "false"); in GetFilesPatchUrl() 108 return url; in GetFilesPatchUrl() 119 GURL url = base_url_.Resolve(kDriveV2FilesUrl); in GetFilesListUrl() local 123 url = net::AppendOrReplaceQueryParameter( in GetFilesListUrl() 124 url, "maxResults", base::IntToString(max_results)); in GetFilesListUrl() 128 url = net::AppendOrReplaceQueryParameter(url, "pageToken", page_token); in GetFilesListUrl() [all …]
|
/external/chromium_org/tools/site_compare/commands/ |
D | maskmaker.py | 103 def __init__(self, url): argument 104 self.url = url 116 url_list = [MaskmakerURL(url.strip()) for url in 138 for url in url_list: 139 print "Processing %r..." % url.url 140 mask_filename = drivers.windowing.URLtoFilename(url.url, outdir, ".bmp") 180 [url.url], mask_scrape_dir, size, (0, 0), 187 url.errors += 1 188 if url.errors >= errors: 204 url.consecutive_successes += 1 [all …]
|
/external/chromium_org/content/browser/webui/ |
D | content_web_ui_controller_factory.cc | 25 BrowserContext* browser_context, const GURL& url) const { in GetWebUIType() 26 if (url.host() == kChromeUIWebRTCInternalsHost || in GetWebUIType() 28 url.host() == kChromeUITracingHost || in GetWebUIType() 30 url.host() == kChromeUIGpuHost || in GetWebUIType() 31 url.host() == kChromeUIIndexedDBInternalsHost || in GetWebUIType() 32 url.host() == kChromeUIMediaInternalsHost || in GetWebUIType() 33 url.host() == kChromeUIServiceWorkerInternalsHost || in GetWebUIType() 34 url.host() == kChromeUIAccessibilityHost) { in GetWebUIType() 41 BrowserContext* browser_context, const GURL& url) const { in UseWebUIForURL() 42 return GetWebUIType(browser_context, url) != WebUI::kNoWebUI; in UseWebUIForURL() [all …]
|