Chromium Code Reviews| Index: net/url_request/url_fetcher.cc |
| diff --git a/net/url_request/url_fetcher.cc b/net/url_request/url_fetcher.cc |
| index 1d13e4581cae62a9cf61371d7c8faac1f2324a7e..a838bf33d9e7a778fbf25e93482e051ad6a55166 100644 |
| --- a/net/url_request/url_fetcher.cc |
| +++ b/net/url_request/url_fetcher.cc |
| @@ -32,6 +32,29 @@ std::unique_ptr<URLFetcher> URLFetcher::Create( |
| } |
| // static |
| +std::unique_ptr<URLFetcher> URLFetcher::Create( |
| + const GURL& url, |
| + URLFetcher::RequestType request_type, |
| + URLFetcherDelegate* d, |
| + NetworkTrafficAnnotationTag traffic_annotation) { |
| + // traffic_annotation is just a tag that is extracted during static |
| + // code analysis and can be ignored here. |
|
asanka
2017/01/26 20:59:28
unnecessary since we are passing |traffic_annotati
Ramin Halavati
2017/01/27 07:48:58
Done.
|
| + return URLFetcher::Create(0, url, request_type, d, traffic_annotation); |
| +} |
| + |
| +// static |
| +std::unique_ptr<URLFetcher> URLFetcher::Create( |
| + int id, |
| + const GURL& url, |
| + URLFetcher::RequestType request_type, |
| + URLFetcherDelegate* d, |
| + NetworkTrafficAnnotationTag traffic_annotation) { |
| + // traffic_annotation is just a tag that is extracted during static |
| + // code analysis and can be ignored here. |
| + return Create(id, url, request_type, d); |
| +} |
| + |
| +// static |
| void URLFetcher::CancelAll() { |
| URLFetcherImpl::CancelAll(); |
| } |