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

Unified Diff: net/url_request/url_request_job_factory.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.cc ('k') | net/url_request/url_request_job_factory.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.h
diff --git a/net/url_request/url_request_job_factory.h b/net/url_request/url_request_job_factory.h
deleted file mode 100644
index 96f218a3d27c2b940192d2a0979d90e2e9d5ac50..0000000000000000000000000000000000000000
--- a/net/url_request/url_request_job_factory.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_H_
-#define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/threading/non_thread_safe.h"
-#include "net/base/net_export.h"
-
-class GURL;
-
-namespace net {
-
-class NetworkDelegate;
-class URLRequest;
-class URLRequestJob;
-
-class NET_EXPORT URLRequestJobFactory
- : NON_EXPORTED_BASE(public base::NonThreadSafe) {
- public:
- // TODO(shalev): Move this to URLRequestJobFactoryImpl.
- class NET_EXPORT ProtocolHandler {
- public:
- virtual ~ProtocolHandler();
-
- virtual URLRequestJob* MaybeCreateJob(
- URLRequest* request, NetworkDelegate* network_delegate) const = 0;
-
- // Indicates if it should be safe to redirect to |location|. Should handle
- // protocols handled by MaybeCreateJob(). Only called when registered with
- // URLRequestJobFactoryImpl::SetProtocolHandler() not called when used with
- // ProtocolInterceptJobFactory.
- // NOTE(pauljensen): Default implementation returns true.
- virtual bool IsSafeRedirectTarget(const GURL& location) const;
- };
-
- URLRequestJobFactory();
- virtual ~URLRequestJobFactory();
-
- virtual URLRequestJob* MaybeCreateJobWithProtocolHandler(
- const std::string& scheme,
- URLRequest* request,
- NetworkDelegate* network_delegate) const = 0;
-
- virtual URLRequestJob* MaybeInterceptRedirect(
- URLRequest* request,
- NetworkDelegate* network_delegate,
- const GURL& location) const = 0;
-
- virtual URLRequestJob* MaybeInterceptResponse(
- URLRequest* request,
- NetworkDelegate* network_delegate) const = 0;
-
- virtual bool IsHandledProtocol(const std::string& scheme) const = 0;
-
- virtual bool IsHandledURL(const GURL& url) const = 0;
-
- virtual bool IsSafeRedirectTarget(const GURL& location) const = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory);
-};
-
-} // namespace net
-
-#endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | net/url_request/url_request_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698