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_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; | 127 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; |
128 void SetAuth(const AuthCredentials& credentials) override; | 128 void SetAuth(const AuthCredentials& credentials) override; |
129 void CancelAuth() override; | 129 void CancelAuth() override; |
130 void ContinueWithCertificate(X509Certificate* client_cert) override; | 130 void ContinueWithCertificate(X509Certificate* client_cert) override; |
131 void ContinueDespiteLastError() override; | 131 void ContinueDespiteLastError() override; |
132 void ResumeNetworkStart() override; | 132 void ResumeNetworkStart() override; |
133 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; | 133 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; |
134 void StopCaching() override; | 134 void StopCaching() override; |
135 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 135 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
136 int64 GetTotalReceivedBytes() const override; | 136 int64 GetTotalReceivedBytes() const override; |
| 137 int64_t GetTotalSentBytes() const override; |
137 void DoneReading() override; | 138 void DoneReading() override; |
138 void DoneReadingRedirectResponse() override; | 139 void DoneReadingRedirectResponse() override; |
139 | 140 |
140 HostPortPair GetSocketAddress() const override; | 141 HostPortPair GetSocketAddress() const override; |
141 void NotifyURLRequestDestroyed() override; | 142 void NotifyURLRequestDestroyed() override; |
142 | 143 |
143 void RecordTimer(); | 144 void RecordTimer(); |
144 void ResetTimer(); | 145 void ResetTimer(); |
145 | 146 |
146 void UpdatePacketReadTimes() override; | 147 void UpdatePacketReadTimes() override; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // to inform the NetworkDelegate that it may not call back. | 273 // to inform the NetworkDelegate that it may not call back. |
273 bool awaiting_callback_; | 274 bool awaiting_callback_; |
274 | 275 |
275 const HttpUserAgentSettings* http_user_agent_settings_; | 276 const HttpUserAgentSettings* http_user_agent_settings_; |
276 | 277 |
277 URLRequestBackoffManager* backoff_manager_; | 278 URLRequestBackoffManager* backoff_manager_; |
278 | 279 |
279 // Keeps track of total received bytes over the network from transactions used | 280 // Keeps track of total received bytes over the network from transactions used |
280 // by this job that have already been destroyed. | 281 // by this job that have already been destroyed. |
281 int64_t total_received_bytes_from_previous_transactions_; | 282 int64_t total_received_bytes_from_previous_transactions_; |
| 283 // Keeps track of total sent bytes over the network from transactions used by |
| 284 // this job that have already been destroyed. |
| 285 int64_t total_sent_bytes_from_previous_transactions_; |
282 | 286 |
283 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 287 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
284 | 288 |
285 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 289 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
286 }; | 290 }; |
287 | 291 |
288 } // namespace net | 292 } // namespace net |
289 | 293 |
290 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 294 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |