| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/common/extensions/permissions/bluetooth_permission_data.h" | 10 #include "chrome/common/extensions/permissions/bluetooth_permission_data.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 : uuid(uuid) {} | 25 : uuid(uuid) {} |
| 26 const std::string uuid; | 26 const std::string uuid; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 explicit BluetoothPermission(const APIPermissionInfo* info); | 29 explicit BluetoothPermission(const APIPermissionInfo* info); |
| 30 virtual ~BluetoothPermission(); | 30 virtual ~BluetoothPermission(); |
| 31 | 31 |
| 32 // SetDisjunctionPermission overrides. | 32 // SetDisjunctionPermission overrides. |
| 33 // BluetoothPermission permits an empty list for gaining permission to the | 33 // BluetoothPermission permits an empty list for gaining permission to the |
| 34 // Bluetooth APIs without implementing a profile. | 34 // Bluetooth APIs without implementing a profile. |
| 35 virtual bool FromValue(const base::Value* value) OVERRIDE; | 35 virtual bool FromValue(const base::Value* value, |
| 36 std::string* error) OVERRIDE; |
| 36 | 37 |
| 37 // APIPermission overrides | 38 // APIPermission overrides |
| 38 virtual PermissionMessages GetMessages() const OVERRIDE; | 39 virtual PermissionMessages GetMessages() const OVERRIDE; |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 } // namespace extensions | 42 } // namespace extensions |
| 42 | 43 |
| 43 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_ | 44 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_ |
| OLD | NEW |