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

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

Issue 8343070: Support dispositon attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try again Created 9 years, 2 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 2e791b0f7999dfccad23bf97d2e3f0736beaf04c..f435acd0ee8c4284673fb5c4024d9d64d14dc2c9 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -278,6 +278,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_RegisterIntentHandler,
+ OnRegisterIntentHandler)
IPC_MESSAGE_HANDLER(IntentsHostMsg_WebIntentDispatch,
OnWebIntentDispatch)
IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartProvisionalLoadForFrame,
@@ -305,8 +307,6 @@ bool TabContents::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory)
IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler,
OnRegisterProtocolHandler)
- IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterIntentHandler,
- OnRegisterIntentHandler)
IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply)
IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin)
IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed)
@@ -881,6 +881,21 @@ void TabContents::SetContentRestrictions(int restrictions) {
delegate()->ContentRestrictionsChanged(this);
}
+void TabContents::OnRegisterIntentHandler(const string16& action,
+ const string16& type,
+ const string16& href,
+ const string16& title,
+ const string16& disposition) {
+ delegate()->RegisterIntentHandler(
+ this, action, type, href, title, disposition);
+}
+
+void TabContents::OnWebIntentDispatch(const IPC::Message& message,
+ const webkit_glue::WebIntentData& intent,
+ int intent_id) {
+ delegate()->WebIntentDispatch(this, message.routing_id(), intent, intent_id);
+}
+
void TabContents::OnDidStartProvisionalLoadForFrame(int64 frame_id,
bool is_main_frame,
const GURL& opener_url,
@@ -1116,19 +1131,6 @@ void TabContents::OnRegisterProtocolHandler(const std::string& protocol,
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 webkit_glue::WebIntentData& intent,
- int intent_id) {
- delegate()->WebIntentDispatch(this, message.routing_id(), intent, intent_id);
-}
-
void TabContents::OnFindReply(int request_id,
int number_of_matches,
const gfx::Rect& selection_rect,
« 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