Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2660)

Unified Diff: content/test/net/url_request_failed_job.h

Issue 24503004: Show IDN in error screens (DNS failure etc.) (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/net/url_request_failed_job.h
===================================================================
--- content/test/net/url_request_failed_job.h (revision 225096)
+++ content/test/net/url_request_failed_job.h (working copy)
@@ -26,12 +26,15 @@
// Adds the testing URLs to the net::URLRequestFilter.
static void AddUrlHandler();
+ static void AddUrlHandler(const std::string& hostname);
mmenke 2013/09/27 14:44:05 Function overloading, while done a fair bit in Chr
yuusuke 2013/09/28 10:42:50 Done.
// Given a net error code, constructs a mock URL that will return that error
// asynchronously when started. |net_error| must be a valid net error code
// other than net::OK and net::ERR_IO_PENDING.
static GURL GetMockHttpUrl(int net_error);
static GURL GetMockHttpsUrl(int net_error);
+ static GURL GetMockHttpUrl(int net_error, const std::string& hostname);
mmenke 2013/09/27 14:44:05 Suggest a comment above this line along the lines
yuusuke 2013/09/28 10:42:50 Done.
+ static GURL GetMockHttpsUrl(int net_error, const std::string& hostname);
mmenke 2013/09/27 14:44:05 Again, suggest adding a "ForHostname" to the end o
yuusuke 2013/09/28 10:42:50 Done.
private:
static net::URLRequestJob* Factory(net::URLRequest* request,

Powered by Google App Engine
This is Rietveld 408576698