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

Unified Diff: chrome/browser/plugins/plugins_resource_service.cc

Issue 2717473002: Network traffic annotation added to web_resource_service. (Closed)
Patch Set: Annotation added to WebResourceService constructor. 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
« no previous file with comments | « no previous file | components/web_resource/web_resource_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugins_resource_service.cc
diff --git a/chrome/browser/plugins/plugins_resource_service.cc b/chrome/browser/plugins/plugins_resource_service.cc
index 2910e395cab43859900e34798df7ba39973a1309..3f6df0841e8b67dc58ac1e06eafad64cc67cbd46 100644
--- a/chrome/browser/plugins/plugins_resource_service.cc
+++ b/chrome/browser/plugins/plugins_resource_service.cc
@@ -17,6 +17,31 @@
#include "url/gurl.h"
namespace {
+constexpr net::NetworkTrafficAnnotationTag kTrafficAnnotation =
+ net::DefineNetworkTrafficAnnotation("...", R"(
+ semantics {
+ sender: "..."
Bernhard Bauer 2017/03/14 10:07:55 pugins_resource_service
Ramin Halavati 2017/03/14 11:37:11 Done.
+ description: "..."
Bernhard Bauer 2017/03/14 10:07:55 Fetches updates to the list of plugins known to Ch
Ramin Halavati 2017/03/14 11:37:11 Done.
+ trigger: "..."
Bernhard Bauer 2017/03/14 10:07:55 Triggered at regular intervals (once per day).
Ramin Halavati 2017/03/14 11:37:11 Done.
+ data: "..."
Bernhard Bauer 2017/03/14 10:07:55 No data is sent as part of the request.
Ramin Halavati 2017/03/14 11:37:11 Done.
+ destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER
Bernhard Bauer 2017/03/14 10:07:55 GOOGLE_OWNED_SERVICE
Ramin Halavati 2017/03/14 11:37:11 Done.
+ }
+ policy {
+ cookies_allowed: false/true
Bernhard Bauer 2017/03/14 10:07:55 false
Ramin Halavati 2017/03/14 11:37:11 Done.
+ cookies_store: "..."
Bernhard Bauer 2017/03/14 10:07:55 user
Ramin Halavati 2017/03/14 11:37:11 Done.
+ setting: "..."
+ policy {
+ [POLICY_NAME] {
+ policy_options {mode: MANDATORY/RECOMMENDED/UNSET}
+ [POLICY_NAME]: ... //(value to disable it)
+ }
+ }
+ policy_exception_justification: "..."
Bernhard Bauer 2017/03/14 10:07:55 Being able to identify plugins with known security
Ramin Halavati 2017/03/14 11:37:11 Done.
+ })");
+
+} // namespace
+
+namespace {
// Delay on first fetch so we don't interfere with startup.
const int kStartResourceFetchDelayMs = 60 * 1000;
@@ -54,7 +79,8 @@ PluginsResourceService::PluginsResourceService(PrefService* local_state)
kCacheUpdateDelayMs,
g_browser_process->system_request_context(),
switches::kDisableBackgroundNetworking,
- base::Bind(safe_json::SafeJsonParser::Parse)) {}
+ base::Bind(safe_json::SafeJsonParser::Parse),
+ kTrafficAnnotation) {}
void PluginsResourceService::Init() {
const base::DictionaryValue* metadata =
« no previous file with comments | « no previous file | components/web_resource/web_resource_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698