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

Unified Diff: chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.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_data.h
diff --git a/chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h b/chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h
index f009be8b1099b9cb12ff2b82cd8d3508e150f071..30ea7b875ef2d9f963e0dc6198a4f90027e68829 100644
--- a/chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h
+++ b/chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h
@@ -32,6 +32,9 @@ class BluetoothManifestData : public Extension::ManifestData {
static bool CheckRequest(const Extension* extension,
const BluetoothPermissionRequest& request);
+ static bool CheckSocketPermitted(const Extension* extension);
+ static bool CheckLowEnergyPermitted(const Extension* extension);
+
// Tries to construct the info based on |value|, as it would have appeared in
// the manifest. Sets |error| and returns an empty scoped_ptr on failure.
static scoped_ptr<BluetoothManifestData> FromValue(const base::Value& value,

Powered by Google App Engine
This is Rietveld 408576698