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 15 matching lines...) Expand all Loading... |
26 #include "net/base/request_priority.h" | 26 #include "net/base/request_priority.h" |
27 #include "net/base/upload_progress.h" | 27 #include "net/base/upload_progress.h" |
28 #include "net/cookies/canonical_cookie.h" | 28 #include "net/cookies/canonical_cookie.h" |
29 #include "net/http/http_request_headers.h" | 29 #include "net/http/http_request_headers.h" |
30 #include "net/http/http_response_info.h" | 30 #include "net/http/http_response_info.h" |
31 #include "net/url_request/url_request_status.h" | 31 #include "net/url_request/url_request_status.h" |
32 | 32 |
33 // Temporary layering violation to allow existing users of a deprecated | 33 // Temporary layering violation to allow existing users of a deprecated |
34 // interface. | 34 // interface. |
35 class ChildProcessSecurityPolicyTest; | 35 class ChildProcessSecurityPolicyTest; |
36 class ComponentUpdateInterceptor; | |
37 class TestAutomationProvider; | 36 class TestAutomationProvider; |
38 class URLRequestAutomationJob; | 37 class URLRequestAutomationJob; |
39 | 38 |
40 namespace base { | 39 namespace base { |
41 namespace debug { | 40 namespace debug { |
42 class StackTrace; | 41 class StackTrace; |
43 } | 42 } |
44 } | 43 } |
45 | 44 |
46 // Temporary layering violation to allow existing users of a deprecated | 45 // Temporary layering violation to allow existing users of a deprecated |
47 // interface. | 46 // interface. |
48 namespace appcache { | 47 namespace appcache { |
49 class AppCacheInterceptor; | 48 class AppCacheInterceptor; |
50 class AppCacheRequestHandlerTest; | 49 class AppCacheRequestHandlerTest; |
51 class AppCacheURLRequestJobTest; | 50 class AppCacheURLRequestJobTest; |
52 } | 51 } |
53 | 52 |
54 // Temporary layering violation to allow existing users of a deprecated | 53 // Temporary layering violation to allow existing users of a deprecated |
55 // interface. | 54 // interface. |
56 namespace content { | 55 namespace content { |
57 class ResourceDispatcherHostTest; | 56 class ResourceDispatcherHostTest; |
58 } | 57 } |
59 | 58 |
60 // Temporary layering violation to allow existing users of a deprecated | 59 // Temporary layering violation to allow existing users of a deprecated |
61 // interface. | 60 // interface. |
62 namespace extensions { | |
63 class AutoUpdateInterceptor; | |
64 class UserScriptListenerTest; | |
65 } | |
66 | |
67 // Temporary layering violation to allow existing users of a deprecated | |
68 // interface. | |
69 namespace fileapi { | 61 namespace fileapi { |
70 class FileSystemDirURLRequestJobTest; | 62 class FileSystemDirURLRequestJobTest; |
71 class FileSystemURLRequestJobTest; | 63 class FileSystemURLRequestJobTest; |
72 class FileWriterDelegateTest; | 64 class FileWriterDelegateTest; |
73 } | 65 } |
74 | 66 |
75 // Temporary layering violation to allow existing users of a deprecated | 67 // Temporary layering violation to allow existing users of a deprecated |
76 // interface. | 68 // interface. |
77 namespace policy { | |
78 class CannedResponseInterceptor; | |
79 } | |
80 | |
81 // Temporary layering violation to allow existing users of a deprecated | |
82 // interface. | |
83 namespace webkit_blob { | 69 namespace webkit_blob { |
84 class BlobURLRequestJobTest; | 70 class BlobURLRequestJobTest; |
85 } | 71 } |
86 | 72 |
87 namespace net { | 73 namespace net { |
88 | 74 |
89 class CookieOptions; | 75 class CookieOptions; |
90 class HostPortPair; | 76 class HostPortPair; |
91 class IOBuffer; | 77 class IOBuffer; |
92 struct LoadTimingInfo; | 78 struct LoadTimingInfo; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 friend class content::ResourceDispatcherHostTest; | 185 friend class content::ResourceDispatcherHostTest; |
200 friend class fileapi::FileSystemDirURLRequestJobTest; | 186 friend class fileapi::FileSystemDirURLRequestJobTest; |
201 friend class fileapi::FileSystemURLRequestJobTest; | 187 friend class fileapi::FileSystemURLRequestJobTest; |
202 friend class fileapi::FileWriterDelegateTest; | 188 friend class fileapi::FileWriterDelegateTest; |
203 friend class webkit_blob::BlobURLRequestJobTest; | 189 friend class webkit_blob::BlobURLRequestJobTest; |
204 | 190 |
205 // Use URLRequestJobFactory::ProtocolHandler instead. | 191 // Use URLRequestJobFactory::ProtocolHandler instead. |
206 static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme, | 192 static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme, |
207 ProtocolFactory* factory); | 193 ProtocolFactory* factory); |
208 | 194 |
209 // Use URLRequestJobFactory::Interceptor instead. | 195 // TODO(pauljensen): Remove this when AppCacheInterceptor is a |
| 196 // ProtocolHandler, see crbug.com/161547. |
210 static void RegisterRequestInterceptor(Interceptor* interceptor); | 197 static void RegisterRequestInterceptor(Interceptor* interceptor); |
211 static void UnregisterRequestInterceptor(Interceptor* interceptor); | 198 static void UnregisterRequestInterceptor(Interceptor* interceptor); |
212 | 199 |
213 DISALLOW_IMPLICIT_CONSTRUCTORS(Deprecated); | 200 DISALLOW_IMPLICIT_CONSTRUCTORS(Deprecated); |
214 }; | 201 }; |
215 | 202 |
216 // The delegate's methods are called from the message loop of the thread | 203 // The delegate's methods are called from the message loop of the thread |
217 // on which the request's Start() method is called. See above for the | 204 // on which the request's Start() method is called. See above for the |
218 // ordering of callbacks. | 205 // ordering of callbacks. |
219 // | 206 // |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 LoadTimingInfo load_timing_info_; | 840 LoadTimingInfo load_timing_info_; |
854 | 841 |
855 scoped_ptr<const base::debug::StackTrace> stack_trace_; | 842 scoped_ptr<const base::debug::StackTrace> stack_trace_; |
856 | 843 |
857 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 844 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
858 }; | 845 }; |
859 | 846 |
860 } // namespace net | 847 } // namespace net |
861 | 848 |
862 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 849 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |