Index: chromeos/dbus/console_service_client.h |
diff --git a/chromeos/dbus/console_service_client.h b/chromeos/dbus/console_service_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..243280d89f75ee73e1b37cba4163811620912cb4 |
--- /dev/null |
+++ b/chromeos/dbus/console_service_client.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2014 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 CHROMEOS_DBUS_CONSOLE_SERVICE_CLIENT_H_ |
+#define CHROMEOS_DBUS_CONSOLE_SERVICE_CLIENT_H_ |
+ |
+#include "base/observer_list.h" |
+#include "chromeos/chromeos_export.h" |
+#include "chromeos/dbus/dbus_client.h" |
+ |
+namespace chromeos { |
+ |
+class CHROMEOS_EXPORT ConsoleServiceClient : public DBusClient { |
Daniel Erat
2014/10/31 18:15:02
should this be named ConsoleServiceProvider?
i th
dsodman
2014/10/31 18:43:25
I think that is a much bigger change than what I'm
|
+ public: |
+ class Observer { |
+ public: |
+ virtual void OnActivateConsole(int console_id) = 0; |
+ |
+ protected: |
+ virtual ~Observer() {} |
+ }; |
+ |
+ virtual void AddObserver(Observer* observer) = 0; |
+ virtual void RemoveObserver(Observer* observer) = 0; |
+ virtual bool HasObserver(Observer* observer) = 0; |
+ |
+ static ConsoleServiceClient* Create(); |
+ static ConsoleServiceClient* GetInstance(); |
+ virtual ~ConsoleServiceClient() override; |
+ |
+ protected: |
+ ConsoleServiceClient(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ConsoleServiceClient); |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROMEOS_DBUS_CROS_CONSOLE_SERVICE_CLIENT_H_ |