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

Unified Diff: extensions/renderer/user_script_set_manager.h

Issue 959413003: Implement <webview>.addContentScript/removeContentScript API [1] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments. Created 5 years, 9 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/renderer/user_script_set_manager.h
diff --git a/extensions/renderer/user_script_set_manager.h b/extensions/renderer/user_script_set_manager.h
index 49e547a3d61f6583873597a17876b0288c18fae5..0de2dbdff5232603f65457a9303973f888484ea6 100644
--- a/extensions/renderer/user_script_set_manager.h
+++ b/extensions/renderer/user_script_set_manager.h
@@ -91,7 +91,8 @@ class UserScriptSetManager : public content::RenderProcessObserver {
// Handle the UpdateUserScripts extension message.
void OnUpdateUserScripts(base::SharedMemoryHandle shared_memory,
const HostID& host_id,
- const std::set<HostID>& changed_hosts);
+ const std::set<HostID>& changed_hosts,
+ bool is_to_guest_render_process);
// Scripts statically defined in extension manifests.
UserScriptSet static_scripts_;
@@ -100,6 +101,9 @@ class UserScriptSetManager : public content::RenderProcessObserver {
// per-extension).
UserScriptSetMap programmatic_scripts_;
+ // Indicates whether the manager object belongs to a guest render process.
+ bool is_in_guest_render_process_;
Fady Samuel 2015/04/02 21:46:09 is_guest_process_ is less wordy.
+
// The set of all known extensions. Owned by the Dispatcher.
const ExtensionSet* extensions_;

Powered by Google App Engine
This is Rietveld 408576698