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

Unified Diff: device/bluetooth/bluetooth_service_record.h

Issue 328483004: Remove BluetoothServiceRecord base class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « device/bluetooth/bluetooth_device_win_unittest.cc ('k') | device/bluetooth/bluetooth_service_record.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_service_record.h
diff --git a/device/bluetooth/bluetooth_service_record.h b/device/bluetooth/bluetooth_service_record.h
deleted file mode 100644
index e4859b11b9dd7a51afa1dff823632cdd44ef2b94..0000000000000000000000000000000000000000
--- a/device/bluetooth/bluetooth_service_record.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2012 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 DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_H_
-#define DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "device/bluetooth/bluetooth_uuid.h"
-
-namespace device {
-
-// BluetoothServiceRecord represents an SDP service record.
-//
-// This implementation is currently incomplete: it only supports those fields
-// that have been necessary so far.
-class BluetoothServiceRecord {
- public:
- virtual ~BluetoothServiceRecord();
-
- // The human-readable name of this service.
- const std::string& name() const { return name_; }
-
- // The address of the BluetoothDevice providing this service.
- const std::string& address() const { return address_; }
-
- // The UUID of the service. This field may be empty if no UUID was
- // specified in the service record.
- const BluetoothUUID& uuid() const { return uuid_; }
-
- // Indicates if this service supports HID.
- bool SupportsHid() const { return supports_hid_; }
-
- // For HID services, returns the HIDReconnectInitiate attribute. For non-HID
- // or unknown services defaults to true.
- bool hid_reconnect_initiate() const { return hid_reconnect_initiate_; }
-
- // For HID services, returns the HIDNormallyConnectable attribute. For non-HID
- // or unknown services defaults to true.
- bool hid_normally_connectable() const { return hid_normally_connectable_; }
-
- // Indicates if this service supports RFCOMM communication.
- bool SupportsRfcomm() const { return supports_rfcomm_; }
-
- // The RFCOMM channel to use, if this service supports RFCOMM communication.
- // The return value is undefined if SupportsRfcomm() returns false.
- uint8 rfcomm_channel() const { return rfcomm_channel_; }
-
- protected:
- BluetoothServiceRecord();
-
- std::string address_;
- std::string name_;
- BluetoothUUID uuid_;
-
- bool supports_hid_;
- bool hid_reconnect_initiate_;
- bool hid_normally_connectable_;
-
- bool supports_rfcomm_;
- uint8 rfcomm_channel_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecord);
-};
-
-} // namespace device
-
-#endif // DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_H_
« no previous file with comments | « device/bluetooth/bluetooth_device_win_unittest.cc ('k') | device/bluetooth/bluetooth_service_record.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698