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

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

Issue 14487002: Bluetooth: Profile support for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle EINTR. Detect disconnection during Receive and Send Created 7 years, 7 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_PROFILE_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // to this callback. 92 // to this callback.
93 // 93 //
94 // The socket will be closed when all references are released; none of the 94 // The socket will be closed when all references are released; none of the
95 // BluetoothProfile, or BluetoothAdapter or BluetoothDevice objects are 95 // BluetoothProfile, or BluetoothAdapter or BluetoothDevice objects are
96 // guaranteed to hold a reference so this may outlive all of them. 96 // guaranteed to hold a reference so this may outlive all of them.
97 typedef base::Callback<void( 97 typedef base::Callback<void(
98 const BluetoothDevice*, 98 const BluetoothDevice*,
99 scoped_refptr<BluetoothSocket>)> ConnectionCallback; 99 scoped_refptr<BluetoothSocket>)> ConnectionCallback;
100 virtual void SetConnectionCallback(const ConnectionCallback& callback) = 0; 100 virtual void SetConnectionCallback(const ConnectionCallback& callback) = 0;
101 101
102 private: 102 protected:
103 friend class BluetoothProfileMac;
104 friend class MockBluetoothProfile;
105
106 BluetoothProfile(); 103 BluetoothProfile();
107 virtual ~BluetoothProfile(); 104 virtual ~BluetoothProfile();
108 }; 105 };
109 106
110 } // namespace device 107 } // namespace device
111 108
112 #endif // DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_H_ 109 #endif // DEVICE_BLUETOOTH_BLUETOOTH_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698