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

Unified Diff: extensions/renderer/dispatcher.h

Issue 2089333002: [Extensions] Add renderer-side logic to short circuit activity logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Guard adding dom activity loggers Created 4 years, 6 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 | « extensions/renderer/api_activity_logger.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.h
diff --git a/extensions/renderer/dispatcher.h b/extensions/renderer/dispatcher.h
index fb5121e0517110579a17ccc4adab41983b358f8d..dccc4d4eeb2280e4104220d330912ace558fcebe 100644
--- a/extensions/renderer/dispatcher.h
+++ b/extensions/renderer/dispatcher.h
@@ -85,6 +85,8 @@ class Dispatcher : public content::RenderThreadObserver,
const std::string& webview_partition_id() { return webview_partition_id_; }
+ bool activity_logging_enabled() const { return activity_logging_enabled_; }
+
void OnRenderFrameCreated(content::RenderFrame* render_frame);
bool IsExtensionActive(const std::string& extension_id) const;
@@ -198,6 +200,7 @@ class Dispatcher : public content::RenderThreadObserver,
bool update_origin_whitelist,
int tab_id);
void OnUsingWebRequestAPI(bool webrequest_used);
+ void OnSetActivityLoggingEnabled(bool enabled);
// UserScriptSetManager::Observer implementation.
void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts,
@@ -308,6 +311,9 @@ class Dispatcher : public content::RenderThreadObserver,
// Status of webrequest usage.
bool webrequest_used_;
+ // Whether or not extension activity is enabled.
+ bool activity_logging_enabled_;
+
// The WebView partition ID associated with this process's storage partition,
// if this renderer is a WebView guest render process. Otherwise, this will be
// empty.
« no previous file with comments | « extensions/renderer/api_activity_logger.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698