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

Unified Diff: net/url_request/url_request_interceptor.h

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Merge Created 6 years, 7 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
« 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
new file mode 100644
index 0000000000000000000000000000000000000000..4934d4e22bfd007f241c124178a538c5a67a6bc4
--- /dev/null
+++ b/net/url_request/url_request_interceptor.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_URL_REQUEST_URL_REQUEST_INTERCEPTOR_H_
+#define NET_URL_REQUEST_URL_REQUEST_INTERCEPTOR_H_
+
+#include "base/macros.h"
+#include "net/base/net_export.h"
+
+namespace net {
+
+class URLRequest;
+class URLRequestJob;
+class NetworkDelegate;
+
+// A URLRequestInterceptor is given a chance to create a URLRequestJob to
+// handle URLRequests before they're handed off to the ProtocolHandler for
+// requests's scheme.
pauljensen 2014/05/28 12:03:50 Insert "the" before requests's and change requests
mmenke 2014/05/28 15:08:14 Done.
+class NET_EXPORT URLRequestInterceptor {
+ public:
+ URLRequestInterceptor();
+ virtual ~URLRequestInterceptor();
+
+ // Returns a URLRequestJob to handle |request|, if the interceptor wants to
+ // take over the handling the request instead of the default ProtocolHandler.
+ // Otherwise, returns NULL.
+ virtual URLRequestJob* MaybeInterceptRequest(
+ URLRequest* request, NetworkDelegate* network_delegate) const = 0;
+
+ DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptor);
pauljensen 2014/05/28 12:03:50 Insert private: before this
mmenke 2014/05/28 15:08:14 Done.
+};
+
+} // namespace net
+
+#endif // NET_URL_REQUEST_URL_REQUEST_INTERCEPTOR_H_
« 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