| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MASH_SESSION_SESSION_H_ | 5 #ifndef MASH_SESSION_SESSION_H_ |
| 6 #define MASH_SESSION_SESSION_H_ | 6 #define MASH_SESSION_SESSION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void AddScreenlockStateListener( | 42 void AddScreenlockStateListener( |
| 43 mojom::ScreenlockStateListenerPtr listener) override; | 43 mojom::ScreenlockStateListenerPtr listener) override; |
| 44 void LockScreen() override; | 44 void LockScreen() override; |
| 45 void UnlockScreen() override; | 45 void UnlockScreen() override; |
| 46 | 46 |
| 47 // service_manager::InterfaceFactory<mojom::Session>: | 47 // service_manager::InterfaceFactory<mojom::Session>: |
| 48 void Create(const service_manager::Identity& remote_identity, | 48 void Create(const service_manager::Identity& remote_identity, |
| 49 mojom::SessionRequest request) override; | 49 mojom::SessionRequest request) override; |
| 50 | 50 |
| 51 void StartWindowManager(); | 51 void StartWindowManager(); |
| 52 void StartAppDriver(); | |
| 53 void StartQuickLaunch(); | 52 void StartQuickLaunch(); |
| 54 | 53 |
| 55 void StartScreenlock(); | 54 void StartScreenlock(); |
| 56 void StopScreenlock(); | 55 void StopScreenlock(); |
| 57 | 56 |
| 58 // Starts the application at |url|, running |restart_callback| if the | 57 // Starts the application at |url|, running |restart_callback| if the |
| 59 // connection to the application is closed. | 58 // connection to the application is closed. |
| 60 void StartRestartableService(const std::string& url, | 59 void StartRestartableService(const std::string& url, |
| 61 const base::Closure& restart_callback); | 60 const base::Closure& restart_callback); |
| 62 | 61 |
| 63 std::map<std::string, std::unique_ptr<service_manager::Connection>> | 62 std::map<std::string, std::unique_ptr<service_manager::Connection>> |
| 64 connections_; | 63 connections_; |
| 65 bool screen_locked_; | 64 bool screen_locked_; |
| 66 mojo::BindingSet<mojom::Session> bindings_; | 65 mojo::BindingSet<mojom::Session> bindings_; |
| 67 mojo::InterfacePtrSet<mojom::ScreenlockStateListener> screenlock_listeners_; | 66 mojo::InterfacePtrSet<mojom::ScreenlockStateListener> screenlock_listeners_; |
| 68 | 67 |
| 69 DISALLOW_COPY_AND_ASSIGN(Session); | 68 DISALLOW_COPY_AND_ASSIGN(Session); |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace session | 71 } // namespace session |
| 73 } // namespace mash | 72 } // namespace mash |
| 74 | 73 |
| 75 #endif // MASH_SESSION_SESSION_H_ | 74 #endif // MASH_SESSION_SESSION_H_ |
| OLD | NEW |