Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / extensions / common / api / bluetooth / bluetooth_manifest_handler.h
blobb87fd513a113956a3a3ab5f8900c8e9e1d2d1b4a
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 EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_
6 #define EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_
8 #include <string>
9 #include <vector>
11 #include "extensions/common/manifest_handler.h"
13 namespace extensions {
14 class Extension;
15 class ManifestPermission;
18 namespace extensions {
20 // Parses the "bluetooth" manifest key.
21 class BluetoothManifestHandler : public ManifestHandler {
22 public:
23 BluetoothManifestHandler();
24 ~BluetoothManifestHandler() override;
26 // ManifestHandler overrides.
27 bool Parse(Extension* extension, base::string16* error) override;
28 ManifestPermission* CreatePermission() override;
29 ManifestPermission* CreateInitialRequiredPermission(
30 const Extension* extension) override;
32 private:
33 // ManifestHandler overrides.
34 const std::vector<std::string> Keys() const override;
36 DISALLOW_COPY_AND_ASSIGN(BluetoothManifestHandler);
39 } // namespace extensions
41 #endif // EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_