| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_PERMISSION_H_ | 5 #ifndef EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_PERMISSION_H_ |
| 6 #define EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_PERMISSION_H_ | 6 #define EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_PERMISSION_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 base::string16* error); | 34 base::string16* error); |
| 35 | 35 |
| 36 bool CheckRequest(const Extension* extension, | 36 bool CheckRequest(const Extension* extension, |
| 37 const BluetoothPermissionRequest& request) const; | 37 const BluetoothPermissionRequest& request) const; |
| 38 bool CheckSocketPermitted(const Extension* extension) const; | 38 bool CheckSocketPermitted(const Extension* extension) const; |
| 39 bool CheckLowEnergyPermitted(const Extension* extension) const; | 39 bool CheckLowEnergyPermitted(const Extension* extension) const; |
| 40 | 40 |
| 41 void AddPermission(const std::string& uuid); | 41 void AddPermission(const std::string& uuid); |
| 42 | 42 |
| 43 // extensions::ManifestPermission overrides. | 43 // extensions::ManifestPermission overrides. |
| 44 virtual std::string name() const OVERRIDE; | 44 virtual std::string name() const override; |
| 45 virtual std::string id() const OVERRIDE; | 45 virtual std::string id() const override; |
| 46 virtual bool HasMessages() const OVERRIDE; | 46 virtual bool HasMessages() const override; |
| 47 virtual PermissionMessages GetMessages() const OVERRIDE; | 47 virtual PermissionMessages GetMessages() const override; |
| 48 virtual bool FromValue(const base::Value* value) OVERRIDE; | 48 virtual bool FromValue(const base::Value* value) override; |
| 49 virtual scoped_ptr<base::Value> ToValue() const OVERRIDE; | 49 virtual scoped_ptr<base::Value> ToValue() const override; |
| 50 virtual ManifestPermission* Diff(const ManifestPermission* rhs) | 50 virtual ManifestPermission* Diff(const ManifestPermission* rhs) |
| 51 const OVERRIDE; | 51 const override; |
| 52 virtual ManifestPermission* Union(const ManifestPermission* rhs) | 52 virtual ManifestPermission* Union(const ManifestPermission* rhs) |
| 53 const OVERRIDE; | 53 const override; |
| 54 virtual ManifestPermission* Intersect(const ManifestPermission* rhs) | 54 virtual ManifestPermission* Intersect(const ManifestPermission* rhs) |
| 55 const OVERRIDE; | 55 const override; |
| 56 | 56 |
| 57 const BluetoothUuidSet& uuids() const { | 57 const BluetoothUuidSet& uuids() const { |
| 58 return uuids_; | 58 return uuids_; |
| 59 } | 59 } |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 BluetoothUuidSet uuids_; | 62 BluetoothUuidSet uuids_; |
| 63 bool socket_; | 63 bool socket_; |
| 64 bool low_energy_; | 64 bool low_energy_; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace extensions | 67 } // namespace extensions |
| 68 | 68 |
| 69 #endif // EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_PERMISSION_H_ | 69 #endif // EXTENSIONS_COMMON_API_BLUETOOTH_BLUETOOTH_MANIFEST_PERMISSION_H_ |
| OLD | NEW |