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

Unified Diff: extensions/renderer/user_script_injector.h

Issue 492133002: Renderer changes for wiring up shared memory with declarative injection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed up tests and responded to other comments Created 6 years, 4 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 3314bb05a18f75bc7ab0a4b0b06f362112e14696..f7b818fe10cce1d9cafb2586897f9f8ffa3e45b9 100644
--- a/extensions/renderer/user_script_injector.h
+++ b/extensions/renderer/user_script_injector.h
@@ -25,7 +25,8 @@ class UserScriptInjector : public ScriptInjector,
public UserScriptSet::Observer {
public:
UserScriptInjector(const UserScript* user_script,
- UserScriptSet* user_script_set);
+ UserScriptSet* user_script_set,
+ bool is_declarative);
virtual ~UserScriptInjector();
private:
@@ -71,6 +72,10 @@ class UserScriptInjector : public ScriptInjector,
// The associated extension id, preserved for the same reason as |script_id|.
std::string extension_id_;
+ // Indicates whether or not this script is declarative. This influences which
+ // script permissions are checked before injection.
+ bool is_declarative_;
+
ScopedObserver<UserScriptSet, UserScriptSet::Observer>
user_script_set_observer_;

Powered by Google App Engine
This is Rietveld 408576698