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

Unified Diff: remoting/base/chromium_url_request.h

Issue 2729423003: Network traffic annotation added to chromium_url_request. (Closed)
Patch Set: Annotation updated. Created 3 years, 7 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 | « no previous file | remoting/base/chromium_url_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/chromium_url_request.h
diff --git a/remoting/base/chromium_url_request.h b/remoting/base/chromium_url_request.h
index 2593672a3ddc854203d68773312847a625b9f09f..e4e7355cbaabfdd0ed59ceeee7ad18e6ccfa52f2 100644
--- a/remoting/base/chromium_url_request.h
+++ b/remoting/base/chromium_url_request.h
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "remoting/base/url_request.h"
@@ -21,9 +22,11 @@ namespace remoting {
// UrlRequest implementation based on net::URLFetcher.
class ChromiumUrlRequest : public UrlRequest, public net::URLFetcherDelegate {
public:
- ChromiumUrlRequest(scoped_refptr<net::URLRequestContextGetter> url_context,
- UrlRequest::Type type,
- const std::string& url);
+ ChromiumUrlRequest(
+ scoped_refptr<net::URLRequestContextGetter> url_context,
+ UrlRequest::Type type,
+ const std::string& url,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation);
~ChromiumUrlRequest() override;
// UrlRequest interface.
@@ -47,8 +50,10 @@ class ChromiumUrlRequestFactory : public UrlRequestFactory {
~ChromiumUrlRequestFactory() override;
// UrlRequestFactory interface.
- std::unique_ptr<UrlRequest> CreateUrlRequest(UrlRequest::Type type,
- const std::string& url) override;
+ std::unique_ptr<UrlRequest> CreateUrlRequest(
+ UrlRequest::Type type,
+ const std::string& url,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) override;
private:
scoped_refptr<net::URLRequestContextGetter> url_context_;
« no previous file with comments | « no previous file | remoting/base/chromium_url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698