| Index: chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.h
|
| diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_service_record.h b/chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.h
|
| similarity index 73%
|
| rename from chrome/browser/chromeos/bluetooth/bluetooth_service_record.h
|
| rename to chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.h
|
| index 03a32323198ae9cea5743f816d6701585e5c40dc..c4a6c0bc77224cc2dffb3f0cd374de97eed048bc 100644
|
| --- a/chrome/browser/chromeos/bluetooth/bluetooth_service_record.h
|
| +++ b/chrome/browser/chromeos/bluetooth/bluetooth_service_record_dbus.h
|
| @@ -2,36 +2,38 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_H_
|
| -#define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_H_
|
| +#ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_DBUS_H_
|
| +#define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_DBUS_H_
|
|
|
| #include <string>
|
|
|
| #include "base/basictypes.h"
|
| +#include "chrome/browser/chromeos/bluetooth/bluetooth_service_record_interface.h"
|
|
|
| class XmlReader;
|
|
|
| namespace chromeos {
|
|
|
| -// The BluetoothServiceRecord represents an SDP service record.
|
| +// The BluetoothServiceRecordDBus class is an implementation of
|
| +// BluetoothServiceRecordInterface using DBus for Linux/ChromeOS platform.
|
| //
|
| // This implementation is currently incomplete: it only supports those fields
|
| // that have been necessary so far.
|
| -class BluetoothServiceRecord {
|
| +class BluetoothServiceRecordDBus : public BluetoothServiceRecordInterface {
|
| public:
|
| - BluetoothServiceRecord(
|
| + BluetoothServiceRecordDBus(
|
| const std::string& address,
|
| const std::string& xml_data);
|
|
|
| // 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_; }
|
| + virtual const std::string& name() const { return name_; }
|
|
|
| // The UUID of the service. This field may be empty if no UUID was
|
| // specified in the service record.
|
| - const std::string& uuid() const { return uuid_; }
|
| + virtual const std::string& uuid() const { return uuid_; }
|
| +
|
| + // The address of the BluetoothDevice providing this service.
|
| + const std::string& address() const { return address_; }
|
|
|
| // Indicates if this service supports RFCOMM communication.
|
| bool SupportsRfcomm() const { return supports_rfcomm_; }
|
| @@ -51,9 +53,9 @@ class BluetoothServiceRecord {
|
| bool supports_rfcomm_;
|
| uint8_t rfcomm_channel_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecord);
|
| + DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecordDBus);
|
| };
|
|
|
| } // namespace chromeos
|
|
|
| -#endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_H_
|
| +#endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_DBUS_H_
|
|
|