OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/session_manager/core/session_manager.h" | 9 #include "components/session_manager/core/session_manager.h" |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 class CommandLine; | 12 class CommandLine; |
13 } | 13 } |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 class ChromeSessionManager : public session_manager::SessionManager { | 19 class ChromeSessionManager : public session_manager::SessionManager { |
20 public: | 20 public: |
21 static std::unique_ptr<session_manager::SessionManager> CreateSessionManager( | 21 ChromeSessionManager(); |
22 const base::CommandLine& parsed_command_line, | 22 ~ChromeSessionManager() override; |
23 Profile* profile, | |
24 bool is_running_test); | |
25 | 23 |
26 private: | 24 // Initialize and start user sessions as well as responsible on launching |
achuithb
2016/10/27 19:12:45
The grammar here isn't quite right. I don't quite
xiyuan
2016/10/27 21:10:43
Copy-n-pasted from existing BrowserProcessPlatform
| |
27 explicit ChromeSessionManager( | 25 // pre-session UI like out-of-box or login. |
28 session_manager::SessionManagerDelegate* delegate); | 26 void Initialize(const base::CommandLine& parsed_command_line, |
29 ~ChromeSessionManager() override; | 27 Profile* profile, |
28 bool is_running_test); | |
30 | 29 |
31 // session_manager::SessionManager: | 30 // session_manager::SessionManager: |
32 void SessionStarted() override; | 31 void SessionStarted() override; |
33 | 32 |
33 private: | |
34 DISALLOW_COPY_AND_ASSIGN(ChromeSessionManager); | 34 DISALLOW_COPY_AND_ASSIGN(ChromeSessionManager); |
35 }; | 35 }; |
36 | 36 |
37 } // namespace chromeos | 37 } // namespace chromeos |
38 | 38 |
39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_ | 39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_ |
OLD | NEW |