| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 MASH_SCREENLOCK_SCREENLOCK_H_ | |
| 6 #define MASH_SCREENLOCK_SCREENLOCK_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 #include <memory> | |
| 10 | |
| 11 #include "base/macros.h" | |
| 12 #include "mash/session/public/interfaces/session.mojom.h" | |
| 13 #include "mojo/public/cpp/bindings/binding_set.h" | |
| 14 #include "services/service_manager/public/cpp/service.h" | |
| 15 #include "services/tracing/public/cpp/provider.h" | |
| 16 | |
| 17 namespace views { | |
| 18 class AuraInit; | |
| 19 class WindowManagerConnection; | |
| 20 } | |
| 21 | |
| 22 namespace mash { | |
| 23 namespace screenlock { | |
| 24 | |
| 25 class Screenlock : public service_manager::Service, | |
| 26 public session::mojom::ScreenlockStateListener { | |
| 27 public: | |
| 28 Screenlock(); | |
| 29 ~Screenlock() override; | |
| 30 | |
| 31 private: | |
| 32 // service_manager::Service: | |
| 33 void OnStart() override; | |
| 34 bool OnConnect(const service_manager::ServiceInfo& remote_info, | |
| 35 service_manager::InterfaceRegistry* registry) override; | |
| 36 | |
| 37 // session::mojom::ScreenlockStateListener: | |
| 38 void ScreenlockStateChanged(bool locked) override; | |
| 39 | |
| 40 tracing::Provider tracing_; | |
| 41 std::unique_ptr<views::AuraInit> aura_init_; | |
| 42 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_; | |
| 43 mojo::BindingSet<session::mojom::ScreenlockStateListener> bindings_; | |
| 44 | |
| 45 DISALLOW_COPY_AND_ASSIGN(Screenlock); | |
| 46 }; | |
| 47 | |
| 48 } // namespace screenlock | |
| 49 } // namespace mash | |
| 50 | |
| 51 #endif // MASH_SCREENLOCK_SCREENLOCK_H_ | |
| OLD | NEW |