Refactoring : Move AuthAttempt and Authenticators to chromeos/login
[chromium-blink-merge.git] / chrome / browser / browser_process_platform_part_chromeos.h
blob8fe87aaadece65554bc423502cd90ffacd3f063c
1 // Copyright (c) 2013 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.
5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/threading/non_thread_safe.h"
11 #include "chrome/browser/browser_process_platform_part_base.h"
13 namespace base {
14 class CommandLine;
17 namespace chromeos {
18 class OomPriorityManager;
19 class ProfileHelper;
22 namespace chromeos {
23 namespace system {
24 class AutomaticRebootManager;
28 namespace policy {
29 class BrowserPolicyConnector;
30 class BrowserPolicyConnectorChromeOS;
33 namespace session_manager {
34 class SessionManager;
37 class Profile;
39 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
40 public base::NonThreadSafe {
41 public:
42 BrowserProcessPlatformPart();
43 virtual ~BrowserProcessPlatformPart();
45 void InitializeAutomaticRebootManager();
46 void ShutdownAutomaticRebootManager();
48 void InitializeSessionManager(const base::CommandLine& parsed_command_line,
49 Profile* profile,
50 bool is_running_test);
51 void ShutdownSessionManager();
53 // Returns the SessionManager instance that is used to initialize and
54 // start user sessions as well as responsible on launching pre-session UI like
55 // out-of-box or login.
56 virtual session_manager::SessionManager* SessionManager();
58 // Returns the out-of-memory priority manager.
59 // Virtual for testing (see TestingBrowserProcessPlatformPart).
60 virtual chromeos::OomPriorityManager* oom_priority_manager();
62 // Returns the ProfileHelper instance that is used to identify
63 // users and their profiles in Chrome OS multi user session.
64 chromeos::ProfileHelper* profile_helper();
66 chromeos::system::AutomaticRebootManager* automatic_reboot_manager() {
67 return automatic_reboot_manager_.get();
70 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos();
72 // Overridden from BrowserProcessPlatformPartBase:
73 virtual void StartTearDown() OVERRIDE;
75 virtual scoped_ptr<policy::BrowserPolicyConnector>
76 CreateBrowserPolicyConnector() OVERRIDE;
78 private:
79 void CreateProfileHelper();
81 scoped_ptr<session_manager::SessionManager> session_manager_;
83 bool created_profile_helper_;
84 scoped_ptr<chromeos::ProfileHelper> profile_helper_;
86 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_;
88 scoped_ptr<chromeos::system::AutomaticRebootManager>
89 automatic_reboot_manager_;
91 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
94 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_