diff options
author | youngki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 22:15:23 +0000 |
---|---|---|
committer | youngki@chromium.org <youngki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 22:15:23 +0000 |
commit | cab208eb0702d3541a7fa430889c26a3d1182120 (patch) | |
tree | a5ddeb04c32edd7ca0288ea8614d33caf2bb01e1 /device/bluetooth/bluetooth_socket.h | |
parent | 2b392e59ab9a72858d224bad9e422fe40a696a69 (diff) | |
download | chromium_src-cab208eb0702d3541a7fa430889c26a3d1182120.zip chromium_src-cab208eb0702d3541a7fa430889c26a3d1182120.tar.gz chromium_src-cab208eb0702d3541a7fa430889c26a3d1182120.tar.bz2 |
Moved bluetooth adapter files from chrome/browser/chromeos/bluetooth/ to device/bluetooth/. device/bluetooth/ is a new directory to host the bluetooth related files.
I also changed the namespace from chromeos to bluetooth under new directory.
BUG=135470
Review URL: https://chromiumcodereview.appspot.com/11075006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth/bluetooth_socket.h')
-rw-r--r-- | device/bluetooth/bluetooth_socket.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_socket.h b/device/bluetooth/bluetooth_socket.h new file mode 100644 index 0000000..b444110 --- /dev/null +++ b/device/bluetooth/bluetooth_socket.h @@ -0,0 +1,30 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_H_ +#define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_H_ + +#include "base/memory/ref_counted.h" + +namespace device { + +// BluetoothSocket represents a socket to a specific service on a +// BluetoothDevice. BluetoothSocket objects are ref counted and may outlive +// both the BluetoothDevice and BluetoothAdapter that were involved in their +// creation. +class BluetoothSocket : public base::RefCounted<BluetoothSocket> { + public: + // TODO(youngki): Replace this with an opaque id when read/write calls are + // added. This interface is platform-independent and file descriptor is + // linux-specific hence this method has to be renamed. + virtual int fd() const = 0; + + protected: + friend class base::RefCounted<BluetoothSocket>; + virtual ~BluetoothSocket() {} +}; + +} // namespace device + +#endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_H_ |