Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1625)

Unified Diff: chrome/browser/extensions/extension_process_manager.h

Issue 73065: Initial plumbing for sending events from the browser to extension renderers. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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: chrome/browser/extensions/extension_process_manager.h
===================================================================
--- chrome/browser/extensions/extension_process_manager.h (revision 13816)
+++ chrome/browser/extensions/extension_process_manager.h (working copy)
@@ -8,12 +8,14 @@
#include "base/ref_counted.h"
#include <map>
+#include <string>
class Browser;
class BrowsingInstance;
class Extension;
class ExtensionView;
class GURL;
+class ListValue;
class Profile;
class SiteInstance;
@@ -41,6 +43,12 @@
// Returns the SiteInstance that the given URL belongs to in this profile.
SiteInstance* GetSiteInstanceForURL(const GURL& url, Profile* profile);
+
+ // Sends the event to each renderer process within the current profile that
+ // contain at least one extension renderer.
+ void DispatchEventToRenderers(Profile *profile,
+ const std::string& event_name,
+ const ListValue& data);
private:
// Returns our BrowsingInstance for the given profile. Lazily created and
// cached.
« no previous file with comments | « chrome/browser/extensions/extension_message_service.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698