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

Unified Diff: device/bluetooth/dbus/bluez_dbus_client.h

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/dbus/bluez_dbus_client.h
diff --git a/chromeos/dbus/dbus_client.h b/device/bluetooth/dbus/bluez_dbus_client.h
similarity index 56%
copy from chromeos/dbus/dbus_client.h
copy to device/bluetooth/dbus/bluez_dbus_client.h
index d52de3e6591d7af3fcf0a2c7c70ce2d9d1385478..3dd09853d2c586820072c346ac92d534e7f5fb18 100644
--- a/chromeos/dbus/dbus_client.h
+++ b/device/bluetooth/dbus/bluez_dbus_client.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 CHROMEOS_DBUS_DBUS_CLIENT_H_
-#define CHROMEOS_DBUS_DBUS_CLIENT_H_
+#ifndef DEVICE_BLUETOOTH_DBUS_BLUEZ_DBUS_CLIENT_H_
+#define DEVICE_BLUETOOTH_DBUS_BLUEZ_DBUS_CLIENT_H_
#include "base/basictypes.h"
@@ -11,14 +11,15 @@ namespace dbus {
class Bus;
} // namespace dbus
-namespace chromeos {
+namespace bluez {
-// Interface for all DBus clients handled by DBusThreadManager. It restricts
-// access to the Init function to DBusThreadManager only to prevent
+// Interface for all Bluez DBus clients handled by BluezDBusManager. It
+// restricts
+// access to the Init function to BluezDBusManager only to prevent
// incorrect calls. Stub clients may lift that restriction however.
-class DBusClient {
+class BluezDBusClient {
protected:
- virtual ~DBusClient() {}
+ virtual ~BluezDBusClient() {}
// This function is called by DBusThreadManager. Only in unit tests, which
// don't use DBusThreadManager, this function can be called through Stub
@@ -26,11 +27,11 @@ class DBusClient {
virtual void Init(dbus::Bus* bus) = 0;
private:
- friend class DBusThreadManager;
+ friend class BluezDBusManager;
- DISALLOW_ASSIGN(DBusClient);
+ DISALLOW_ASSIGN(BluezDBusClient);
};
-} // namespace chromeos
+} // namespace bluez
-#endif // CHROMEOS_DBUS_DBUS_CLIENT_H_
+#endif // DEVICE_BLUETOOTH_DBUS_BLUEZ_DBUS_CLIENT_H_
« no previous file with comments | « device/bluetooth/dbus/bluetooth_profile_service_provider.cc ('k') | device/bluetooth/dbus/bluez_dbus_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698