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

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

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address code review feedback, simplify threading model. Created 6 years, 8 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
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/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void Disconnect( 56 virtual void Disconnect(
57 const base::Closure& callback, 57 const base::Closure& callback,
58 const ErrorCallback& error_callback) OVERRIDE; 58 const ErrorCallback& error_callback) OVERRIDE;
59 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; 59 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE;
60 virtual void ConnectToService( 60 virtual void ConnectToService(
61 const std::string& service_uuid, 61 const std::string& service_uuid,
62 const SocketCallback& callback) OVERRIDE; 62 const SocketCallback& callback) OVERRIDE;
63 virtual void ConnectToProfile( 63 virtual void ConnectToProfile(
64 device::BluetoothProfile* profile, 64 device::BluetoothProfile* profile,
65 const base::Closure& callback, 65 const base::Closure& callback,
66 const ErrorCallback& error_callback) OVERRIDE; 66 const ConnectToProfileErrorCallback& error_callback) OVERRIDE;
67 virtual void SetOutOfBandPairingData( 67 virtual void SetOutOfBandPairingData(
68 const device::BluetoothOutOfBandPairingData& data, 68 const device::BluetoothOutOfBandPairingData& data,
69 const base::Closure& callback, 69 const base::Closure& callback,
70 const ErrorCallback& error_callback) OVERRIDE; 70 const ErrorCallback& error_callback) OVERRIDE;
71 virtual void ClearOutOfBandPairingData( 71 virtual void ClearOutOfBandPairingData(
72 const base::Closure& callback, 72 const base::Closure& callback,
73 const ErrorCallback& error_callback) OVERRIDE; 73 const ErrorCallback& error_callback) OVERRIDE;
74 74
75 // Creates a pairing object with the given delegate |pairing_delegate| and 75 // Creates a pairing object with the given delegate |pairing_delegate| and
76 // establishes it as the pairing context for this device. All pairing-related 76 // establishes it as the pairing context for this device. All pairing-related
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Note: This should remain the last member so it'll be destroyed and 171 // Note: This should remain the last member so it'll be destroyed and
172 // invalidate its weak pointers before any other members are destroyed. 172 // invalidate its weak pointers before any other members are destroyed.
173 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; 173 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); 175 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS);
176 }; 176 };
177 177
178 } // namespace chromeos 178 } // namespace chromeos
179 179
180 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H 180 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698