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

Unified Diff: components/spellcheck/browser/spelling_service_client.h

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
Index: components/spellcheck/browser/spelling_service_client.h
diff --git a/components/spellcheck/browser/spelling_service_client.h b/components/spellcheck/browser/spelling_service_client.h
index 30ff387eae608662023879b94f22dfa4081b01ee..29971d7eb1f49426e8f3c87db931ac6889bf27a5 100644
--- a/components/spellcheck/browser/spelling_service_client.h
+++ b/components/spellcheck/browser/spelling_service_client.h
@@ -13,6 +13,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/strings/string16.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_fetcher_delegate.h"
class GURL;
@@ -118,7 +119,9 @@ class SpellingServiceClient : public net::URLFetcherDelegate {
// Creates a URLFetcher object used for sending a JSON-RPC request. This
// function is overridden by unit tests to prevent them from actually sending
// requests to the Spelling service.
- virtual std::unique_ptr<net::URLFetcher> CreateURLFetcher(const GURL& url);
+ virtual std::unique_ptr<net::URLFetcher> CreateURLFetcher(
+ const GURL& url,
+ net::NetworkTrafficAnnotationTag traffic_annotation);
// The URLFetcher object used for sending a JSON-RPC request.
std::map<const net::URLFetcher*, std::unique_ptr<TextCheckCallbackData>>

Powered by Google App Engine
This is Rietveld 408576698