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

Unified Diff: net/url_request/url_request_interceptor.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « net/url_request/url_request_intercepting_job_factory.cc ('k') | net/url_request/url_request_interceptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f7d52751ec5c51ffa915b155fb62e12d21a83109 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;
@@ -28,6 +30,20 @@ class NET_EXPORT URLRequestInterceptor {
virtual URLRequestJob* MaybeInterceptRequest(
URLRequest* request, NetworkDelegate* network_delegate) const = 0;
+ // Returns a URLRequestJob to handle |request|, if the interceptor wants to
+ // take over the handling of the request after a redirect is received,
+ // instead of using the default ProtocolHandler. Otherwise, returns NULL.
+ virtual URLRequestJob* MaybeInterceptRedirect(
+ URLRequest* request,
+ NetworkDelegate* network_delegate,
+ const GURL& location) const;
+
+ // Returns a URLRequestJob to handle |request, if the interceptor wants to
+ // take over the handling of the request after a response has started,
+ // instead of using the default ProtocolHandler. Otherwise, returns NULL.
+ virtual URLRequestJob* MaybeInterceptResponse(
+ URLRequest* request, NetworkDelegate* network_delegate) const;
+
private:
DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptor);
};
« no previous file with comments | « net/url_request/url_request_intercepting_job_factory.cc ('k') | net/url_request/url_request_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698