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

Unified Diff: net/url_request/url_fetcher.cc

Issue 2421333002: Protobuf for Traffic Annotation and first use by a URLFetcher. (Closed)
Patch Set: More comments added. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_fetcher.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a6ed109c716a1bcd8afcb7856961589d65f7925c 100644
--- a/net/url_request/url_fetcher.cc
+++ b/net/url_request/url_fetcher.cc
@@ -32,6 +32,27 @@ 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) {
+ 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();
}
« no previous file with comments | « net/url_request/url_fetcher.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698