Chromium Code Reviews| 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_ |