| 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);
|
| };
|
|
|