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

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

Issue 8666013: Add a public content/ interface for intents. Use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For try servers. Created 9 years, 1 month 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/intents/intents_host_impl.cc ('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 ea19f2090366690848463ef51f1207066999af0a..7a3d8b80af13fa00d4e51a28ac3c3dc73da643b9 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -20,6 +20,7 @@
#include "content/browser/download/download_stats.h"
#include "content/browser/host_zoom_map.h"
#include "content/browser/in_process_webkit/session_storage_namespace.h"
+#include "content/browser/intents/intents_host_impl.h"
#include "content/browser/load_from_memory_cache_details.h"
#include "content/browser/load_notification_details.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
@@ -913,7 +914,8 @@ void TabContents::OnRegisterIntentService(const string16& action,
void TabContents::OnWebIntentDispatch(const IPC::Message& message,
const webkit_glue::WebIntentData& intent,
int intent_id) {
- delegate()->WebIntentDispatch(this, message.routing_id(), intent, intent_id);
+ IntentsHostImpl* intents_host = new IntentsHostImpl(this, intent, intent_id);
+ delegate()->WebIntentDispatch(this, intents_host);
}
void TabContents::OnDidStartProvisionalLoadForFrame(int64 frame_id,
« no previous file with comments | « content/browser/intents/intents_host_impl.cc ('k') | content/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698