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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 7745027: Dispatch the following IPC messages in TabContents and handle them via the TabContentsDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents.cc
===================================================================
--- content/browser/tab_contents/tab_contents.cc (revision 98271)
+++ content/browser/tab_contents/tab_contents.cc (working copy)
@@ -295,6 +295,13 @@
IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnFocusedNodeChanged)
IPC_MESSAGE_HANDLER(ViewHostMsg_SaveURLAs, OnSaveURL)
IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler,
+ OnRegisterProtocolHandler)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterIntentHandler,
+ OnRegisterIntentHandler)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_WebIntentDispatch,
+ OnWebIntentDispatch)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
@@ -1102,6 +1109,32 @@
delegate()->EnumerateDirectory(this, request_id, path);
}
+void TabContents::OnJSOutOfMemory() {
+ delegate()->JSOutOfMemory(this);
+}
+
+void TabContents::OnRegisterProtocolHandler(const std::string& protocol,
+ const GURL& url,
+ const string16& title) {
+ delegate()->RegisterProtocolHandler(this, protocol, url, title);
+}
+
+void TabContents::OnRegisterIntentHandler(const string16& action,
+ const string16& type,
+ const string16& href,
+ const string16& title) {
+ delegate()->RegisterIntentHandler(this, action, type, href, title);
+}
+
+void TabContents::OnWebIntentDispatch(const IPC::Message& message,
+ const string16& action,
+ const string16& type,
+ const string16& data,
+ int intent_id) {
+ delegate()->WebIntentDispatch(this, message.routing_id(), action, type,
+ data, intent_id);
+}
+
// Notifies the RenderWidgetHost instance about the fact that the page is
// loading, or done loading and calls the base implementation.
void TabContents::SetIsLoading(bool is_loading,
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698