OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
11 #include "chrome/browser/browser_process_platform_part_base.h" | 11 #include "chrome/browser/browser_process_platform_part_base.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class CommandLine; | 14 class CommandLine; |
15 } | 15 } |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 class ChromeUserManager; | 18 class ChromeUserManager; |
19 class OomPriorityManager; | |
20 class ProfileHelper; | 19 class ProfileHelper; |
21 class TimeZoneResolver; | 20 class TimeZoneResolver; |
22 } | 21 } |
23 | 22 |
24 namespace chromeos { | 23 namespace chromeos { |
25 namespace system { | 24 namespace system { |
26 class AutomaticRebootManager; | 25 class AutomaticRebootManager; |
27 class DeviceDisablingManager; | 26 class DeviceDisablingManager; |
28 class DeviceDisablingManagerDefaultDelegate; | 27 class DeviceDisablingManagerDefaultDelegate; |
29 } | 28 } |
30 } | 29 } |
31 | 30 |
| 31 namespace memory { |
| 32 class OomPriorityManager; |
| 33 } |
| 34 |
32 namespace policy { | 35 namespace policy { |
33 class BrowserPolicyConnector; | 36 class BrowserPolicyConnector; |
34 class BrowserPolicyConnectorChromeOS; | 37 class BrowserPolicyConnectorChromeOS; |
35 } | 38 } |
36 | 39 |
37 namespace session_manager { | 40 namespace session_manager { |
38 class SessionManager; | 41 class SessionManager; |
39 } | 42 } |
40 | 43 |
41 class Profile; | 44 class Profile; |
(...skipping 22 matching lines...) Expand all Loading... |
64 // enrolled. | 67 // enrolled. |
65 void DisableDinoEasterEggIfEnrolled(); | 68 void DisableDinoEasterEggIfEnrolled(); |
66 | 69 |
67 // Returns the SessionManager instance that is used to initialize and | 70 // Returns the SessionManager instance that is used to initialize and |
68 // start user sessions as well as responsible on launching pre-session UI like | 71 // start user sessions as well as responsible on launching pre-session UI like |
69 // out-of-box or login. | 72 // out-of-box or login. |
70 virtual session_manager::SessionManager* SessionManager(); | 73 virtual session_manager::SessionManager* SessionManager(); |
71 | 74 |
72 // Returns the out-of-memory priority manager. | 75 // Returns the out-of-memory priority manager. |
73 // Virtual for testing (see TestingBrowserProcessPlatformPart). | 76 // Virtual for testing (see TestingBrowserProcessPlatformPart). |
74 virtual chromeos::OomPriorityManager* oom_priority_manager(); | 77 virtual memory::OomPriorityManager* oom_priority_manager(); |
75 | 78 |
76 // Returns the ProfileHelper instance that is used to identify | 79 // Returns the ProfileHelper instance that is used to identify |
77 // users and their profiles in Chrome OS multi user session. | 80 // users and their profiles in Chrome OS multi user session. |
78 chromeos::ProfileHelper* profile_helper(); | 81 chromeos::ProfileHelper* profile_helper(); |
79 | 82 |
80 chromeos::system::AutomaticRebootManager* automatic_reboot_manager() { | 83 chromeos::system::AutomaticRebootManager* automatic_reboot_manager() { |
81 return automatic_reboot_manager_.get(); | 84 return automatic_reboot_manager_.get(); |
82 } | 85 } |
83 | 86 |
84 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos(); | 87 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos(); |
(...skipping 15 matching lines...) Expand all Loading... |
100 override; | 103 override; |
101 | 104 |
102 private: | 105 private: |
103 void CreateProfileHelper(); | 106 void CreateProfileHelper(); |
104 | 107 |
105 scoped_ptr<session_manager::SessionManager> session_manager_; | 108 scoped_ptr<session_manager::SessionManager> session_manager_; |
106 | 109 |
107 bool created_profile_helper_; | 110 bool created_profile_helper_; |
108 scoped_ptr<chromeos::ProfileHelper> profile_helper_; | 111 scoped_ptr<chromeos::ProfileHelper> profile_helper_; |
109 | 112 |
110 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; | 113 scoped_ptr<memory::OomPriorityManager> oom_priority_manager_; |
111 | 114 |
112 scoped_ptr<chromeos::system::AutomaticRebootManager> | 115 scoped_ptr<chromeos::system::AutomaticRebootManager> |
113 automatic_reboot_manager_; | 116 automatic_reboot_manager_; |
114 | 117 |
115 scoped_ptr<chromeos::ChromeUserManager> chrome_user_manager_; | 118 scoped_ptr<chromeos::ChromeUserManager> chrome_user_manager_; |
116 | 119 |
117 scoped_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> | 120 scoped_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> |
118 device_disabling_manager_delegate_; | 121 device_disabling_manager_delegate_; |
119 scoped_ptr<chromeos::system::DeviceDisablingManager> | 122 scoped_ptr<chromeos::system::DeviceDisablingManager> |
120 device_disabling_manager_; | 123 device_disabling_manager_; |
121 | 124 |
122 scoped_ptr<chromeos::TimeZoneResolver> timezone_resolver_; | 125 scoped_ptr<chromeos::TimeZoneResolver> timezone_resolver_; |
123 | 126 |
124 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 127 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
125 }; | 128 }; |
126 | 129 |
127 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 130 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
OLD | NEW |