| 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 12 matching lines...) Expand all Loading... |
| 23 namespace session { | 23 namespace session { |
| 24 | 24 |
| 25 class Session : public service_manager::Service { | 25 class Session : public service_manager::Service { |
| 26 public: | 26 public: |
| 27 Session(); | 27 Session(); |
| 28 ~Session() override; | 28 ~Session() override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 // service_manager::Service: | 31 // service_manager::Service: |
| 32 void OnStart() override; | 32 void OnStart() override; |
| 33 bool OnConnect(const service_manager::ServiceInfo& remote_info, | |
| 34 service_manager::InterfaceRegistry* registry) override; | |
| 35 | 33 |
| 36 void StartWindowManager(); | 34 void StartWindowManager(); |
| 37 void StartQuickLaunch(); | 35 void StartQuickLaunch(); |
| 38 | 36 |
| 39 // Starts the application at |url|, running |restart_callback| if the | 37 // Starts the application at |url|, running |restart_callback| if the |
| 40 // connection to the application is closed. | 38 // connection to the application is closed. |
| 41 void StartRestartableService(const std::string& url, | 39 void StartRestartableService(const std::string& url, |
| 42 const base::Closure& restart_callback); | 40 const base::Closure& restart_callback); |
| 43 | 41 |
| 44 std::map<std::string, std::unique_ptr<service_manager::Connection>> | 42 std::map<std::string, std::unique_ptr<service_manager::Connection>> |
| 45 connections_; | 43 connections_; |
| 46 | 44 |
| 47 DISALLOW_COPY_AND_ASSIGN(Session); | 45 DISALLOW_COPY_AND_ASSIGN(Session); |
| 48 }; | 46 }; |
| 49 | 47 |
| 50 } // namespace session | 48 } // namespace session |
| 51 } // namespace mash | 49 } // namespace mash |
| 52 | 50 |
| 53 #endif // MASH_SESSION_SESSION_H_ | 51 #endif // MASH_SESSION_SESSION_H_ |
| OLD | NEW |