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

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

Issue 336933002: device/bluetooth: Introduce BluetoothGattConnection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GattConnectionCallback now takes in a scoped_ptr 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void RejectPairing() OVERRIDE; 64 virtual void RejectPairing() OVERRIDE;
65 virtual void CancelPairing() OVERRIDE; 65 virtual void CancelPairing() OVERRIDE;
66 virtual void Disconnect( 66 virtual void Disconnect(
67 const base::Closure& callback, 67 const base::Closure& callback,
68 const ErrorCallback& error_callback) OVERRIDE; 68 const ErrorCallback& error_callback) OVERRIDE;
69 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; 69 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE;
70 virtual void ConnectToService( 70 virtual void ConnectToService(
71 const device::BluetoothUUID& uuid, 71 const device::BluetoothUUID& uuid,
72 const ConnectToServiceCallback& callback, 72 const ConnectToServiceCallback& callback,
73 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; 73 const ConnectToServiceErrorCallback& error_callback) OVERRIDE;
74 virtual void CreateGattConnection(
75 const GattConnectionCallback& callback,
76 const ConnectErrorCallback& error_callback) OVERRIDE;
74 virtual void StartConnectionMonitor( 77 virtual void StartConnectionMonitor(
75 const base::Closure& callback, 78 const base::Closure& callback,
76 const ErrorCallback& error_callback) OVERRIDE; 79 const ErrorCallback& error_callback) OVERRIDE;
77 80
78 // Creates a pairing object with the given delegate |pairing_delegate| and 81 // Creates a pairing object with the given delegate |pairing_delegate| and
79 // establishes it as the pairing context for this device. All pairing-related 82 // establishes it as the pairing context for this device. All pairing-related
80 // method calls will be forwarded to this object until it is released. 83 // method calls will be forwarded to this object until it is released.
81 BluetoothPairingChromeOS* BeginPairing( 84 BluetoothPairingChromeOS* BeginPairing(
82 BluetoothDevice::PairingDelegate* pairing_delegate); 85 BluetoothDevice::PairingDelegate* pairing_delegate);
83 86
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Note: This should remain the last member so it'll be destroyed and 193 // Note: This should remain the last member so it'll be destroyed and
191 // invalidate its weak pointers before any other members are destroyed. 194 // invalidate its weak pointers before any other members are destroyed.
192 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; 195 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_;
193 196
194 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); 197 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS);
195 }; 198 };
196 199
197 } // namespace chromeos 200 } // namespace chromeos
198 201
199 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H 202 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698