Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMEOS_DBUS_CONSOLE_SERVICE_CLIENT_H_ | |
| 6 #define CHROMEOS_DBUS_CONSOLE_SERVICE_CLIENT_H_ | |
| 7 | |
| 8 #include "base/observer_list.h" | |
| 9 #include "chromeos/chromeos_export.h" | |
| 10 #include "chromeos/dbus/dbus_client.h" | |
| 11 | |
| 12 namespace chromeos { | |
| 13 | |
| 14 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
| |
| 15 public: | |
| 16 class Observer { | |
| 17 public: | |
| 18 virtual void OnActivateConsole(int console_id) = 0; | |
| 19 | |
| 20 protected: | |
| 21 virtual ~Observer() {} | |
| 22 }; | |
| 23 | |
| 24 virtual void AddObserver(Observer* observer) = 0; | |
| 25 virtual void RemoveObserver(Observer* observer) = 0; | |
| 26 virtual bool HasObserver(Observer* observer) = 0; | |
| 27 | |
| 28 static ConsoleServiceClient* Create(); | |
| 29 static ConsoleServiceClient* GetInstance(); | |
| 30 virtual ~ConsoleServiceClient() override; | |
| 31 | |
| 32 protected: | |
| 33 ConsoleServiceClient(); | |
| 34 | |
| 35 private: | |
| 36 DISALLOW_COPY_AND_ASSIGN(ConsoleServiceClient); | |
| 37 }; | |
| 38 | |
| 39 } // namespace chromeos | |
| 40 | |
| 41 #endif // CHROMEOS_DBUS_CROS_CONSOLE_SERVICE_CLIENT_H_ | |
| OLD | NEW |