| 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.
|
| +
|
| +// |host| must not be NULL.
|
| +void DispatchPlatformAppIntentData(ExtensionHost* host);
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_
|
|
|