diff options
author | rpaquay@chromium.org <rpaquay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-12 01:40:16 +0000 |
---|---|---|
committer | rpaquay@chromium.org <rpaquay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-12 01:40:16 +0000 |
commit | c0c64f8700f65e07704c992068abad215deb9c3b (patch) | |
tree | 32f2ca9cc6aaaa4634affaeef058e1237fc88658 /chrome/common/extensions/api/bluetooth/bluetooth_manifest_handler.h | |
parent | 4a98a96db7b4f94e49c13ae0b17d99ec237e31b4 (diff) | |
download | chromium_src-c0c64f8700f65e07704c992068abad215deb9c3b.zip chromium_src-c0c64f8700f65e07704c992068abad215deb9c3b.tar.gz chromium_src-c0c64f8700f65e07704c992068abad215deb9c3b.tar.bz2 |
Replace "bluetooth" permission with manifest property.
BUG=336824
Review URL: https://codereview.chromium.org/145663004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/bluetooth/bluetooth_manifest_handler.h')
-rw-r--r-- | chrome/common/extensions/api/bluetooth/bluetooth_manifest_handler.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/bluetooth/bluetooth_manifest_handler.h b/chrome/common/extensions/api/bluetooth/bluetooth_manifest_handler.h new file mode 100644 index 0000000..2c93502 --- /dev/null +++ b/chrome/common/extensions/api/bluetooth/bluetooth_manifest_handler.h @@ -0,0 +1,41 @@ +// 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 <string> +#include <vector> + +#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<std::string> Keys() const OVERRIDE; + + DISALLOW_COPY_AND_ASSIGN(BluetoothManifestHandler); +}; + +} // namespace extensions + +#endif // CHROME_COMMON_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_MANIFEST_HANDLER_H_ |