/external/chromium_org/components/url_fixer/ |
D | url_fixer_unittest.cc | 20 namespace url { namespace 31 const url::Component scheme; 32 const url::Component username; 33 const url::Component password; 34 const url::Component host; 35 const url::Component port; 36 const url::Component path; 37 const url::Component query; 38 const url::Component ref; 43 url::Component(0, 4), // scheme [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | httpcommon_unittest.cc | 41 Url<char> url(TEST_URL); in TEST() local 42 EXPECT_TRUE(url.valid()); in TEST() 43 EXPECT_FALSE(url.secure()); in TEST() 44 EXPECT_STREQ(TEST_HOST, url.host().c_str()); in TEST() 45 EXPECT_EQ(80, url.port()); in TEST() 46 EXPECT_STREQ(TEST_PATH, url.path().c_str()); in TEST() 47 EXPECT_STREQ(TEST_QUERY, url.query().c_str()); in TEST() 48 EXPECT_STREQ(TEST_HOST, url.address().c_str()); in TEST() 49 EXPECT_STREQ(TEST_PATH TEST_QUERY, url.full_path().c_str()); in TEST() 50 EXPECT_STREQ(TEST_URL, url.url().c_str()); in TEST() [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 | 173 const GURL& url); 177 WebUIController* NewWebUI(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 185 const GURL& url) { in NewWebUI() argument 186 return new ExtensionWebUI(web_ui, url); in NewWebUI() 192 WebUIController* NewWebUI<AboutUI>(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 193 return new AboutUI(web_ui, url.host()); in NewWebUI() 198 WebUIController* NewWebUI<chromeos::OobeUI>(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 199 return new chromeos::OobeUI(web_ui, url); in NewWebUI() 206 const GURL& url) { in NewWebUI() argument 221 bool NeedsExtensionWebUI(Profile* profile, const GURL& url) { in NeedsExtensionWebUI() argument [all …]
|
/external/chromium_org/content/browser/frame_host/ |
D | debug_urls.cc | 34 void HandlePpapiFlashDebugURL(const GURL& url) { in HandlePpapiFlashDebugURL() argument 36 bool crash = url == GURL(kChromeUIPpapiFlashCrashURL); in HandlePpapiFlashDebugURL() 51 bool IsAsanDebugURL(const GURL& url) { in IsAsanDebugURL() argument 57 if (!(url.is_valid() && url.SchemeIs(kChromeUIScheme) && in IsAsanDebugURL() 58 url.DomainIs(kAsanCrashDomain, sizeof(kAsanCrashDomain) - 1) && in IsAsanDebugURL() 59 url.has_path())) { in IsAsanDebugURL() 63 if (url.path() == kAsanHeapOverflow || url.path() == kAsanHeapUnderflow || in IsAsanDebugURL() 64 url.path() == kAsanUseAfterFree) { in IsAsanDebugURL() 69 if (url.path() == kAsanCorruptHeapBlock || url.path() == kAsanCorruptHeap) in IsAsanDebugURL() 76 bool HandleAsanDebugURL(const GURL& url) { in HandleAsanDebugURL() argument [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
D | Location.cpp | 50 inline const KURL& Location::url() const in url() function in WebCore::Location 54 const KURL& url = m_frame->document()->url(); in url() local 55 if (!url.isValid()) in url() 58 return url; in url() 66 return url().string(); in href() 73 return DOMURLUtilsReadOnly::protocol(url()); in protocol() 80 return DOMURLUtilsReadOnly::host(url()); in host() 87 return DOMURLUtilsReadOnly::hostname(url()); in hostname() 94 return DOMURLUtilsReadOnly::port(url()); in port() 101 return DOMURLUtilsReadOnly::pathname(url()); in pathname() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/blob/ |
D | BlobRegistry.cpp | 68 BlobRegistryContext(const KURL& url, PassOwnPtr<BlobData> blobData) in BlobRegistryContext() 69 : url(url.copy()) in BlobRegistryContext() 75 BlobRegistryContext(const KURL& url, const String& type) in BlobRegistryContext() 76 : url(url.copy()) in BlobRegistryContext() 81 BlobRegistryContext(const KURL& url, const KURL& srcURL) in BlobRegistryContext() 82 : url(url.copy()) in BlobRegistryContext() 87 BlobRegistryContext(const KURL& url, PassRefPtr<RawData> streamData) in BlobRegistryContext() 88 : url(url.copy()) in BlobRegistryContext() 93 BlobRegistryContext(const KURL& url) in BlobRegistryContext() 94 : url(url.copy()) in BlobRegistryContext() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/web_request/ |
D | web_request_permissions.cc | 27 bool IsSensitiveURL(const GURL& url) { in IsSensitiveURL() argument 31 const std::string host = url.host(); in IsSensitiveURL() 53 EndsWith(url.host(), ".clients.google.com", true) || in IsSensitiveURL() 54 url.host() == "sb-ssl.google.com" || in IsSensitiveURL() 55 (url.host() == "chrome.google.com" && in IsSensitiveURL() 56 StartsWithASCII(url.path(), "/webstore", true)); in IsSensitiveURL() 61 GURL url_without_query = url.ReplaceComponents(replacements); in IsSensitiveURL() 64 extension_urls::IsBlacklistUpdateUrl(url); in IsSensitiveURL() 70 bool HasWebRequestScheme(const GURL& url) { in HasWebRequestScheme() argument 71 return (url.SchemeIs(url::kAboutScheme) || url.SchemeIs(url::kFileScheme) || in HasWebRequestScheme() [all …]
|
/external/chromium_org/chrome/browser/search_engines/ |
D | template_url_unittest.cc | 99 TemplateURL url(data); in TEST_F() local 100 EXPECT_TRUE(url.url_ref().IsValid(search_terms_data_)); in TEST_F() 105 const char* url; in TEST_F() member 121 data.SetURL(value.url); in TEST_F() 122 TemplateURL url(data); in TEST_F() local 123 EXPECT_TRUE(url.url_ref().IsValid(search_terms_data_)); in TEST_F() 124 ASSERT_TRUE(url.url_ref().SupportsReplacement(search_terms_data_)); in TEST_F() 125 GURL result(url.url_ref().ReplaceSearchTerms( in TEST_F() 135 TemplateURL url(data); in TEST_F() local 136 EXPECT_TRUE(url.url_ref().IsValid(search_terms_data_)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/prerender/ |
D | prerender_util.cc | 96 const GURL& url, GURL* alias_url) { in MaybeGetQueryStringBasedAliasURL() argument 98 url::Parsed parsed; in MaybeGetQueryStringBasedAliasURL() 99 url::ParseStandardURL(url.spec().c_str(), url.spec().length(), &parsed); in MaybeGetQueryStringBasedAliasURL() 100 url::Component query = parsed.query; in MaybeGetQueryStringBasedAliasURL() 101 url::Component key, value; in MaybeGetQueryStringBasedAliasURL() 102 while (url::ExtractQueryKeyValue(url.spec().c_str(), &query, &key, &value)) { in MaybeGetQueryStringBasedAliasURL() 103 if (key.len != 3 || strncmp(url.spec().c_str() + key.begin, "url", key.len)) in MaybeGetQueryStringBasedAliasURL() 108 url::RawCanonOutputW<1024> decoded_url; in MaybeGetQueryStringBasedAliasURL() 109 url::DecodeURLEscapeSequences(url.spec().c_str() + value.begin, value.len, in MaybeGetQueryStringBasedAliasURL() 121 uint8 GetQueryStringBasedExperiment(const GURL& url) { in GetQueryStringBasedExperiment() argument [all …]
|
D | prerender_unittest.cc | 46 const GURL& url, 126 PrerenderContents* FindEntry(const GURL& url) { in FindEntry() argument 129 if (PrerenderData* data = FindPrerenderData(url, NULL)) in FindEntry() 134 PrerenderContents* FindAndUseEntry(const GURL& url) { in FindAndUseEntry() argument 135 PrerenderData* prerender_data = FindPrerenderData(url, NULL); in FindAndUseEntry() 157 const GURL& url, in CreateNextPrerenderContents() argument 160 new DummyPrerenderContents(this, prerender_tracker_, url, in CreateNextPrerenderContents() 168 const GURL& url, in CreateNextPrerenderContents() argument 172 new DummyPrerenderContents(this, prerender_tracker_, url, in CreateNextPrerenderContents() 179 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/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/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/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/toolbar/ |
D | origin_chip_info.cc | 38 int StringForChromeHost(const GURL& url) { in StringForChromeHost() argument 39 DCHECK(url.is_empty() || url.SchemeIs(content::kChromeUIScheme)); in StringForChromeHost() 41 if (url.is_empty()) in StringForChromeHost() 45 std::string host = url.host(); in StringForChromeHost() 158 bool OriginChip::IsMalware(const GURL& url, const content::WebContents* tab) { in IsMalware() argument 161 if (tab->GetURL() != url) in IsMalware() 175 GURL url(provided_url); in LabelFromURLForProfile() local 176 if (url.SchemeIs(content::kViewSourceScheme)) in LabelFromURLForProfile() 177 url = GURL(url.GetContent()); in LabelFromURLForProfile() 181 if (url.SchemeIs(url::kAboutScheme)) in LabelFromURLForProfile() [all …]
|
/external/chromium_org/chrome/browser/sync_file_system/local/ |
D | local_file_sync_status.cc | 20 OriginAndType GetOriginAndType(const fileapi::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 …]
|
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)) 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 …]
|
/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 | 19 static bool HandleViewSource(GURL* url, BrowserContext* browser_context) { in HandleViewSource() argument 20 if (url->SchemeIs(kViewSourceScheme)) { in HandleViewSource() 22 *url = GURL(url->GetContent()); in HandleViewSource() 27 url::kHttpScheme, in HandleViewSource() 28 url::kHttpsScheme, in HandleViewSource() 29 url::kFtpScheme, in HandleViewSource() 32 url::kFileScheme, in HandleViewSource() 33 url::kFileSystemScheme in HandleViewSource() 46 if (url->SchemeIs(all_allowed_sub_schemes[i].c_str())) { in HandleViewSource() 53 *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/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/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/third_party/WebKit/Source/devtools/front_end/sdk/ |
D | FileManager.js | 61 save: function(url, content, forceSaveAs, callback) argument 65 delete savedURLs[url]; 67 this._saveCallbacks[url] = callback || null; 68 InspectorFrontendHost.save(url, content, forceSaveAs); 74 savedURL: function(url) argument 77 savedURLs[url] = true; 79 this.dispatchEventToListeners(WebInspector.FileManager.EventTypes.SavedURL, url); 80 this._invokeSaveCallback(url, true); 87 _invokeSaveCallback: function(url, accepted) argument 89 var callback = this._saveCallbacks[url]; [all …]
|