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_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool Read(IOBuffer* buf, int buf_size, int* bytes_read); | 106 bool Read(IOBuffer* buf, int buf_size, int* bytes_read); |
107 | 107 |
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_t GetTotalReceivedBytes() const; |
117 | 117 |
118 // Get the number of bytes sent over the network. The values returned by this | 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. | 119 // will never decrease over the lifetime of the URLRequestJob. |
120 virtual int64_t GetTotalSentBytes() const; | 120 virtual int64_t GetTotalSentBytes() const; |
121 | 121 |
122 // Called to fetch the current load state for the job. | 122 // Called to fetch the current load state for the job. |
123 virtual LoadState GetLoadState() const; | 123 virtual LoadState GetLoadState() const; |
124 | 124 |
125 // Called to get the upload progress in bytes. | 125 // Called to get the upload progress in bytes. |
126 virtual UploadProgress GetUploadProgress() const; | 126 virtual UploadProgress GetUploadProgress() const; |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 int64_t last_notified_total_received_bytes_; | 453 int64_t last_notified_total_received_bytes_; |
454 | 454 |
455 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 455 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
456 | 456 |
457 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 457 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
458 }; | 458 }; |
459 | 459 |
460 } // namespace net | 460 } // namespace net |
461 | 461 |
462 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 462 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
OLD | NEW |