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

Unified Diff: net/url_request/url_request_job_factory_impl.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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_job_factory.cc ('k') | net/url_request/url_request_job_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job_factory_impl.h
diff --git a/net/url_request/url_request_job_factory_impl.h b/net/url_request/url_request_job_factory_impl.h
deleted file mode 100644
index 8d1d8d96c99949ae32f49b53a23708bac8aa8d52..0000000000000000000000000000000000000000
--- a/net/url_request/url_request_job_factory_impl.h
+++ /dev/null
@@ -1,71 +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.
-
-#ifndef NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_
-#define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_
-
-#include <map>
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "net/base/net_export.h"
-#include "net/url_request/url_request_job_factory.h"
-
-namespace net {
-
-class URLRequestInterceptor;
-
-class NET_EXPORT URLRequestJobFactoryImpl : public URLRequestJobFactory {
- public:
- URLRequestJobFactoryImpl();
- ~URLRequestJobFactoryImpl() override;
-
- // Sets the ProtocolHandler for a scheme. Returns true on success, false on
- // failure (a ProtocolHandler already exists for |scheme|). On success,
- // URLRequestJobFactory takes ownership of |protocol_handler|.
- bool SetProtocolHandler(const std::string& scheme,
- ProtocolHandler* protocol_handler);
-
- // URLRequestJobFactory implementation
- URLRequestJob* MaybeCreateJobWithProtocolHandler(
- const std::string& scheme,
- URLRequest* request,
- NetworkDelegate* network_delegate) const override;
-
- URLRequestJob* MaybeInterceptRedirect(
- URLRequest* request,
- NetworkDelegate* network_delegate,
- const GURL& location) const override;
-
- URLRequestJob* MaybeInterceptResponse(
- URLRequest* request,
- NetworkDelegate* network_delegate) const override;
-
- bool IsHandledProtocol(const std::string& scheme) const override;
- bool IsHandledURL(const GURL& url) const override;
- bool IsSafeRedirectTarget(const GURL& location) const override;
-
- private:
- // For testing only.
- friend class URLRequestFilter;
-
- typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap;
-
- // Sets a global URLRequestInterceptor for testing purposes. The interceptor
- // is given the chance to intercept any request before the corresponding
- // ProtocolHandler, but after any other URLRequestJobFactories layered on top
- // of the URLRequestJobFactoryImpl.
- // If an interceptor is set, the old interceptor must be cleared before
- // setting a new one.
- static void SetInterceptorForTesting(URLRequestInterceptor* interceptor);
-
- ProtocolHandlerMap protocol_handler_map_;
-
- DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl);
-};
-
-} // namespace net
-
-#endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_IMPL_H_
« no previous file with comments | « net/url_request/url_request_job_factory.cc ('k') | net/url_request/url_request_job_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698