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

Side by Side Diff: net/url_request/url_request_job_factory.h

Issue 7075005: Revert 86802 - Remove ProtocolFactory/Interceptor uses in GViewRequestInterceptor. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser_init.cc ('k') | net/url_request/url_request_job_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Takes ownership of |interceptor|. Adds it to the end of the Interceptor 80 // Takes ownership of |interceptor|. Adds it to the end of the Interceptor
81 // list. 81 // list.
82 void AddInterceptor(Interceptor* interceptor); 82 void AddInterceptor(Interceptor* interceptor);
83 83
84 URLRequestJob* MaybeCreateJobWithInterceptor(URLRequest* request) const; 84 URLRequestJob* MaybeCreateJobWithInterceptor(URLRequest* request) const;
85 85
86 URLRequestJob* MaybeCreateJobWithProtocolHandler(const std::string& scheme, 86 URLRequestJob* MaybeCreateJobWithProtocolHandler(const std::string& scheme,
87 URLRequest* request) const; 87 URLRequest* request) const;
88 88
89 URLRequestJob* MaybeInterceptRedirect(const GURL& location,
90 URLRequest* request) const;
91
92 URLRequestJob* MaybeInterceptResponse(URLRequest* request) const;
93
94 bool IsHandledProtocol(const std::string& scheme) const; 89 bool IsHandledProtocol(const std::string& scheme) const;
95 90
96 bool IsHandledURL(const GURL& url) const; 91 bool IsHandledURL(const GURL& url) const;
97 92
98 private: 93 private:
99 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap; 94 typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap;
100 typedef std::vector<Interceptor*> InterceptorList; 95 typedef std::vector<Interceptor*> InterceptorList;
101 96
102 ProtocolHandlerMap protocol_handler_map_; 97 ProtocolHandlerMap protocol_handler_map_;
103 InterceptorList interceptors_; 98 InterceptorList interceptors_;
104 99
105 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory); 100 DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactory);
106 }; 101 };
107 102
108 } // namespace net 103 } // namespace net
109 104
110 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_ 105 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_init.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