// Copyright 2014 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_COMMON_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_ #define CHROME_COMMON_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_ #include #include #include "extensions/common/manifest_handler.h" namespace extensions { class Extension; class ManifestPermission; } namespace extensions { // Parses the "bluetooth" manifest key. class BluetoothManifestHandler : public ManifestHandler { public: BluetoothManifestHandler(); virtual ~BluetoothManifestHandler(); // ManifestHandler overrides. virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE; virtual ManifestPermission* CreatePermission() OVERRIDE; virtual ManifestPermission* CreateInitialRequiredPermission( const Extension* extension) OVERRIDE; private: // ManifestHandler overrides. virtual const std::vector Keys() const OVERRIDE; DISALLOW_COPY_AND_ASSIGN(BluetoothManifestHandler); }; } // namespace extensions #endif // CHROME_COMMON_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_