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

Side by Side Diff: net/url_request/url_request_job.cc

Issue 10830182: net: Return size of upload as well as position from URLRequest::GetUploadProgress() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 4 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 | Annotate | Revision Log
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 #include "net/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 void URLRequestJob::StopCaching() { 101 void URLRequestJob::StopCaching() {
102 // Nothing to do here. 102 // Nothing to do here.
103 } 103 }
104 104
105 LoadState URLRequestJob::GetLoadState() const { 105 LoadState URLRequestJob::GetLoadState() const {
106 return LOAD_STATE_IDLE; 106 return LOAD_STATE_IDLE;
107 } 107 }
108 108
109 uint64 URLRequestJob::GetUploadProgress() const { 109 UploadProgress URLRequestJob::GetUploadProgress() const {
110 return 0; 110 return UploadProgress();
111 } 111 }
112 112
113 bool URLRequestJob::GetCharset(std::string* charset) { 113 bool URLRequestJob::GetCharset(std::string* charset) {
114 return false; 114 return false;
115 } 115 }
116 116
117 void URLRequestJob::GetResponseInfo(HttpResponseInfo* info) { 117 void URLRequestJob::GetResponseInfo(HttpResponseInfo* info) {
118 } 118 }
119 119
120 bool URLRequestJob::GetResponseCookies(std::vector<std::string>* cookies) { 120 bool URLRequestJob::GetResponseCookies(std::vector<std::string>* cookies) {
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 } 699 }
700 700
701 bool URLRequestJob::FilterHasData() { 701 bool URLRequestJob::FilterHasData() {
702 return filter_.get() && filter_->stream_data_len(); 702 return filter_.get() && filter_->stream_data_len();
703 } 703 }
704 704
705 void URLRequestJob::UpdatePacketReadTimes() { 705 void URLRequestJob::UpdatePacketReadTimes() {
706 } 706 }
707 707
708 } // namespace net 708 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_job.h ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698