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

Unified Diff: chrome/browser/tab_contents/background_contents.h

Issue 6794035: Move dispatching and sending of the last extension specific messages out of TabContents and Rende... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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: chrome/browser/tab_contents/background_contents.h
===================================================================
--- chrome/browser/tab_contents/background_contents.h (revision 80315)
+++ chrome/browser/tab_contents/background_contents.h (working copy)
@@ -19,8 +19,9 @@
#include "webkit/glue/window_open_disposition.h"
class TabContents;
-struct WebPreferences;
class DesktopNotificationHandler;
+class ExtensionMessageHandler;
+struct WebPreferences;
namespace gfx {
class Rect;
@@ -68,8 +69,6 @@
virtual void DidNavigate(RenderViewHost* render_view_host,
const ViewHostMsg_FrameNavigate_Params& params);
virtual WebPreferences GetWebkitPrefs();
- virtual void ProcessWebUIMessage(
- const ExtensionHostMsg_DomMessage_Params& params);
virtual void RunJavaScriptMessage(const std::wstring& message,
const std::wstring& default_prompt,
const GURL& frame_url,
@@ -153,9 +152,6 @@
BackgroundContents();
private:
- // Message handlers.
- void OnPostMessage(int port_id, const std::string& message);
-
// The delegate for this BackgroundContents.
Delegate* delegate_;
@@ -173,6 +169,9 @@
// Handles desktop notification IPCs.
scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_;
+ // Handles extension IPCs.
+ scoped_ptr<ExtensionMessageHandler> extension_message_handler_;
+
DISALLOW_COPY_AND_ASSIGN(BackgroundContents);
};

Powered by Google App Engine
This is Rietveld 408576698