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

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

Issue 7930002: Rename WebIntentData for backend storage to WebIntentServiceData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix class/struct decl Created 9 years, 3 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
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 79fba861be2f1e48c0237d0249565f5eb31c6706..c3f139670b854a7fa004ff753d8ab87e29a9ba1e 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -42,6 +42,7 @@
#include "content/common/bindings_policy.h"
#include "content/common/content_client.h"
#include "content/common/content_restriction.h"
+#include "content/common/intents_messages.h"
#include "content/common/navigation_types.h"
#include "content/common/notification_service.h"
#include "content/common/url_constants.h"
@@ -52,6 +53,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
#include "ui/gfx/codec/png_codec.h"
#include "webkit/glue/password_form.h"
+#include "webkit/glue/web_intent_data.h"
#include "webkit/glue/webpreferences.h"
#if defined(OS_MACOSX)
@@ -277,6 +279,8 @@ bool TabContents::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
bool message_is_ok = true;
IPC_BEGIN_MESSAGE_MAP_EX(TabContents, message, message_is_ok)
+ IPC_MESSAGE_HANDLER(IntentsHostMsg_WebIntentDispatch,
+ OnWebIntentDispatch)
IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartProvisionalLoadForFrame,
OnDidStartProvisionalLoadForFrame)
IPC_MESSAGE_HANDLER(ViewHostMsg_DidRedirectProvisionalLoad,
@@ -304,8 +308,6 @@ bool TabContents::OnMessageReceived(const IPC::Message& message) {
OnRegisterProtocolHandler)
IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterIntentHandler,
OnRegisterIntentHandler)
- IPC_MESSAGE_HANDLER(ViewHostMsg_WebIntentDispatch,
- OnWebIntentDispatch)
IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply)
IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin)
IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed)
@@ -1136,12 +1138,9 @@ void TabContents::OnRegisterIntentHandler(const string16& action,
}
void TabContents::OnWebIntentDispatch(const IPC::Message& message,
- const string16& action,
- const string16& type,
- const string16& data,
+ const webkit_glue::WebIntentData& intent,
int intent_id) {
- delegate()->WebIntentDispatch(this, message.routing_id(), action, type,
- data, intent_id);
+ delegate()->WebIntentDispatch(this, message.routing_id(), intent, intent_id);
}
void TabContents::OnFindReply(int request_id,
« 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