Chromium Code Reviews| Index: content/browser/media/url_provision_fetcher.cc |
| diff --git a/content/browser/media/url_provision_fetcher.cc b/content/browser/media/url_provision_fetcher.cc |
| index b3a241fa073e6eb8d211ad0dcc48204c97e0932b..32af313d1b70b2a2fbd136366d96609597f2e98c 100644 |
| --- a/content/browser/media/url_provision_fetcher.cc |
| +++ b/content/browser/media/url_provision_fetcher.cc |
| @@ -7,6 +7,7 @@ |
| #include "base/memory/ptr_util.h" |
| #include "content/public/browser/provision_fetcher_factory.h" |
| #include "media/base/bind_to_current_loop.h" |
| +#include "net/traffic_annotation/network_traffic_annotation.h" |
| #include "net/url_request/url_fetcher.h" |
| using net::URLFetcher; |
| @@ -32,7 +33,29 @@ void URLProvisionFetcher::Retrieve( |
| DVLOG(1) << __func__ << ": request:" << request_string; |
| DCHECK(!request_); |
| - request_ = URLFetcher::Create(GURL(request_string), URLFetcher::POST, this); |
| + net::NetworkTrafficAnnotationTag traffic_annotation = |
| + net::DefineNetworkTrafficAnnotation("...", R"( |
|
Tima Vaisburd
2017/03/07 18:56:43
I'm not familiar with NetworkTrafficAnnotation. Wh
Ramin Halavati
2017/03/08 08:52:34
Sorry I have not been very clear in the message. I
Tima Vaisburd
2017/03/09 00:16:35
Thank you!
semantics {
sender: "ProvisionFetch
Ramin Halavati
2017/03/09 06:28:47
Done.
|
| + semantics { |
| + sender: "..." |
| + description: "..." |
| + trigger: "..." |
| + data: "..." |
| + destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER |
| + } |
| + policy { |
| + cookies_allowed: false/true |
| + cookies_store: "..." |
| + setting: "..." |
| + policy { |
| + [POLICY_NAME] { |
| + policy_options {mode: MANDATORY/RECOMMENDED/UNSET} |
| + value: ... |
| + } |
| + } |
| + policy_exception_justification: "..." |
| + })"); |
| + request_ = URLFetcher::Create(GURL(request_string), URLFetcher::POST, this, |
| + traffic_annotation); |
|
Tima Vaisburd
2017/03/07 18:56:43
I would create another helper method like
net::
Ramin Halavati
2017/03/08 08:52:34
We process this text using a clang tool that extra
Tima Vaisburd
2017/03/09 00:16:35
I think it would be better to leave it the way it
Ramin Halavati
2017/03/09 06:28:46
Done.
|
| // SetUploadData is mandatory even if we are not uploading anything. |
| request_->SetUploadData("", ""); |