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

Unified Diff: net/url_request/url_request_interceptor.h

Issue 686343002: Add MaybeInterceptRedirect/Response to URLRequestInterceptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests, removed DRP 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: net/url_request/url_request_interceptor.h
diff --git a/net/url_request/url_request_interceptor.h b/net/url_request/url_request_interceptor.h
index 682368d25a8d8af45b12ab631dca024863016b17..fefcfd5ef113d42816c56b63e9c767d803652300 100644
--- a/net/url_request/url_request_interceptor.h
+++ b/net/url_request/url_request_interceptor.h
@@ -8,6 +8,8 @@
#include "base/macros.h"
#include "net/base/net_export.h"
+class GURL;
+
namespace net {
class URLRequest;
@@ -26,7 +28,15 @@ class NET_EXPORT URLRequestInterceptor {
// take over the handling the request instead of the default ProtocolHandler.
// Otherwise, returns NULL.
virtual URLRequestJob* MaybeInterceptRequest(
- URLRequest* request, NetworkDelegate* network_delegate) const = 0;
+ URLRequest* request, NetworkDelegate* network_delegate) = 0;
+
+ virtual URLRequestJob* MaybeInterceptRedirect(
+ URLRequest* request,
+ NetworkDelegate* network_delegate,
+ const GURL& location) = 0;
+
+ virtual URLRequestJob* MaybeInterceptResponse(
+ URLRequest* request, NetworkDelegate* network_delegate) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptor);

Powered by Google App Engine
This is Rietveld 408576698