From 75e5a879a500897b2409c49d4ef205e2e954c9fd Mon Sep 17 00:00:00 2001 From: "mpcomplete@google.com" Date: Thu, 2 Apr 2009 23:56:11 +0000 Subject: Add code to support 2-way communication between extensions and renderers. The code is almost fully symmetrical, except that right now a channel can only be opened to an extension (by ID). It should be trivial to open a channel to a tab, once we have a solid tab API. Review URL: http://codereview.chromium.org/56037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13057 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/render_thread.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/renderer/render_thread.h') diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h index 0c1290c..5340b0e 100644 --- a/chrome/renderer/render_thread.h +++ b/chrome/renderer/render_thread.h @@ -122,6 +122,9 @@ class RenderThread : public RenderThreadBase, // Send all histograms to browser. void OnGetRendererHistograms(); + void OnExtensionHandleConnect(int channel_id); + void OnExtensionHandleMessage(const std::string& message, int channel_id); + // Gather usage statistics from the in-memory cache and inform our host. // These functions should be call periodically so that the host can make // decisions about how to allocation resources using current information. -- cgit v1.1