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

Unified Diff: extensions/renderer/user_script_set.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/user_script_set.h
diff --git a/extensions/renderer/user_script_set.h b/extensions/renderer/user_script_set.h
index 53800d3532868f9e2852c5a75ddfecc8410fd40d..d7baffd0194ac4eb54fa18c49ec22b290cf57bbe 100644
--- a/extensions/renderer/user_script_set.h
+++ b/extensions/renderer/user_script_set.h
@@ -54,14 +54,16 @@ class UserScriptSet {
void GetInjections(std::vector<std::unique_ptr<ScriptInjection>>* injections,
content::RenderFrame* render_frame,
int tab_id,
- UserScript::RunLocation run_location);
+ UserScript::RunLocation run_location,
+ bool log_activity);
std::unique_ptr<ScriptInjection> GetDeclarativeScriptInjection(
int script_id,
content::RenderFrame* render_frame,
int tab_id,
UserScript::RunLocation run_location,
- const GURL& document_url);
+ const GURL& document_url,
+ bool log_activity);
// Updates scripts given the shared memory region containing user scripts.
// Returns true if the scripts were successfully updated.
@@ -80,7 +82,8 @@ class UserScriptSet {
int tab_id,
UserScript::RunLocation run_location,
const GURL& document_url,
- bool is_declarative);
+ bool is_declarative,
+ bool log_activity);
// Shared memory containing raw script data.
std::unique_ptr<base::SharedMemory> shared_memory_;

Powered by Google App Engine
This is Rietveld 408576698