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

Unified Diff: chrome/browser/net/dns_probe_browsertest.cc

Issue 686343002: Add MaybeInterceptRedirect/Response to URLRequestInterceptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed build Created 6 years, 1 month 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: chrome/browser/net/dns_probe_browsertest.cc
diff --git a/chrome/browser/net/dns_probe_browsertest.cc b/chrome/browser/net/dns_probe_browsertest.cc
index 5363f67938c435ddeefa84d04879be59ee29670e..4b574f407748c5208fd5cacb765d5133229f3579 100644
--- a/chrome/browser/net/dns_probe_browsertest.cc
+++ b/chrome/browser/net/dns_probe_browsertest.cc
@@ -240,7 +240,7 @@ class BreakableCorrectionInterceptor : public URLRequestInterceptor {
URLRequestJob* MaybeInterceptRequest(
URLRequest* request,
- NetworkDelegate* network_delegate) const override {
+ NetworkDelegate* network_delegate) override {
if (net_error_ != net::OK) {
DelayableURLRequestFailedJob* job =
new DelayableURLRequestFailedJob(
@@ -260,6 +260,19 @@ class BreakableCorrectionInterceptor : public URLRequestInterceptor {
}
}
+ net::URLRequestJob* MaybeInterceptRedirect(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate,
+ const GURL& location) override {
+ return NULL;
+ }
+
+ net::URLRequestJob* MaybeInterceptResponse(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate) override {
+ return NULL;
+ }
+
void set_net_error(int net_error) { net_error_ = net_error; }
void SetDelayRequests(bool delay_requests) {

Powered by Google App Engine
This is Rietveld 408576698