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

Unified Diff: extensions/renderer/script_injection.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: 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
Index: extensions/renderer/script_injection.h
diff --git a/extensions/renderer/script_injection.h b/extensions/renderer/script_injection.h
index a7a44b6272148dac7aa064e0807d1ca20a452f63..7b501f40e1da0bd0240760647cfd708a6616071c 100644
--- a/extensions/renderer/script_injection.h
+++ b/extensions/renderer/script_injection.h
@@ -55,7 +55,8 @@ class ScriptInjection {
ScriptInjection(std::unique_ptr<ScriptInjector> injector,
content::RenderFrame* render_frame,
std::unique_ptr<const InjectionHost> injection_host,
- UserScript::RunLocation run_location);
+ UserScript::RunLocation run_location,
+ bool log_activity);
~ScriptInjection();
// Try to inject the script at the |current_location|. This returns
@@ -132,6 +133,9 @@ class ScriptInjection {
// Whether or not the injection successfully injected JS.
bool did_inject_js_;
+ // Whether or not we should log dom activity for this injection.
+ bool log_activity_;
+
// Results storage.
std::unique_ptr<base::Value> execution_result_;

Powered by Google App Engine
This is Rietveld 408576698