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

Unified Diff: components/drive/service/drive_api_service.h

Issue 2728323002: Network traffic annotation added to drive/base_requests. (Closed)
Patch Set: Annoatation udpated. Created 3 years, 9 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/drive/service/drive_api_service.h
diff --git a/components/drive/service/drive_api_service.h b/components/drive/service/drive_api_service.h
index 09e4390355f626183687365fb0be8b573a1688b1..ca47cbf791e041a64ef03bc6d3dc2b00b03fd7df 100644
--- a/components/drive/service/drive_api_service.h
+++ b/components/drive/service/drive_api_service.h
@@ -19,6 +19,7 @@
#include "google_apis/drive/auth_service_interface.h"
#include "google_apis/drive/auth_service_observer.h"
#include "google_apis/drive/drive_api_url_generator.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
class GURL;
class OAuth2TokenService;
@@ -98,13 +99,15 @@ class DriveAPIService : public DriveServiceInterface,
// from image server.
// |custom_user_agent| will be used for the User-Agent header in HTTP
// requests issues through the service if the value is not empty.
- DriveAPIService(
- OAuth2TokenService* oauth2_token_service,
- net::URLRequestContextGetter* url_request_context_getter,
- base::SequencedTaskRunner* blocking_task_runner,
- const GURL& base_url,
- const GURL& base_thumbnail_url,
- const std::string& custom_user_agent);
+ // |traffic_annotation| will be used to annotate the network request that will
+ // be created to perform this service.
+ DriveAPIService(OAuth2TokenService* oauth2_token_service,
+ net::URLRequestContextGetter* url_request_context_getter,
+ base::SequencedTaskRunner* blocking_task_runner,
+ const GURL& base_url,
+ const GURL& base_thumbnail_url,
+ const std::string& custom_user_agent,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation);
~DriveAPIService() override;
// DriveServiceInterface Overrides
@@ -265,6 +268,7 @@ class DriveAPIService : public DriveServiceInterface,
base::ObserverList<DriveServiceObserver> observers_;
google_apis::DriveApiUrlGenerator url_generator_;
const std::string custom_user_agent_;
+ const net::NetworkTrafficAnnotationTag traffic_annotation_;
DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
};
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/sync_engine.cc ('k') | components/drive/service/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698