summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/gsm_sms_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos/dbus/gsm_sms_client.h')
-rw-r--r--chromeos/dbus/gsm_sms_client.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/chromeos/dbus/gsm_sms_client.h b/chromeos/dbus/gsm_sms_client.h
index 4effeff..af30753 100644
--- a/chromeos/dbus/gsm_sms_client.h
+++ b/chromeos/dbus/gsm_sms_client.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "chromeos/chromeos_export.h"
+#include "chromeos/dbus/dbus_client.h"
#include "chromeos/dbus/dbus_client_implementation_type.h"
namespace base {
@@ -18,7 +19,6 @@ class ListValue;
}
namespace dbus {
-class Bus;
class ObjectPath;
}
@@ -28,7 +28,7 @@ namespace chromeos {
// org.freedesktop.ModemManager.Modem.Gsm.SMS service.
// All methods should be called from the origin thread (UI thread) which
// initializes the DBusThreadManager instance.
-class CHROMEOS_EXPORT GsmSMSClient {
+class CHROMEOS_EXPORT GsmSMSClient : public DBusClient {
public:
typedef base::Callback<void(uint32 index, bool complete)> SmsReceivedHandler;
typedef base::Callback<void()> DeleteCallback;
@@ -39,8 +39,7 @@ class CHROMEOS_EXPORT GsmSMSClient {
// Factory function, creates a new instance and returns ownership.
// For normal usage, access the singleton via DBusThreadManager::Get().
- static GsmSMSClient* Create(DBusClientImplementationType type,
- dbus::Bus* bus);
+ static GsmSMSClient* Create(DBusClientImplementationType type);
// Sets SmsReceived signal handler.
virtual void SetSmsReceivedHandler(const std::string& service_name,
@@ -74,6 +73,8 @@ class CHROMEOS_EXPORT GsmSMSClient {
const dbus::ObjectPath& object_path) = 0;
protected:
+ friend class GsmSMSClientTest;
+
// Create() should be used instead.
GsmSMSClient();