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_experimental_chromeos.h

Issue 13862023: Add abstract BluetoothProfile class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add constructor and destructor for Options Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_EXPERIMENTAL_CHROMEOS_H 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void ConfirmPairing() OVERRIDE; 51 virtual void ConfirmPairing() OVERRIDE;
52 virtual void RejectPairing() OVERRIDE; 52 virtual void RejectPairing() OVERRIDE;
53 virtual void CancelPairing() OVERRIDE; 53 virtual void CancelPairing() OVERRIDE;
54 virtual void Disconnect( 54 virtual void Disconnect(
55 const base::Closure& callback, 55 const base::Closure& callback,
56 const ErrorCallback& error_callback) OVERRIDE; 56 const ErrorCallback& error_callback) OVERRIDE;
57 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; 57 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE;
58 virtual void ConnectToService( 58 virtual void ConnectToService(
59 const std::string& service_uuid, 59 const std::string& service_uuid,
60 const SocketCallback& callback) OVERRIDE; 60 const SocketCallback& callback) OVERRIDE;
61 virtual void ConnectToProfile(
62 device::BluetoothProfile* profile,
63 const ErrorCallback& error_callback) OVERRIDE;
61 virtual void SetOutOfBandPairingData( 64 virtual void SetOutOfBandPairingData(
62 const device::BluetoothOutOfBandPairingData& data, 65 const device::BluetoothOutOfBandPairingData& data,
63 const base::Closure& callback, 66 const base::Closure& callback,
64 const ErrorCallback& error_callback) OVERRIDE; 67 const ErrorCallback& error_callback) OVERRIDE;
65 virtual void ClearOutOfBandPairingData( 68 virtual void ClearOutOfBandPairingData(
66 const base::Closure& callback, 69 const base::Closure& callback,
67 const ErrorCallback& error_callback) OVERRIDE; 70 const ErrorCallback& error_callback) OVERRIDE;
68 71
69 protected: 72 protected:
70 // BluetoothDevice override 73 // BluetoothDevice override
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // Note: This should remain the last member so it'll be destroyed and 198 // Note: This should remain the last member so it'll be destroyed and
196 // invalidate its weak pointers before any other members are destroyed. 199 // invalidate its weak pointers before any other members are destroyed.
197 base::WeakPtrFactory<BluetoothDeviceExperimentalChromeOS> weak_ptr_factory_; 200 base::WeakPtrFactory<BluetoothDeviceExperimentalChromeOS> weak_ptr_factory_;
198 201
199 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceExperimentalChromeOS); 202 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceExperimentalChromeOS);
200 }; 203 };
201 204
202 } // namespace chromeos 205 } // namespace chromeos
203 206
204 #endif /* DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H */ 207 #endif /* DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H */
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_chromeos.cc ('k') | device/bluetooth/bluetooth_device_experimental_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698