summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/notifications/balloon_view_host.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-27 19:13:17 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-27 19:13:17 +0000
commitf82d57b5aac005760209900be768192f66a38361 (patch)
treec6fd653cf6f6f6b7f6b19ce34ad3492e4758d42d /chrome/browser/chromeos/notifications/balloon_view_host.h
parentfa71e8aecde3d31a2a8e75df8034bdef6e237f35 (diff)
downloadchromium_src-f82d57b5aac005760209900be768192f66a38361.zip
chromium_src-f82d57b5aac005760209900be768192f66a38361.tar.gz
chromium_src-f82d57b5aac005760209900be768192f66a38361.tar.bz2
Revert "Revert 83168 - Revert "Revert 83100 - Remove weird dependency on extensions from webui.Re-plumb extension request messages in a more sane way.Before, each RVH had ProcessWebUIMessage(), which wasserving as a manual way of plumbing both WebUI andextension messages to the right place, even though onlya few RVHD responded to either message.Instead of this, we now just teach more of the stack howto handle IPC messages in general, and delegate them upthrough the stack, giving each layer a chance to handlethem if it knows how.The result is simpler and smaller:179 insertions(+), 252 deletions(-)BUG=80311Review URL: http://codereview.chromium.org/6901021"This reverts commit 643b280cedd9f0b76948686f39f50f295aba362f.TBR=mpcomplete@chromium.org"
This reverts commit ba6603c3cc46f1b83219be906ab36f8f2b3372e2. TBR=mpcomplete@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/notifications/balloon_view_host.h')
-rw-r--r--chrome/browser/chromeos/notifications/balloon_view_host.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/notifications/balloon_view_host.h b/chrome/browser/chromeos/notifications/balloon_view_host.h
index 5b6a3ca5..7b1a3e5 100644
--- a/chrome/browser/chromeos/notifications/balloon_view_host.h
+++ b/chrome/browser/chromeos/notifications/balloon_view_host.h
@@ -12,6 +12,7 @@
#include <string>
#include "base/callback.h"
+#include "base/compiler_specific.h"
#include "ui/gfx/native_widget_types.h"
class ListValue;
@@ -33,15 +34,19 @@ class BalloonViewHost : public ::BalloonViewHost {
bool AddWebUIMessageCallback(const std::string& message,
MessageCallback* callback);
- // Process WebUI message.
- virtual void ProcessWebUIMessage(
- const ExtensionHostMsg_DomMessage_Params& params);
-
private:
+ // RenderViewHostDelegate
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
// A map of message name -> message handling callback.
typedef std::map<std::string, MessageCallback*> MessageCallbackMap;
MessageCallbackMap message_callbacks_;
+ // Message handlers.
+ virtual void OnWebUISend(const GURL& source_url,
+ const std::string& name,
+ const ListValue& args);
+
DISALLOW_COPY_AND_ASSIGN(BalloonViewHost);
};