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

Side by Side Diff: net/url_request/url_request_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_http_job_unittest.cc ('k') | net/url_request/url_request_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_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Stops further caching of this request, if any. For more info, see 108 // Stops further caching of this request, if any. For more info, see
109 // URLRequest::StopCaching(). 109 // URLRequest::StopCaching().
110 virtual void StopCaching(); 110 virtual void StopCaching();
111 111
112 virtual bool GetFullRequestHeaders(HttpRequestHeaders* headers) const; 112 virtual bool GetFullRequestHeaders(HttpRequestHeaders* headers) const;
113 113
114 // Get the number of bytes received from network. The values returned by this 114 // Get the number of bytes received from network. The values returned by this
115 // will never decrease over the lifetime of the URLRequestJob. 115 // will never decrease over the lifetime of the URLRequestJob.
116 virtual int64 GetTotalReceivedBytes() const; 116 virtual int64 GetTotalReceivedBytes() const;
117 117
118 // Get the number of bytes sent over the network. The values returned by this
119 // will never decrease over the lifetime of the URLRequestJob.
120 virtual int64_t GetTotalSentBytes() const;
121
118 // Called to fetch the current load state for the job. 122 // Called to fetch the current load state for the job.
119 virtual LoadState GetLoadState() const; 123 virtual LoadState GetLoadState() const;
120 124
121 // Called to get the upload progress in bytes. 125 // Called to get the upload progress in bytes.
122 virtual UploadProgress GetUploadProgress() const; 126 virtual UploadProgress GetUploadProgress() const;
123 127
124 // Called to fetch the charset for this request. Only makes sense for some 128 // Called to fetch the charset for this request. Only makes sense for some
125 // types of requests. Returns true on success. Calling this on a type that 129 // types of requests. Returns true on success. Calling this on a type that
126 // doesn't have a charset will return false. 130 // doesn't have a charset will return false.
127 virtual bool GetCharset(std::string* charset); 131 virtual bool GetCharset(std::string* charset);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 int64_t last_notified_total_received_bytes_; 453 int64_t last_notified_total_received_bytes_;
450 454
451 base::WeakPtrFactory<URLRequestJob> weak_factory_; 455 base::WeakPtrFactory<URLRequestJob> weak_factory_;
452 456
453 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 457 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
454 }; 458 };
455 459
456 } // namespace net 460 } // namespace net
457 461
458 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 462 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job_unittest.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698