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

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: Cleanup and nits 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..0316ff9c7f1b954016da26e267b084007c2d79e2
--- /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 {
+
+// Transform and dispatch command line arguments to WebIntent data. A
James Hawkins 2012/03/28 00:59:52 nit: Function/method comments should be in the dec
benwells 2012/03/28 04:50:27 Done.
+// 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.
+
+// |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