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

Unified Diff: net/url_request/url_request_job_factory.h

Issue 7056003: Give URLRequestJobFactory::Interceptors the ability to specify protocols they handle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: net/url_request/url_request_job_factory.h
diff --git a/net/url_request/url_request_job_factory.h b/net/url_request/url_request_job_factory.h
index 594883aad9825073b9cea355a77e4afdc0a501c6..176830d9bd22b20d794263bbb9fb96a4a387b918 100644
--- a/net/url_request/url_request_job_factory.h
+++ b/net/url_request/url_request_job_factory.h
@@ -57,6 +57,13 @@ class URLRequestJobFactory : public base::NonThreadSafe {
// returned.
virtual URLRequestJob* MaybeInterceptResponse(
URLRequest* request) const = 0;
+
+ // Returns true if this interceptor handles requests for URLs with the
+ // given protocol. Returning false does not imply that this interceptor
+ // can't or won't handle requests with the given protocol.
+ virtual bool WillHandleProtocol(const std::string& protocol) const {
+ return false;
+ }
};
URLRequestJobFactory();

Powered by Google App Engine
This is Rietveld 408576698