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

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

Issue 11293252: Change Interceptors into URLRequestJobFactory::ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years 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 | « net/url_request/protocol_intercept_job_factory.cc ('k') | net/url_request/url_request_filter.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 virtual URLRequestJob* MaybeInterceptResponse( 180 virtual URLRequestJob* MaybeInterceptResponse(
181 URLRequest* request, NetworkDelegate* network_delegate); 181 URLRequest* request, NetworkDelegate* network_delegate);
182 }; 182 };
183 183
184 // Deprecated interfaces in net::URLRequest. They have been moved to 184 // Deprecated interfaces in net::URLRequest. They have been moved to
185 // URLRequest's private section to prevent new uses. Existing uses are 185 // URLRequest's private section to prevent new uses. Existing uses are
186 // explicitly friended here and should be removed over time. 186 // explicitly friended here and should be removed over time.
187 class NET_EXPORT Deprecated { 187 class NET_EXPORT Deprecated {
188 private: 188 private:
189 // TODO(willchan): Kill off these friend declarations. 189 // TODO(willchan): Kill off these friend declarations.
190 friend class extensions::AutoUpdateInterceptor;
191 friend class ::ChildProcessSecurityPolicyTest; 190 friend class ::ChildProcessSecurityPolicyTest;
192 friend class ::ComponentUpdateInterceptor;
193 friend class ::TestAutomationProvider; 191 friend class ::TestAutomationProvider;
194 friend class ::URLRequestAutomationJob; 192 friend class ::URLRequestAutomationJob;
195 friend class TestInterceptor; 193 friend class TestInterceptor;
196 friend class URLRequestFilter; 194 friend class URLRequestFilter;
197 friend class appcache::AppCacheInterceptor; 195 friend class appcache::AppCacheInterceptor;
198 friend class appcache::AppCacheRequestHandlerTest; 196 friend class appcache::AppCacheRequestHandlerTest;
199 friend class appcache::AppCacheURLRequestJobTest; 197 friend class appcache::AppCacheURLRequestJobTest;
200 friend class content::ResourceDispatcherHostTest; 198 friend class content::ResourceDispatcherHostTest;
201 friend class extensions::UserScriptListenerTest;
202 friend class fileapi::FileSystemDirURLRequestJobTest; 199 friend class fileapi::FileSystemDirURLRequestJobTest;
203 friend class fileapi::FileSystemURLRequestJobTest; 200 friend class fileapi::FileSystemURLRequestJobTest;
204 friend class fileapi::FileWriterDelegateTest; 201 friend class fileapi::FileWriterDelegateTest;
205 friend class policy::CannedResponseInterceptor;
206 friend class webkit_blob::BlobURLRequestJobTest; 202 friend class webkit_blob::BlobURLRequestJobTest;
207 203
208 // Use URLRequestJobFactory::ProtocolHandler instead. 204 // Use URLRequestJobFactory::ProtocolHandler instead.
209 static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme, 205 static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme,
210 ProtocolFactory* factory); 206 ProtocolFactory* factory);
211 207
212 // Use URLRequestJobFactory::Interceptor instead. 208 // Use URLRequestJobFactory::Interceptor instead.
213 static void RegisterRequestInterceptor(Interceptor* interceptor); 209 static void RegisterRequestInterceptor(Interceptor* interceptor);
214 static void UnregisterRequestInterceptor(Interceptor* interceptor); 210 static void UnregisterRequestInterceptor(Interceptor* interceptor);
215 211
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 base::TimeTicks creation_time_; 836 base::TimeTicks creation_time_;
841 837
842 scoped_ptr<const base::debug::StackTrace> stack_trace_; 838 scoped_ptr<const base::debug::StackTrace> stack_trace_;
843 839
844 DISALLOW_COPY_AND_ASSIGN(URLRequest); 840 DISALLOW_COPY_AND_ASSIGN(URLRequest);
845 }; 841 };
846 842
847 } // namespace net 843 } // namespace net
848 844
849 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 845 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/url_request/protocol_intercept_job_factory.cc ('k') | net/url_request/url_request_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698