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

Unified Diff: chrome/browser/extensions/user_script_master.h

Issue 288053002: Block content scripts from executing until user grants permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after ScriptInjection refactor Created 6 years, 7 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: chrome/browser/extensions/user_script_master.h
diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h
index 7a56efa810af522f1c7d6cee40deb09e61d1a8a4..ae0be2805950b075a57133e3a9c4ec60590178f3 100644
--- a/chrome/browser/extensions/user_script_master.h
+++ b/chrome/browser/extensions/user_script_master.h
@@ -151,7 +151,8 @@ class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>,
// Sends the renderer process a new set of user scripts.
not at google - send to devlin 2014/05/21 15:01:07 you might want to add that |changed_extensions| is
Devlin 2014/05/21 17:05:11 Done.
void SendUpdate(content::RenderProcessHost* process,
- base::SharedMemory* shared_memory);
+ base::SharedMemory* shared_memory,
+ const std::set<std::string>& changed_extensions);
// Manages our notification registrations.
content::NotificationRegistrar registrar_;
@@ -168,6 +169,10 @@ class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>,
// Maps extension info needed for localization to an extension ID.
ExtensionsInfo extensions_info_;
+ // The IDs of the extensions which have changed since the last update sent to
+ // the renderer.
+ std::set<std::string> changed_extensions_;
+
// If the extensions service has finished loading its initial set of
// extensions.
bool extensions_service_ready_;

Powered by Google App Engine
This is Rietveld 408576698