Home | History | Annotate | Download | only in chromium

Lines Matching refs:url

86 // Used to write a platform neutral file:/// URL by only taking the filename
88 static string urlSuitableForTestResult(const string& url)
90 if (url.empty() || string::npos == url.find("file://"))
91 return url;
93 size_t pos = url.rfind('/');
96 pos = url.rfind('\\');
103 string filename = url.substr(pos + 1);
109 // Used to write a platform neutral file:/// URL by taking the
112 static string descriptionSuitableForTestResult(const string& url)
114 if (url.empty() || string::npos == url.find("file://"))
115 return url;
117 size_t pos = url.rfind('/');
119 return "ERROR:" + url;
120 pos = url.rfind('/', pos - 1);
122 return "ERROR:" + url;
124 return url.substr(pos + 1);
154 static string URLDescription(const GURL& url)
156 if (url.SchemeIs("file"))
157 return url.ExtractFileName();
158 return url.possibly_invalid_spec();
167 string url = response.url().spec();
169 descriptionSuitableForTestResult(url).c_str(),
793 WebViewHost* another = m_shell->createNewWindow(request.url());
808 URLDescription(request.url()).c_str(), webNavigationTypeToString(type));
826 GURL url = request.url();
828 // LayoutTests/http/tests/misc/redirect-to-external-url.html
829 return !url.SchemeIs("spaceballs");
839 error.unreachableURL = request.url();
1012 m_resourceIdentifierMap.set(identifier, descriptionSuitableForTestResult(request.url().spec()));
1023 GURL url = request.url();
1024 string requestURL = url.possibly_invalid_spec();
1029 printf(" - willSendRequest <NSURLRequest URL %s, main document URL %s,"
1040 // To block the request, we set its URL to an empty one.
1046 // To block the request, we set its URL to an empty one.
1051 string host = url.host();
1053 if (!host.empty() && (url.SchemeIs("http") || url.SchemeIs("https"))
1058 printf("Blocked access to external URL %s\n", requestURL.c_str());
1060 // To block the request, we set its URL to an empty one.
1069 // Set the new substituted URL.
1070 request.setURL(webkit_support::RewriteLayoutTestsURL(request.url().spec()));
1082 GURL url = response.url();
1085 url.ExtractFileName().c_str(),
1146 // loading another URL in that Page is an error.
1263 void WebViewHost::loadURLForFrame(const WebURL& url, const WebString& frameName)
1265 if (!url.isValid())
1267 TestShell::resizeWindowForTest(this, url);
1268 navigationController()->loadEntry(TestNavigationEntry::create(-1, url, WebString(), frameName).get());
1281 // A navigation resulting from loading a javascript URL should not be
1284 if (!GURL(entry.URL()).SchemeIs("javascript"))
1296 frame->loadRequest(WebURLRequest(entry.URL()));
1329 setAddressBarURL(dataSource->request().url());
1375 entry->setURL(request.url());