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

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

Issue 11075006: Moved bluetooth adapter files to device/bluetooth/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renamed 'bluetooth' target to 'device_bluetooth'. Created 8 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_H_
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 9
10 namespace chromeos { 10 namespace device {
11 11
12 // BluetoothSocket represents a socket to a specific service on a 12 // BluetoothSocket represents a socket to a specific service on a
13 // BluetoothDevice. BluetoothSocket objects are ref counted and may outlive 13 // BluetoothDevice. BluetoothSocket objects are ref counted and may outlive
14 // both the BluetoothDevice and BluetoothAdapter that were involved in their 14 // both the BluetoothDevice and BluetoothAdapter that were involved in their
15 // creation. 15 // creation.
16 class BluetoothSocket : public base::RefCounted<BluetoothSocket> { 16 class BluetoothSocket : public base::RefCounted<BluetoothSocket> {
17 public: 17 public:
18 // TODO(youngki): Replace this with an opaque id when read/write calls are 18 // TODO(youngki): Replace this with an opaque id when read/write calls are
19 // added. This interface is platform-independent and file descriptor is 19 // added. This interface is platform-independent and file descriptor is
20 // linux-specific hence this method has to be renamed. 20 // linux-specific hence this method has to be renamed.
21 virtual int fd() const = 0; 21 virtual int fd() const = 0;
22 22
23 protected: 23 protected:
24 friend class base::RefCounted<BluetoothSocket>; 24 friend class base::RefCounted<BluetoothSocket>;
25 virtual ~BluetoothSocket() {} 25 virtual ~BluetoothSocket() {}
26 }; 26 };
27 27
28 } // namespace chromeos 28 } // namespace device
29 29
30 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_H_ 30 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698