summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_process_manager.h
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 02:41:28 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 02:41:28 +0000
commitb68d5ed3f9d1b49b24713431bfe212b7601b75b1 (patch)
tree9d374ca1d7c1f5f8a25fefacde0bcf3396595da6 /chrome/browser/extensions/extension_process_manager.h
parentf606747ffb21e9d0c6d55c9b57d42445503728f1 (diff)
downloadchromium_src-b68d5ed3f9d1b49b24713431bfe212b7601b75b1.zip
chromium_src-b68d5ed3f9d1b49b24713431bfe212b7601b75b1.tar.gz
chromium_src-b68d5ed3f9d1b49b24713431bfe212b7601b75b1.tar.bz2
Initial plumbing for sending events from the browser to extension renderers. Implement onTabMoved.
Review URL: http://codereview.chromium.org/73065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_process_manager.h')
-rwxr-xr-xchrome/browser/extensions/extension_process_manager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_process_manager.h b/chrome/browser/extensions/extension_process_manager.h
index fdbff8a..7e56fc8 100755
--- a/chrome/browser/extensions/extension_process_manager.h
+++ b/chrome/browser/extensions/extension_process_manager.h
@@ -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 @@ class ExtensionProcessManager {
// 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.