| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/chromeos/dbus/bluetooth_property.h" | 14 #include "chromeos/chromeos_export.h" |
| 15 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 15 #include "chromeos/dbus/bluetooth_property.h" |
| 16 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 16 #include "dbus/object_path.h" | 17 #include "dbus/object_path.h" |
| 17 | 18 |
| 18 namespace dbus { | 19 namespace dbus { |
| 19 class Bus; | 20 class Bus; |
| 20 } // namespace dbus | 21 } // namespace dbus |
| 21 | 22 |
| 22 namespace chromeos { | 23 namespace chromeos { |
| 23 | 24 |
| 24 class BluetoothDeviceClient; | 25 class BluetoothDeviceClient; |
| 25 | 26 |
| 26 // BluetoothNodeClient is used to represent persistent device nodes | 27 // BluetoothNodeClient is used to represent persistent device nodes |
| 27 // bound to bluetooth devices, such as RFCOMM TTY bindings to ttyX devices | 28 // bound to bluetooth devices, such as RFCOMM TTY bindings to ttyX devices |
| 28 // in Linux. | 29 // in Linux. |
| 29 class BluetoothNodeClient { | 30 class CHROMEOS_EXPORT BluetoothNodeClient { |
| 30 public: | 31 public: |
| 31 // Structure of properties associated with persistent device nodes. | 32 // Structure of properties associated with persistent device nodes. |
| 32 struct Properties : public BluetoothPropertySet { | 33 struct Properties : public BluetoothPropertySet { |
| 33 // The name of the device node under /dev. Read-only. | 34 // The name of the device node under /dev. Read-only. |
| 34 BluetoothProperty<std::string> name; | 35 BluetoothProperty<std::string> name; |
| 35 | 36 |
| 36 // Object path of the device the node binding belongs to. Read-only. | 37 // Object path of the device the node binding belongs to. Read-only. |
| 37 BluetoothProperty<dbus::ObjectPath> device; | 38 BluetoothProperty<dbus::ObjectPath> device; |
| 38 | 39 |
| 39 Properties(dbus::ObjectProxy* object_proxy, | 40 Properties(dbus::ObjectProxy* object_proxy, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 72 |
| 72 protected: | 73 protected: |
| 73 BluetoothNodeClient(); | 74 BluetoothNodeClient(); |
| 74 | 75 |
| 75 private: | 76 private: |
| 76 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient); | 77 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace chromeos | 80 } // namespace chromeos |
| 80 | 81 |
| 81 #endif // CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ | 82 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ |
| OLD | NEW |