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

Unified Diff: content/browser/intents/web_intents_direct_dispatch.cc

Issue 9845003: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment resposne Created 8 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
« no previous file with comments | « chrome/test/data/extensions/platform_apps/document_editor/test.txt ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/intents/web_intents_direct_dispatch.cc
diff --git a/content/browser/intents/web_intents_direct_dispatch.cc b/content/browser/intents/web_intents_direct_dispatch.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ae019c24b04a73f786243ea8474cf733204c1eda
--- /dev/null
+++ b/content/browser/intents/web_intents_direct_dispatch.cc
@@ -0,0 +1,18 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/browser/web_intents_dispatcher.h"
+
+#include "content/common/intents_messages.h"
+
+namespace content {
+
+void DirectDispatchIntent(webkit_glue::WebIntentData intent_data,
+ RenderViewHost* render_view_host) {
+ render_view_host->Send(new IntentsMsg_SetWebIntentData(
James Hawkins 2012/03/28 05:17:41 nit: Add include for RenderViewHost.
benwells 2012/03/28 07:48:00 Done, with some other include changes to make it (
+ render_view_host->GetRoutingID(), intent_data));
+}
+
+} // namespace content
+
« no previous file with comments | « chrome/test/data/extensions/platform_apps/document_editor/test.txt ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698