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

Unified Diff: chrome/browser/extensions/platform_app_intent_dispatcher.h

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: Include files 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
Index: chrome/browser/extensions/platform_app_intent_dispatcher.h
diff --git a/chrome/browser/extensions/platform_app_intent_dispatcher.h b/chrome/browser/extensions/platform_app_intent_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b9454967991c635c430182b88c1b50c411245fb
--- /dev/null
+++ b/chrome/browser/extensions/platform_app_intent_dispatcher.h
@@ -0,0 +1,30 @@
+// 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.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_
+#define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_
+#pragma once
+
+class ExtensionHost;
+
+namespace extensions {
+
+// Transforms and dispatches command line arguments to WebIntent data. A
+// window.intent object will be created in the |host| ExtensionHost's
+// render view if:
+// - there is an argument on the command line, and
+// - it has a MIME type for which the platform app associated with |host|
+// provides the WebIntent action http://webintents.org/view.
+
+// The window.intent object will be setup as follows:
+// - action will have http://webintents.org/view
+// - type will have the MIME type for the file
+// - data will have the filename as a file:/// URL.
Greg Billock 2012/03/28 14:21:02 The current thinking is that if the contents are b
benwells 2012/03/29 03:29:18 Greg and I chatted about this and he filled me in
+
+// |host| must not be NULL.
+void DispatchPlatformAppIntentData(ExtensionHost* host);
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698