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

Unified Diff: extensions/renderer/user_script_injector.h

Issue 959413003: Implement <webview>.addContentScript/removeContentScript API [1] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments. Created 5 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
Index: extensions/renderer/user_script_injector.h
diff --git a/extensions/renderer/user_script_injector.h b/extensions/renderer/user_script_injector.h
index 748fa297ea9dc94a5d0a9023d95d3db0679147bd..4fdf324a276941c20b22d1e541d914bca00fc3a4 100644
--- a/extensions/renderer/user_script_injector.h
+++ b/extensions/renderer/user_script_injector.h
@@ -27,7 +27,8 @@ class UserScriptInjector : public ScriptInjector,
public:
UserScriptInjector(const UserScript* user_script,
UserScriptSet* user_script_set,
- bool is_declarative);
+ bool is_declarative,
+ bool has_guest_content_script);
~UserScriptInjector() override;
private:
@@ -74,6 +75,10 @@ class UserScriptInjector : public ScriptInjector,
// script permissions are checked before injection.
bool is_declarative_;
+ // Indicates whether the injector belongs to a guest render process that has
+ // content scripts.
+ bool has_guest_content_script_;
+
ScopedObserver<UserScriptSet, UserScriptSet::Observer>
user_script_set_observer_;

Powered by Google App Engine
This is Rietveld 408576698