Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/common/extensions/permissions/bluetooth_permission.h

Issue 141743005: Extensions: Make it possible for permission parsing code to return a detailed error message. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/common/extensions/permissions/bluetooth_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698