OLD | NEW |
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_HTTP_HTTP_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_ |
6 #define NET_HTTP_HTTP_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_TRANSACTION_H_ |
7 | 7 |
8 #include "net/base/completion_callback.h" | 8 #include "net/base/completion_callback.h" |
9 #include "net/base/load_states.h" | 9 #include "net/base/load_states.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| 11 #include "net/base/request_priority.h" |
11 #include "net/base/upload_progress.h" | 12 #include "net/base/upload_progress.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
15 class AuthCredentials; | 16 class AuthCredentials; |
16 class BoundNetLog; | 17 class BoundNetLog; |
17 struct HttpRequestInfo; | 18 struct HttpRequestInfo; |
18 class HttpResponseInfo; | 19 class HttpResponseInfo; |
19 class IOBuffer; | 20 class IOBuffer; |
20 struct LoadTimingInfo; | 21 struct LoadTimingInfo; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 virtual LoadState GetLoadState() const = 0; | 110 virtual LoadState GetLoadState() const = 0; |
110 | 111 |
111 // Returns the upload progress in bytes. If there is no upload data, | 112 // Returns the upload progress in bytes. If there is no upload data, |
112 // zero will be returned. This does not include the request headers. | 113 // zero will be returned. This does not include the request headers. |
113 virtual UploadProgress GetUploadProgress() const = 0; | 114 virtual UploadProgress GetUploadProgress() const = 0; |
114 | 115 |
115 // Populates all of load timing, except for request start times. | 116 // Populates all of load timing, except for request start times. |
116 // |load_timing_info| must have all null times when called. Returns false and | 117 // |load_timing_info| must have all null times when called. Returns false and |
117 // does not modify |load_timing_info| if not currently connected. | 118 // does not modify |load_timing_info| if not currently connected. |
118 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; | 119 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; |
| 120 |
| 121 // Called when the priority of the parent job changes. |
| 122 virtual void SetPriority(RequestPriority priority) = 0; |
119 }; | 123 }; |
120 | 124 |
121 } // namespace net | 125 } // namespace net |
122 | 126 |
123 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 127 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
OLD | NEW |