Chromium Code Reviews| 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 #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 Loading... | |
| 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 |
| OLD | NEW |