diff options
author | hanxi <hanxi@chromium.org> | 2015-04-16 12:15:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-16 19:16:06 +0000 |
commit | 05a02505462f29d067288ec9e5143c2daad5be78 (patch) | |
tree | 78cae035ea9af5c990a0ab8d7c97c6c4c3ed7404 /extensions/browser/declarative_user_script_master.cc | |
parent | b87cb277526092e101ce29f2ad0393f6247cc39e (diff) | |
download | chromium_src-05a02505462f29d067288ec9e5143c2daad5be78.zip chromium_src-05a02505462f29d067288ec9e5143c2daad5be78.tar.gz chromium_src-05a02505462f29d067288ec9e5143c2daad5be78.tar.bz2 |
Implement <webview>.addContentScript/removeContentScript API [1].
This patch includes the changes that enables <webview>.addContentScript/removeContentScript API work on extensions.
This is the first patch in a series of patches:
1) Implement <webview>.addContentScript/removeContentScript API [1] (https://codereview.chromium.org/959413003)
2) Implement <webview>.addContentScript/removeContentScript API [2] (https://codereview.chromium.org/1056533002)
3) Implement <webview>.addContentScript/removeContentScript API [3] (https://codereview.chromium.org/1058113002)
TBR=asvitkine@chromium.org
BUG=461052
Review URL: https://codereview.chromium.org/959413003
Cr-Commit-Position: refs/heads/master@{#325492}
Diffstat (limited to 'extensions/browser/declarative_user_script_master.cc')
-rw-r--r-- | extensions/browser/declarative_user_script_master.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/browser/declarative_user_script_master.cc b/extensions/browser/declarative_user_script_master.cc index f16157f..130e9ba 100644 --- a/extensions/browser/declarative_user_script_master.cc +++ b/extensions/browser/declarative_user_script_master.cc @@ -28,12 +28,22 @@ void DeclarativeUserScriptMaster::AddScript(const UserScript& script) { loader_.AddScripts(set); } +void DeclarativeUserScriptMaster::AddScripts( + const std::set<UserScript>& scripts) { + loader_.AddScripts(scripts); +} + void DeclarativeUserScriptMaster::RemoveScript(const UserScript& script) { std::set<UserScript> set; set.insert(script); loader_.RemoveScripts(set); } +void DeclarativeUserScriptMaster::RemoveScripts( + const std::set<UserScript>& scripts) { + loader_.RemoveScripts(scripts); +} + void DeclarativeUserScriptMaster::ClearScripts() { loader_.ClearScripts(); } |