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

Unified Diff: extensions/browser/declarative_user_script_master.h

Issue 959413003: Implement <webview>.addContentScript/removeContentScript API [1] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up in web_view_internal_api.cc. Created 5 years, 8 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/browser/declarative_user_script_master.h
diff --git a/extensions/browser/declarative_user_script_master.h b/extensions/browser/declarative_user_script_master.h
index c7a23c3f6b2ec692759d8753064f80b6df65e257..f5730396099498c46c1ead26a1aed2670e975992 100644
--- a/extensions/browser/declarative_user_script_master.h
+++ b/extensions/browser/declarative_user_script_master.h
@@ -30,10 +30,18 @@ class DeclarativeUserScriptMaster {
// script load is in progress.
void AddScript(const UserScript& script);
+ // Adds a set of scripts to shared memory region. This may not happen right
+ // away if a script load is in progress.
+ void AddScripts(const std::set<UserScript>& scripts);
+
// Removes script from shared memory region. This may not happen right away if
// a script load is in progress.
void RemoveScript(const UserScript& script);
+ // Removes a set of scripts from shared memory region. This may not happen
+ // right away if a script load is in progress.
+ void RemoveScripts(const std::set<UserScript>& scripts);
+
// Removes all scripts from shared memory region. This may not happen right
// away if a script load is in progress.
void ClearScripts();

Powered by Google App Engine
This is Rietveld 408576698