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

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

Issue 1327763003: Added and implemented URLRequest::GetTotalSentBytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spdy_sent_bytes_impl
Patch Set: Addressed nits Created 5 years, 3 months 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
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_http_job.cc » ('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_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
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
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_
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698