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

Unified Diff: extensions/renderer/script_injection_manager.cc

Issue 404613006: Declarative content scripts: Renderer-side: per-extension shared memory regions (lazily loaded) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for last round of comments Created 6 years, 5 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/script_injection_manager.h ('k') | extensions/renderer/user_script_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_injection_manager.cc
diff --git a/extensions/renderer/script_injection_manager.cc b/extensions/renderer/script_injection_manager.cc
index 29b54d3c67f395b90cd9e63b7afbf3a3d50266b5..69fa5da83d673a0414afa3aafba8be06ef302dbb 100644
--- a/extensions/renderer/script_injection_manager.cc
+++ b/extensions/renderer/script_injection_manager.cc
@@ -136,11 +136,11 @@ void ScriptInjectionManager::RVOHelper::RunIdle(blink::WebFrame* frame) {
ScriptInjectionManager::ScriptInjectionManager(
const ExtensionSet* extensions,
- UserScriptSet* user_script_set)
+ UserScriptSetManager* user_script_set_manager)
: extensions_(extensions),
- user_script_set_(user_script_set),
- user_script_set_observer_(this) {
- user_script_set_observer_.Add(user_script_set_);
+ user_script_set_manager_(user_script_set_manager),
+ user_script_set_manager_observer_(this) {
+ user_script_set_manager_observer_.Add(user_script_set_manager_);
}
ScriptInjectionManager::~ScriptInjectionManager() {
@@ -237,7 +237,7 @@ void ScriptInjectionManager::InjectScripts(
ScopedVector<ScriptInjection> user_script_injections;
int tab_id = ExtensionHelper::Get(content::RenderView::FromWebView(
frame->top()->view()))->tab_id();
- user_script_set_->GetInjections(
+ user_script_set_manager_->GetAllInjections(
&user_script_injections, frame, tab_id, run_location);
for (ScopedVector<ScriptInjection>::iterator iter =
user_script_injections.begin();
« no previous file with comments | « extensions/renderer/script_injection_manager.h ('k') | extensions/renderer/user_script_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698