OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual void GattServiceAdded(const dbus::ObjectPath& object_path) OVERRIDE; | 112 virtual void GattServiceAdded(const dbus::ObjectPath& object_path) OVERRIDE; |
113 virtual void GattServiceRemoved(const dbus::ObjectPath& object_path) OVERRIDE; | 113 virtual void GattServiceRemoved(const dbus::ObjectPath& object_path) OVERRIDE; |
114 | 114 |
115 // Internal method to initiate a connection to this device, and methods called | 115 // Internal method to initiate a connection to this device, and methods called |
116 // by dbus:: on completion of the D-Bus method call. | 116 // by dbus:: on completion of the D-Bus method call. |
117 void ConnectInternal(bool after_pairing, | 117 void ConnectInternal(bool after_pairing, |
118 const base::Closure& callback, | 118 const base::Closure& callback, |
119 const ConnectErrorCallback& error_callback); | 119 const ConnectErrorCallback& error_callback); |
120 void OnConnect(bool after_pairing, | 120 void OnConnect(bool after_pairing, |
121 const base::Closure& callback); | 121 const base::Closure& callback); |
| 122 void OnCreateGattConnection(const GattConnectionCallback& callback); |
122 void OnConnectError(bool after_pairing, | 123 void OnConnectError(bool after_pairing, |
123 const ConnectErrorCallback& error_callback, | 124 const ConnectErrorCallback& error_callback, |
124 const std::string& error_name, | 125 const std::string& error_name, |
125 const std::string& error_message); | 126 const std::string& error_message); |
126 | 127 |
127 // Called by dbus:: on completion of the D-Bus method call to pair the device. | 128 // Called by dbus:: on completion of the D-Bus method call to pair the device. |
128 void OnPair(const base::Closure& callback, | 129 void OnPair(const base::Closure& callback, |
129 const ConnectErrorCallback& error_callback); | 130 const ConnectErrorCallback& error_callback); |
130 void OnPairError(const ConnectErrorCallback& error_callback, | 131 void OnPairError(const ConnectErrorCallback& error_callback, |
131 const std::string& error_name, | 132 const std::string& error_name, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // Note: This should remain the last member so it'll be destroyed and | 194 // Note: This should remain the last member so it'll be destroyed and |
194 // invalidate its weak pointers before any other members are destroyed. | 195 // invalidate its weak pointers before any other members are destroyed. |
195 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; | 196 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; |
196 | 197 |
197 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); | 198 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); |
198 }; | 199 }; |
199 | 200 |
200 } // namespace chromeos | 201 } // namespace chromeos |
201 | 202 |
202 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H | 203 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H |
OLD | NEW |