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

Unified Diff: extensions/browser/renderer_startup_helper.h

Issue 2766063003: Extensions: Keep track of loaded extensions in RendererStartupHelper. (Closed)
Patch Set: -- Created 3 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/browser/renderer_startup_helper.h
diff --git a/extensions/browser/renderer_startup_helper.h b/extensions/browser/renderer_startup_helper.h
index 94ec3833b955795135c84650f0b857268d8be0d4..e8726bf3329061ccd8e81f61ab81f8f60cfe15e7 100644
--- a/extensions/browser/renderer_startup_helper.h
+++ b/extensions/browser/renderer_startup_helper.h
@@ -69,14 +69,16 @@ class RendererStartupHelper : public KeyedService,
content::BrowserContext* browser_context_; // Not owned.
// The set of render processes that have had the initial batch of IPC messages
- // sent, including the set of loaded extensions. Further messages that
+ // sent, together with the set of loaded extensions. Further messages that
// activate, load, or unload extensions should not be sent until after this
- // happens.
- std::set<content::RenderProcessHost*> initialized_processes_;
+ // happens. Used to keep the track of initialized processes along with its
+ // loaded extensions.
+ std::map<content::RenderProcessHost*, std::set<ExtensionId>>
+ loaded_extensions_;
// The set of ids for extensions that are active in a process that has not
- // been initialized. The activation message will be sent the process is
- // initialized.
+ // been initialized. The activation message will be sent once the process is
+ // initialized. This is only valid for uninitialized processes.
std::map<content::RenderProcessHost*, std::set<ExtensionId>>
pending_active_extensions_;
« no previous file with comments | « no previous file | extensions/browser/renderer_startup_helper.cc » ('j') | extensions/browser/renderer_startup_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698