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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_
6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_
7 #pragma once
8
9 class ExtensionHost;
10
11 namespace extensions {
12
13 // Transforms and dispatches command line arguments to WebIntent data. A
14 // window.intent object will be created in the |host| ExtensionHost's
15 // render view if:
16 // - there is an argument on the command line, and
17 // - it has a MIME type for which the platform app associated with |host|
18 // provides the WebIntent action http://webintents.org/view.
19
20 // The window.intent object will be setup as follows:
21 // - action will have http://webintents.org/view
22 // - type will have the MIME type for the file
23 // - 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
24
25 // |host| must not be NULL.
26 void DispatchPlatformAppIntentData(ExtensionHost* host);
27
28 } // namespace extensions
29
30 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698