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

Unified Diff: remoting/client/plugin/pepper_url_request.cc

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 | « remoting/client/plugin/pepper_url_request.h ('k') | remoting/protocol/http_ice_config_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_url_request.cc
diff --git a/remoting/client/plugin/pepper_url_request.cc b/remoting/client/plugin/pepper_url_request.cc
index 33a733a1ca744204924b31e770f14df679963fcb..05779a90fdd6c32aca912c6ad9e096b597a7778a 100644
--- a/remoting/client/plugin/pepper_url_request.cc
+++ b/remoting/client/plugin/pepper_url_request.cc
@@ -7,6 +7,7 @@
#include "base/callback_helpers.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "ppapi/cpp/url_response_info.h"
// Read buffer we allocate per read when reading response from
@@ -15,9 +16,11 @@ static const int kReadSize = 1024;
namespace remoting {
-PepperUrlRequest::PepperUrlRequest(pp::InstanceHandle pp_instance,
- UrlRequest::Type type,
- const std::string& url)
+PepperUrlRequest::PepperUrlRequest(
+ pp::InstanceHandle pp_instance,
+ UrlRequest::Type type,
+ const std::string& url,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation)
: request_info_(pp_instance),
url_loader_(pp_instance),
url_(url),
@@ -110,8 +113,10 @@ PepperUrlRequestFactory::~PepperUrlRequestFactory() {}
std::unique_ptr<UrlRequest> PepperUrlRequestFactory::CreateUrlRequest(
UrlRequest::Type type,
- const std::string& url) {
- return base::MakeUnique<PepperUrlRequest>(pp_instance_, type, url);
+ const std::string& url,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) {
+ return base::MakeUnique<PepperUrlRequest>(pp_instance_, type, url,
+ traffic_annotation);
}
} // namespace remoting
« no previous file with comments | « remoting/client/plugin/pepper_url_request.h ('k') | remoting/protocol/http_ice_config_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698