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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

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: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index a86feba758d5db2b724834d884fd56939557f2a4..fae1711967d551da40b4457e2ceb6887392659de 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -155,6 +155,10 @@ class ProtocolHandlerRegistryInterceptor
return protocol_handler_registry_->MaybeCreateJob(request);
}
+ virtual bool WillHandleProtocol(const std::string& protocol) const {
+ return protocol_handler_registry_->IsHandledProtocol(protocol);
+ }
+
virtual net::URLRequestJob* MaybeInterceptRedirect(
const GURL& url, net::URLRequest* request) const OVERRIDE {
return NULL;
« no previous file with comments | « no previous file | net/url_request/url_request_job_factory.h » ('j') | net/url_request/url_request_job_factory_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698