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

Unified Diff: chrome/common/extensions/permissions/api_permission.h

Issue 11413099: Bluetooth API Permission Dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix memory leak Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/permissions/api_permission.h
diff --git a/chrome/common/extensions/permissions/api_permission.h b/chrome/common/extensions/permissions/api_permission.h
index a022b27139e0922a506130f59b92ab12f2bfe58d..1decadc1b252f85a1dbb23db84c151389129bacd 100644
--- a/chrome/common/extensions/permissions/api_permission.h
+++ b/chrome/common/extensions/permissions/api_permission.h
@@ -46,6 +46,7 @@ class APIPermission {
kAudioCapture,
kBackground,
kBluetooth,
+ kBluetoothDevice,
kBookmark,
kBookmarkManagerPrivate,
kBrowsingData,
@@ -133,6 +134,13 @@ class APIPermission {
return info_;
}
+ // Returns a string representation of this permissions. The default string
+ // representation is the name of the permission.
+ virtual std::string ToString() const;
+
+ // Returns true if this permission cannot be found in the manifest.
+ virtual bool ManifestEntryForbidden() const;
+
// Returns true if this permission has any PermissionMessages.
virtual bool HasMessages() const = 0;
« no previous file with comments | « chrome/common/extensions/extension_manifest_constants.cc ('k') | chrome/common/extensions/permissions/api_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698