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

Side by Side Diff: net/url_request/url_fetcher.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.h" 5 #include "net/url_request/url_fetcher.h"
6 6
7 #include "net/url_request/data_use_measurement.h"
7 #include "net/url_request/url_fetcher_factory.h" 8 #include "net/url_request/url_fetcher_factory.h"
8 #include "net/url_request/url_fetcher_impl.h" 9 #include "net/url_request/url_fetcher_impl.h"
9 10
10 namespace net { 11 namespace net {
11 12
12 URLFetcher::~URLFetcher() {} 13 URLFetcher::~URLFetcher() {}
13 14
14 // static 15 // static
15 scoped_ptr<URLFetcher> URLFetcher::Create(const GURL& url, 16 scoped_ptr<URLFetcher> URLFetcher::Create(const GURL& url,
16 URLFetcher::RequestType request_type, 17 URLFetcher::RequestType request_type,
(...skipping 10 matching lines...) Expand all
27 return factory 28 return factory
28 ? factory->CreateURLFetcher(id, url, request_type, d) 29 ? factory->CreateURLFetcher(id, url, request_type, d)
29 : scoped_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d)); 30 : scoped_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d));
30 } 31 }
31 32
32 // static 33 // static
33 void URLFetcher::CancelAll() { 34 void URLFetcher::CancelAll() {
34 URLFetcherImpl::CancelAll(); 35 URLFetcherImpl::CancelAll();
35 } 36 }
36 37
38 void URLFetcher::ReportYourUsage(const std::string& service) const {
39 DataUseReport(service, this);
bengr 2015/08/07 18:00:01 Rename as ReportDataUseUMA, so something like that
amohammadkhan 2015/08/11 22:04:36 Done.
40 }
41
37 // static 42 // static
38 void URLFetcher::SetIgnoreCertificateRequests(bool ignored) { 43 void URLFetcher::SetIgnoreCertificateRequests(bool ignored) {
39 URLFetcherImpl::SetIgnoreCertificateRequests(ignored); 44 URLFetcherImpl::SetIgnoreCertificateRequests(ignored);
40 } 45 }
41 46
42 } // namespace net 47 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698