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

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

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewHistogram
Patch Set: Created 5 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
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_fetcher_impl.h" 5 #include "net/url_request/url_fetcher_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/sequenced_task_runner.h" 8 #include "base/sequenced_task_runner.h"
9 #include "net/base/upload_data_stream.h" 9 #include "net/base/upload_data_stream.h"
10 #include "net/url_request/url_fetcher_core.h" 10 #include "net/url_request/url_fetcher_core.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 179 }
180 180
181 const URLRequestStatus& URLFetcherImpl::GetStatus() const { 181 const URLRequestStatus& URLFetcherImpl::GetStatus() const {
182 return core_->GetStatus(); 182 return core_->GetStatus();
183 } 183 }
184 184
185 int URLFetcherImpl::GetResponseCode() const { 185 int URLFetcherImpl::GetResponseCode() const {
186 return core_->GetResponseCode(); 186 return core_->GetResponseCode();
187 } 187 }
188 188
189 int64 URLFetcherImpl::GetBytesReceivedSize() const {
190 return core_->GetBytesReceivedSize();
191 }
192
193 int64 URLFetcherImpl::GetBytesSentSize() const {
194 return core_->GetBytesSentSize();
195 }
196
189 const ResponseCookies& URLFetcherImpl::GetCookies() const { 197 const ResponseCookies& URLFetcherImpl::GetCookies() const {
190 return core_->GetCookies(); 198 return core_->GetCookies();
191 } 199 }
192 200
193 void URLFetcherImpl::ReceivedContentWasMalformed() { 201 void URLFetcherImpl::ReceivedContentWasMalformed() {
194 core_->ReceivedContentWasMalformed(); 202 core_->ReceivedContentWasMalformed();
195 } 203 }
196 204
197 bool URLFetcherImpl::GetResponseAsString( 205 bool URLFetcherImpl::GetResponseAsString(
198 std::string* out_response_string) const { 206 std::string* out_response_string) const {
(...skipping 29 matching lines...) Expand all
228 URLFetcherFactory* URLFetcherImpl::factory() { 236 URLFetcherFactory* URLFetcherImpl::factory() {
229 return g_factory; 237 return g_factory;
230 } 238 }
231 239
232 // static 240 // static
233 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { 241 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) {
234 g_factory = factory; 242 g_factory = factory;
235 } 243 }
236 244
237 } // namespace net 245 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698