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

Side by Side Diff: device/bluetooth/bluetooth_device_chromeos.h

Issue 333983003: device/bluetooth: Implement BluetoothGattConnection on Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_device_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_device_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698