/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/chrome/browser/ui/webui/ |
D | bidi_checker_web_ui_test.cc | 309 std::string url(chrome::kChromeUISettingsFrameURL); in IN_PROC_BROWSER_TEST_F() local 310 url += std::string(chrome::kAutofillSubPage); in IN_PROC_BROWSER_TEST_F() 311 RunBidiCheckerOnPage(url); in IN_PROC_BROWSER_TEST_F() 330 std::string url(chrome::kChromeUISettingsFrameURL); in IN_PROC_BROWSER_TEST_F() local 331 url += std::string(chrome::kAutofillSubPage); in IN_PROC_BROWSER_TEST_F() 332 RunBidiCheckerOnPage(url); in IN_PROC_BROWSER_TEST_F() 337 std::string url(chrome::kChromeUISettingsFrameURL); in IN_PROC_BROWSER_TEST_F() local 338 url += std::string(chrome::kClearBrowserDataSubPage); in IN_PROC_BROWSER_TEST_F() 339 RunBidiCheckerOnPage(url); in IN_PROC_BROWSER_TEST_F() 344 std::string url(chrome::kChromeUISettingsFrameURL); in IN_PROC_BROWSER_TEST_F() local [all …]
|
D | chrome_web_ui_controller_factory.cc | 157 const GURL& url); 161 WebUIController* NewWebUI(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 169 const GURL& url) { in NewWebUI() argument 170 return new ExtensionWebUI(web_ui, url); in NewWebUI() 175 const GURL& url) { in NewWebUI() argument 176 return new extensions::ExtensionInfoUI(web_ui, url); in NewWebUI() 182 WebUIController* NewWebUI<AboutUI>(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 183 return new AboutUI(web_ui, url.host()); in NewWebUI() 188 WebUIController* NewWebUI<chromeos::OobeUI>(WebUI* web_ui, const GURL& url) { in NewWebUI() argument 189 return new chromeos::OobeUI(web_ui, url); in NewWebUI() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
D | DOMURLUtils.cpp | 41 KURL url = impl->url(); in setProtocol() local 42 if (url.isNull()) in setProtocol() 44 url.setProtocol(value); in setProtocol() 45 impl->setURL(url); in setProtocol() 50 KURL url = impl->url(); in setUsername() local 51 if (url.isNull()) in setUsername() 53 url.setUser(value); in setUsername() 54 impl->setURL(url); in setUsername() 59 KURL url = impl->url(); in setPassword() local 60 if (url.isNull()) in setPassword() [all …]
|
D | DOMURLUtilsReadOnly.cpp | 37 const KURL& url = impl->url(); in href() local 38 if (url.isNull()) in href() 40 return url.string(); in href() 43 String DOMURLUtilsReadOnly::origin(const KURL& url) in origin() argument 45 if (url.isNull()) in origin() 47 return SecurityOrigin::create(url)->toString(); in origin() 50 String DOMURLUtilsReadOnly::host(const KURL& url) in host() argument 52 if (url.hostEnd() == url.pathStart()) in host() 53 return url.host(); in host() 54 if (isDefaultPortForProtocol(url.port(), url.protocol())) in host() [all …]
|
D | DOMURLUtilsReadOnly.h | 38 virtual KURL url() const = 0; 45 static String origin(DOMURLUtilsReadOnly* impl) { return origin(impl->url()); } in origin() 47 static String protocol(const KURL& url) { return url.protocol() + ":"; } in protocol() argument 48 static String protocol(DOMURLUtilsReadOnly* impl) { return protocol(impl->url()); } in protocol() 50 static String username(const KURL& url) { return url.user(); } in username() argument 51 static String username(DOMURLUtilsReadOnly* impl) { return username(impl->url()); } in username() 53 static String password(const KURL& url) { return url.pass(); } in password() argument 54 static String password(DOMURLUtilsReadOnly* impl) { return password(impl->url()); } in password() 57 static String host(DOMURLUtilsReadOnly* impl) { return host(impl->url()); } in host() 59 static String hostname(const KURL& url) { return url.host(); } in hostname() argument [all …]
|
/external/chromium/chrome/browser/ui/webui/ |
D | chrome_web_ui_factory.cc | 70 const GURL& url); 74 WebUI* NewWebUI(TabContents* contents, const GURL& url) { in NewWebUI() argument 80 WebUI* NewWebUI<ExtensionWebUI>(TabContents* contents, const GURL& url) { in NewWebUI() argument 85 service->ExtensionBindingsAllowed(url)) { in NewWebUI() 86 return new ExtensionWebUI(contents, url); in NewWebUI() 96 const GURL& url) { in GetWebUIFactoryFunction() argument 97 if (url.host() == chrome::kChromeUIDialogHost) in GetWebUIFactoryFunction() 101 if (service && service->ExtensionBindingsAllowed(url)) in GetWebUIFactoryFunction() 107 if (url.host() == chrome::kCloudPrintResourcesHost) in GetWebUIFactoryFunction() 112 if (!url.SchemeIs(chrome::kChromeDevToolsScheme) && in GetWebUIFactoryFunction() [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/chrome/browser/search_engines/ |
D | template_url_unittest.cc | 77 TemplateURL url(NULL, data); in TEST_F() local 78 EXPECT_TRUE(url.url_ref().IsValid()); in TEST_F() 83 const char* url; in TEST_F() member 99 data.SetURL(value.url); in TEST_F() 100 TemplateURL url(NULL, data); in TEST_F() local 101 EXPECT_TRUE(url.url_ref().IsValid()); in TEST_F() 102 ASSERT_TRUE(url.url_ref().SupportsReplacement()); in TEST_F() 103 GURL result(url.url_ref().ReplaceSearchTerms( in TEST_F() 113 TemplateURL url(NULL, data); in TEST_F() local 114 EXPECT_TRUE(url.url_ref().IsValid()); in TEST_F() [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/sync_file_system/local/ |
D | local_file_sync_status.cc | 18 void LocalFileSyncStatus::StartWriting(const FileSystemURL& url) { in StartWriting() argument 20 DCHECK(!IsChildOrParentSyncing(url)); in StartWriting() 21 writing_[url]++; in StartWriting() 24 void LocalFileSyncStatus::EndWriting(const FileSystemURL& url) { in EndWriting() argument 26 int count = --writing_[url]; in EndWriting() 28 writing_.erase(url); in EndWriting() 29 FOR_EACH_OBSERVER(Observer, observer_list_, OnSyncEnabled(url)); in EndWriting() 33 void LocalFileSyncStatus::StartSyncing(const FileSystemURL& url) { in StartSyncing() argument 35 DCHECK(!IsChildOrParentWriting(url)); in StartSyncing() 36 DCHECK(!IsChildOrParentSyncing(url)); in StartSyncing() [all …]
|
D | local_file_change_tracker.cc | 42 SyncStatusCode MarkDirty(const std::string& url); 43 SyncStatusCode ClearDirty(const std::string& url); 86 void LocalFileChangeTracker::OnStartUpdate(const FileSystemURL& url) { in OnStartUpdate() argument 88 if (ContainsKey(changes_, url)) in OnStartUpdate() 91 MarkDirtyOnDatabase(url); in OnStartUpdate() 94 void LocalFileChangeTracker::OnEndUpdate(const FileSystemURL& url) {} in OnEndUpdate() argument 96 void LocalFileChangeTracker::OnCreateFile(const FileSystemURL& url) { in OnCreateFile() argument 97 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in OnCreateFile() 101 void LocalFileChangeTracker::OnCreateFileFrom(const FileSystemURL& url, in OnCreateFileFrom() argument 103 RecordChange(url, FileChange(FileChange::FILE_CHANGE_ADD_OR_UPDATE, in OnCreateFileFrom() [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/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/chrome/browser/prerender/ |
D | prerender_unittest.cc | 42 const GURL& url, 120 PrerenderContents* FindEntry(const GURL& url) { in FindEntry() argument 123 if (PrerenderData* data = FindPrerenderData(url, NULL)) in FindEntry() 128 PrerenderContents* FindAndUseEntry(const GURL& url) { in FindAndUseEntry() argument 129 PrerenderData* prerender_data = FindPrerenderData(url, NULL); in FindAndUseEntry() 152 const GURL& url, in CreateNextPrerenderContents() argument 155 new DummyPrerenderContents(this, prerender_tracker_, url, in CreateNextPrerenderContents() 163 const GURL& url, in CreateNextPrerenderContents() argument 167 new DummyPrerenderContents(this, prerender_tracker_, url, in CreateNextPrerenderContents() 174 const GURL& url, in CreateNextPrerenderContents() argument [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/weborigin/ |
D | SecurityOrigin.cpp | 49 static bool schemeRequiresAuthority(const KURL& url) in schemeRequiresAuthority() argument 54 return url.protocolIsInHTTPFamily() || url.protocolIs("ftp"); in schemeRequiresAuthority() 57 static SecurityOrigin* cachedOrigin(const KURL& url) in cachedOrigin() argument 60 return s_originCache->cachedOrigin(url); in cachedOrigin() 64 bool SecurityOrigin::shouldUseInnerURL(const KURL& url) in shouldUseInnerURL() argument 67 if (url.protocolIs("blob")) in shouldUseInnerURL() 69 if (url.protocolIs("filesystem")) in shouldUseInnerURL() 77 KURL SecurityOrigin::extractInnerURL(const KURL& url) in extractInnerURL() argument 79 if (url.innerURL()) in extractInnerURL() 80 return *url.innerURL(); in extractInnerURL() [all …]
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
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 …]
|
/external/chromium_org/content/browser/ |
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/googleurl/src/ |
D | gurl_unittest.cc | 70 GURL url(WStringToUTF16(L"http://user:pass@google.com:99/foo;bar?q=a#ref")); in TEST() local 71 EXPECT_TRUE(url.is_valid()); in TEST() 72 EXPECT_TRUE(url.SchemeIs("http")); in TEST() 73 EXPECT_FALSE(url.SchemeIsFile()); in TEST() 76 EXPECT_EQ("http://user:pass@google.com:99/foo;bar?q=a#ref", url.spec()); in TEST() 78 EXPECT_EQ("http", url.scheme()); in TEST() 79 EXPECT_EQ("user", url.username()); in TEST() 80 EXPECT_EQ("pass", url.password()); in TEST() 81 EXPECT_EQ("google.com", url.host()); in TEST() 82 EXPECT_EQ("99", url.port()); in TEST() [all …]
|
/external/chromium/chrome/browser/webdata/ |
D | keyword_table.cc | 27 void BindURLToStatement(const TemplateURL& url, sql::Statement* s) { in BindURLToStatement() argument 28 s->BindString(0, UTF16ToUTF8(url.short_name())); in BindURLToStatement() 29 s->BindString(1, UTF16ToUTF8(url.keyword())); in BindURLToStatement() 30 GURL favicon_url = url.GetFaviconURL(); in BindURLToStatement() 35 url.GetFaviconURL())); in BindURLToStatement() 37 s->BindString(3, url.url() ? url.url()->url() : std::string()); in BindURLToStatement() 38 s->BindInt(4, url.safe_for_autoreplace() ? 1 : 0); in BindURLToStatement() 39 if (!url.originating_url().is_valid()) { in BindURLToStatement() 43 url.originating_url())); in BindURLToStatement() 45 s->BindInt64(6, url.date_created().ToTimeT()); in BindURLToStatement() [all …]
|
/external/chromium_org/content/browser/webui/ |
D | content_web_ui_controller_factory.cc | 20 BrowserContext* browser_context, const GURL& url) const { in GetWebUIType() 21 if (url.host() == kChromeUIWebRTCInternalsHost || in GetWebUIType() 23 url.host() == kChromeUITracingHost || in GetWebUIType() 25 url.host() == kChromeUIGpuHost || in GetWebUIType() 26 url.host() == kChromeUIIndexedDBInternalsHost || in GetWebUIType() 27 url.host() == kChromeUIMediaInternalsHost || in GetWebUIType() 28 url.host() == kChromeUIAccessibilityHost) { in GetWebUIType() 35 BrowserContext* browser_context, const GURL& url) const { in UseWebUIForURL() 36 return GetWebUIType(browser_context, url) != WebUI::kNoWebUI; in UseWebUIForURL() 40 BrowserContext* browser_context, const GURL& url) const { in UseWebUIBindingsForURL() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/content_settings/ |
D | content_settings_apitest.cc | 114 GURL url("http://www.google.com"); in CheckContentSettingsSet() local 115 EXPECT_FALSE(cookie_settings->IsReadingCookieAllowed(url, url)); in CheckContentSettingsSet() 118 url, url, CONTENT_SETTINGS_TYPE_IMAGES, std::string())); in CheckContentSettingsSet() 121 url, url, CONTENT_SETTINGS_TYPE_JAVASCRIPT, std::string())); in CheckContentSettingsSet() 124 url, url, CONTENT_SETTINGS_TYPE_PLUGINS, std::string())); in CheckContentSettingsSet() 127 url, url, CONTENT_SETTINGS_TYPE_POPUPS, std::string())); in CheckContentSettingsSet() 131 url, url, CONTENT_SETTINGS_TYPE_GEOLOCATION, std::string())); in CheckContentSettingsSet() 136 url, url, CONTENT_SETTINGS_TYPE_NOTIFICATIONS, std::string())); in CheckContentSettingsSet() 146 GURL url("http://www.google.com"); in CheckContentSettingsDefault() local 147 EXPECT_TRUE(cookie_settings->IsReadingCookieAllowed(url, url)); in CheckContentSettingsDefault() [all …]
|
/external/chromium_org/chrome/browser/history/ |
D | top_sites_impl_unittest.cc | 158 SkBitmap GetThumbnail(const GURL& url) { in GetThumbnail() argument 160 return top_sites()->GetPageThumbnail(url, false, &data) ? in GetThumbnail() 219 EXPECT_EQ(prepopulate_urls[i].url.spec(), in ContainsPrepopulatePages() 220 querier.urls()[start_index + i].url.spec()) << " @ index " << in ContainsPrepopulatePages() 236 void AddPageToHistory(const GURL& url) { in AddPageToHistory() argument 238 redirects.push_back(url); in AddPageToHistory() 240 url, base::Time::Now(), static_cast<void*>(this), 0, GURL(), in AddPageToHistory() 246 void AddPageToHistory(const GURL& url, const base::string16& title) { in AddPageToHistory() argument 248 redirects.push_back(url); in AddPageToHistory() 250 url, base::Time::Now(), static_cast<void*>(this), 0, GURL(), in AddPageToHistory() [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() 59 GURL url_without_query = url.ReplaceComponents(replacements); in IsSensitiveURL() 62 extension_urls::IsBlacklistUpdateUrl(url); in IsSensitiveURL() 68 bool HasWebRequestScheme(const GURL& url) { in HasWebRequestScheme() argument 69 return (url.SchemeIs(chrome::kAboutScheme) || in HasWebRequestScheme() 70 url.SchemeIs(chrome::kFileScheme) || in HasWebRequestScheme() 71 url.SchemeIs(chrome::kFileSystemScheme) || in HasWebRequestScheme() [all …]
|