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

Unified Diff: device/bluetooth/bluetooth_socket_thread.h

Issue 267633003: Reimplement BluetoothSocketChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_socket_thread.h
diff --git a/device/bluetooth/bluetooth_socket_thread_win.h b/device/bluetooth/bluetooth_socket_thread.h
similarity index 51%
rename from device/bluetooth/bluetooth_socket_thread_win.h
rename to device/bluetooth/bluetooth_socket_thread.h
index 063ebbbeed0f3ea88aec65e7111b566121fc80ca..7be6b3ae5f0c218f0fb4a435e0533f1930eec137 100644
--- a/device/bluetooth/bluetooth_socket_thread_win.h
+++ b/device/bluetooth/bluetooth_socket_thread.h
@@ -2,8 +2,8 @@
// 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_THREAD_WIN_H_
-#define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_THREAD_WIN_H_
+#ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_THREAD_H_
+#define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_THREAD_H_
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -16,22 +16,22 @@ class Thread;
namespace device {
-// Thread abstraction used by |BluetoothSocketWWin| to perform IO operations on
-// the underlying platform sockets. An instance of this class can be shared by
-// many active sockets.
-class BluetoothSocketThreadWin
- : public base::RefCountedThreadSafe<BluetoothSocketThreadWin> {
+// Thread abstraction used by |BluetoothSocketChromeOS| and |BluetoothSocketWin|
+// to perform IO operations on the underlying platform sockets. An instance of
+// this class can be shared by many active sockets.
+class BluetoothSocketThread
+ : public base::RefCountedThreadSafe<BluetoothSocketThread> {
public:
- static scoped_refptr<BluetoothSocketThreadWin> Get();
+ static scoped_refptr<BluetoothSocketThread> Get();
void OnSocketActivate();
void OnSocketDeactivate();
scoped_refptr<base::SequencedTaskRunner> task_runner() const;
private:
- friend class base::RefCountedThreadSafe<BluetoothSocketThreadWin>;
- BluetoothSocketThreadWin();
- virtual ~BluetoothSocketThreadWin();
+ friend class base::RefCountedThreadSafe<BluetoothSocketThread>;
+ BluetoothSocketThread();
+ virtual ~BluetoothSocketThread();
void EnsureStarted();
@@ -40,9 +40,9 @@ class BluetoothSocketThreadWin
scoped_ptr<base::Thread> thread_;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
- DISALLOW_COPY_AND_ASSIGN(BluetoothSocketThreadWin);
+ DISALLOW_COPY_AND_ASSIGN(BluetoothSocketThread);
};
} // namespace device
-#endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_THREAD_WIN_H_
+#endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_THREAD_H_

Powered by Google App Engine
This is Rietveld 408576698