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

Unified Diff: net/url_request/protocol_intercept_job_factory.cc

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to jam's comments (And a 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
Index: net/url_request/protocol_intercept_job_factory.cc
diff --git a/net/url_request/protocol_intercept_job_factory.cc b/net/url_request/protocol_intercept_job_factory.cc
deleted file mode 100644
index d0f92f4bff376c1c7a26cacdb92ab0cca31b16be..0000000000000000000000000000000000000000
--- a/net/url_request/protocol_intercept_job_factory.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "net/url_request/protocol_intercept_job_factory.h"
-
-#include "base/logging.h"
-
-namespace net {
-
-ProtocolInterceptJobFactory::ProtocolInterceptJobFactory(
- scoped_ptr<URLRequestJobFactory> job_factory,
- scoped_ptr<ProtocolHandler> protocol_handler)
- : job_factory_(job_factory.Pass()),
- protocol_handler_(protocol_handler.Pass()) {
-}
-
-ProtocolInterceptJobFactory::~ProtocolInterceptJobFactory() {}
-
-URLRequestJob* ProtocolInterceptJobFactory::MaybeCreateJobWithProtocolHandler(
- const std::string& scheme,
- URLRequest* request,
- NetworkDelegate* network_delegate) const {
- DCHECK(CalledOnValidThread());
- URLRequestJob* job = protocol_handler_->MaybeCreateJob(request,
- network_delegate);
- if (job)
- return job;
- return job_factory_->MaybeCreateJobWithProtocolHandler(
- scheme, request, network_delegate);
-}
-
-bool ProtocolInterceptJobFactory::IsHandledProtocol(
- const std::string& scheme) const {
- return job_factory_->IsHandledProtocol(scheme);
-}
-
-bool ProtocolInterceptJobFactory::IsHandledURL(const GURL& url) const {
- return job_factory_->IsHandledURL(url);
-}
-
-bool ProtocolInterceptJobFactory::IsSafeRedirectTarget(
- const GURL& location) const {
- return job_factory_->IsSafeRedirectTarget(location);
-}
-
-} // namespace net
« no previous file with comments | « net/url_request/protocol_intercept_job_factory.h ('k') | net/url_request/url_request_intercepting_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698