| Index: chrome/browser/chromeos/bluetooth/bluetooth_socket_chromeos.h
|
| diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_socket_chromeos.h b/chrome/browser/chromeos/bluetooth/bluetooth_socket_chromeos.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7d0328cc5fbc2b2e2c7d6def44a9d41053a4c0c7
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/bluetooth/bluetooth_socket_chromeos.h
|
| @@ -0,0 +1,40 @@
|
| +// 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 CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_
|
| +#define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "chrome/browser/chromeos/bluetooth/bluetooth_service_record.h"
|
| +#include "chrome/browser/chromeos/bluetooth/bluetooth_socket.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +// This class is an implementation of BluetoothSocket class for Chrome OS
|
| +// platform.
|
| +class BluetoothSocketChromeOs : public BluetoothSocket {
|
| + public:
|
| + static scoped_refptr<BluetoothSocket> CreateBluetoothSocket(
|
| + const BluetoothServiceRecord& service_record);
|
| +
|
| + // BluetoothSocket override
|
| + virtual int fd() const OVERRIDE;
|
| +
|
| + protected:
|
| + virtual ~BluetoothSocketChromeOs();
|
| +
|
| + private:
|
| + BluetoothSocketChromeOs(const std::string& address, int fd);
|
| +
|
| + const std::string address_;
|
| + const int fd_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOs);
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_
|
|
|