| OLD | NEW |
| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 virtual URLRequestJob* MaybeInterceptResponse( | 181 virtual URLRequestJob* MaybeInterceptResponse( |
| 182 URLRequest* request, NetworkDelegate* network_delegate); | 182 URLRequest* request, NetworkDelegate* network_delegate); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 // Deprecated interfaces in net::URLRequest. They have been moved to | 185 // Deprecated interfaces in net::URLRequest. They have been moved to |
| 186 // URLRequest's private section to prevent new uses. Existing uses are | 186 // URLRequest's private section to prevent new uses. Existing uses are |
| 187 // explicitly friended here and should be removed over time. | 187 // explicitly friended here and should be removed over time. |
| 188 class NET_EXPORT Deprecated { | 188 class NET_EXPORT Deprecated { |
| 189 private: | 189 private: |
| 190 // TODO(willchan): Kill off these friend declarations. | 190 // TODO(willchan): Kill off these friend declarations. |
| 191 friend class extensions::AutoUpdateInterceptor; | |
| 192 friend class ::ChildProcessSecurityPolicyTest; | 191 friend class ::ChildProcessSecurityPolicyTest; |
| 193 friend class ::ComponentUpdateInterceptor; | |
| 194 friend class ::TestAutomationProvider; | 192 friend class ::TestAutomationProvider; |
| 195 friend class ::URLRequestAutomationJob; | 193 friend class ::URLRequestAutomationJob; |
| 196 friend class TestInterceptor; | 194 friend class TestInterceptor; |
| 197 friend class URLRequestFilter; | 195 friend class URLRequestFilter; |
| 198 friend class appcache::AppCacheInterceptor; | 196 friend class appcache::AppCacheInterceptor; |
| 199 friend class appcache::AppCacheRequestHandlerTest; | 197 friend class appcache::AppCacheRequestHandlerTest; |
| 200 friend class appcache::AppCacheURLRequestJobTest; | 198 friend class appcache::AppCacheURLRequestJobTest; |
| 201 friend class content::ResourceDispatcherHostTest; | 199 friend class content::ResourceDispatcherHostTest; |
| 202 friend class extensions::UserScriptListenerTest; | |
| 203 friend class fileapi::FileSystemDirURLRequestJobTest; | 200 friend class fileapi::FileSystemDirURLRequestJobTest; |
| 204 friend class fileapi::FileSystemURLRequestJobTest; | 201 friend class fileapi::FileSystemURLRequestJobTest; |
| 205 friend class fileapi::FileWriterDelegateTest; | 202 friend class fileapi::FileWriterDelegateTest; |
| 206 friend class policy::CannedResponseInterceptor; | |
| 207 friend class webkit_blob::BlobURLRequestJobTest; | 203 friend class webkit_blob::BlobURLRequestJobTest; |
| 208 | 204 |
| 209 // Use URLRequestJobFactory::ProtocolHandler instead. | 205 // Use URLRequestJobFactory::ProtocolHandler instead. |
| 210 static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme, | 206 static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme, |
| 211 ProtocolFactory* factory); | 207 ProtocolFactory* factory); |
| 212 | 208 |
| 213 // Use URLRequestJobFactory::Interceptor instead. | 209 // Use URLRequestJobFactory::Interceptor instead. |
| 214 static void RegisterRequestInterceptor(Interceptor* interceptor); | 210 static void RegisterRequestInterceptor(Interceptor* interceptor); |
| 215 static void UnregisterRequestInterceptor(Interceptor* interceptor); | 211 static void UnregisterRequestInterceptor(Interceptor* interceptor); |
| 216 | 212 |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 base::TimeTicks creation_time_; | 834 base::TimeTicks creation_time_; |
| 839 | 835 |
| 840 scoped_ptr<const base::debug::StackTrace> stack_trace_; | 836 scoped_ptr<const base::debug::StackTrace> stack_trace_; |
| 841 | 837 |
| 842 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 838 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 843 }; | 839 }; |
| 844 | 840 |
| 845 } // namespace net | 841 } // namespace net |
| 846 | 842 |
| 847 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 843 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |