1 // Copyright 2014 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.
5 #ifndef CHROME_COMMON_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_
6 #define CHROME_COMMON_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_
11 #include "extensions/common/manifest_handler.h"
13 namespace extensions
{
15 class ManifestPermission
;
18 namespace extensions
{
20 // Parses the "bluetooth" manifest key.
21 class BluetoothManifestHandler
: public ManifestHandler
{
23 BluetoothManifestHandler();
24 virtual ~BluetoothManifestHandler();
26 // ManifestHandler overrides.
27 virtual bool Parse(Extension
* extension
, base::string16
* error
) OVERRIDE
;
28 virtual ManifestPermission
* CreatePermission() OVERRIDE
;
29 virtual ManifestPermission
* CreateInitialRequiredPermission(
30 const Extension
* extension
) OVERRIDE
;
33 // ManifestHandler overrides.
34 virtual const std::vector
<std::string
> Keys() const OVERRIDE
;
36 DISALLOW_COPY_AND_ASSIGN(BluetoothManifestHandler
);
39 } // namespace extensions
41 #endif // CHROME_COMMON_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_