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

Unified Diff: net/url_request/protocol_intercept_job_factory.h

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
« no previous file with comments | « net/net.gypi ('k') | net/url_request/protocol_intercept_job_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/protocol_intercept_job_factory.h
diff --git a/net/url_request/protocol_intercept_job_factory.h b/net/url_request/protocol_intercept_job_factory.h
deleted file mode 100644
index 5530193f04e9b50bc95711f1179c3d1198946a40..0000000000000000000000000000000000000000
--- a/net/url_request/protocol_intercept_job_factory.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 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_PROTOCOL_INTERCEPT_JOB_FACTORY_H_
-#define NET_URL_REQUEST_PROTOCOL_INTERCEPT_JOB_FACTORY_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/base/net_export.h"
-#include "net/url_request/url_request_job_factory.h"
-
-class GURL;
-
-namespace net {
-
-class URLRequest;
-class URLRequestJob;
-
-// This class acts as a wrapper for URLRequestJobFactory. |protocol_handler_| is
-// given the option of creating a URLRequestJob for each potential URLRequest.
-// If |protocol_handler_| does not create a job (i.e. MaybeCreateJob() returns
-// NULL) the URLRequest is forwarded to the |job_factory_| to be handled there.
-// Only the MaybeCreateJob() member of |protocol_handler_| is called; the
-// IsSafeRedirectTarget() member is not used.
-class NET_EXPORT ProtocolInterceptJobFactory : public URLRequestJobFactory {
- public:
- ProtocolInterceptJobFactory(scoped_ptr<URLRequestJobFactory> job_factory,
- scoped_ptr<ProtocolHandler> protocol_handler);
- virtual ~ProtocolInterceptJobFactory();
-
- // URLRequestJobFactory implementation
- virtual URLRequestJob* MaybeCreateJobWithProtocolHandler(
- const std::string& scheme,
- URLRequest* request,
- NetworkDelegate* network_delegate) const OVERRIDE;
- virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE;
- virtual bool IsHandledURL(const GURL& url) const OVERRIDE;
- virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE;
-
- private:
- scoped_ptr<URLRequestJobFactory> job_factory_;
- scoped_ptr<ProtocolHandler> protocol_handler_;
-
- DISALLOW_COPY_AND_ASSIGN(ProtocolInterceptJobFactory);
-};
-
-} // namespace net
-
-#endif // NET_URL_REQUEST_PROTOCOL_INTERCEPT_JOB_FACTORY_H_
« no previous file with comments | « net/net.gypi ('k') | net/url_request/protocol_intercept_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698