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

Unified Diff: chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.h

Issue 325893002: Bluetooth: add socket & low_energy manifest check (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add permission denied tests Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.h
diff --git a/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.h b/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.h
index b4d997c2a20105b83ca5518cc8a8e660726feb07..06008817b038a435c7b940f1df9bb2debcf04570 100644
--- a/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.h
+++ b/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.h
@@ -35,6 +35,8 @@ class BluetoothManifestPermission : public ManifestPermission {
bool CheckRequest(const Extension* extension,
const BluetoothPermissionRequest& request) const;
+ bool CheckSocketPermitted(const Extension* extension) const;
+ bool CheckLowEnergyPermitted(const Extension* extension) const;
void AddPermission(const std::string& uuid);
@@ -64,6 +66,8 @@ class BluetoothManifestPermission : public ManifestPermission {
private:
BluetoothUuidSet uuids_;
+ bool socket_;
+ bool low_energy_;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698