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

Unified Diff: extensions/renderer/user_script_set.h

Issue 2277373002: [Extensions] Make UserScriptInjector's script update stricter (Closed)
Patch Set: comment Created 4 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
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_script_set.h
diff --git a/extensions/renderer/user_script_set.h b/extensions/renderer/user_script_set.h
index 30711c7832c478872aa2c3d873f6aa724ff9e2eb..578667871ffe8e4bfbfbf89cd6796a84d29c13b6 100644
--- a/extensions/renderer/user_script_set.h
+++ b/extensions/renderer/user_script_set.h
@@ -32,6 +32,9 @@ class UserScriptSet {
public:
class Observer {
public:
+ // Called when the set of user scripts is updated. |changed_hosts| contains
+ // the hosts whose scripts have been altered. Note that *all* script objects
+ // are invalidated, even if they aren't in |changed_hosts|.
virtual void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts,
const UserScriptList& scripts) = 0;
};
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698