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

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

Issue 145663004: Replace "bluetooth" permission with manifest property. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused function. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/permissions/bluetooth_permission_data.h
diff --git a/chrome/common/extensions/permissions/bluetooth_permission_data.h b/chrome/common/extensions/permissions/bluetooth_permission_data.h
deleted file mode 100644
index 25413d4c082da9b1ba50ed0238a63451bbba4613..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/permissions/bluetooth_permission_data.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_DATA_H_
-#define CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_DATA_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "extensions/common/permissions/api_permission.h"
-
-namespace base {
-
-class Value;
-
-} // namespace base
-
-namespace extensions {
-
-// A pattern that can be used to match a Bluetooth profile permission, must be
-// of a format that can be passed to device::bluetooth_utils::CanonoicalUuid().
-class BluetoothPermissionData {
- public:
- BluetoothPermissionData();
- explicit BluetoothPermissionData(const std::string& uuid);
-
- // Check if |param| (which must be a BluetoothPermission::CheckParam)
- // matches the uuid of this object.
- bool Check(const APIPermission::CheckParam* param) const;
-
- // Convert |this| into a base::Value.
- scoped_ptr<base::Value> ToValue() const;
-
- // Populate |this| from a base::Value.
- bool FromValue(const base::Value* value);
-
- bool operator<(const BluetoothPermissionData& rhs) const;
- bool operator==(const BluetoothPermissionData& rhs) const;
-
- // The uuid |this| matches against.
- const std::string& uuid() const { return uuid_; }
-
- // This accessor is provided for IPC_STRUCT_TRAITS_MEMBER. Please
- // think twice before using it for anything else.
- std::string& uuid() { return uuid_; }
-
- private:
- std::string uuid_;
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698