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/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 namespace policy { | 33 namespace policy { |
34 class BrowserPolicyConnector; | 34 class BrowserPolicyConnector; |
35 class BrowserPolicyConnectorChromeOS; | 35 class BrowserPolicyConnectorChromeOS; |
36 } | 36 } |
37 | 37 |
38 namespace session_manager { | 38 namespace session_manager { |
39 class SessionManager; | 39 class SessionManager; |
40 } | 40 } |
41 | 41 |
42 class Profile; | 42 class Profile; |
| 43 class ScopedKeepAlive; |
43 | 44 |
44 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase, | 45 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase, |
45 public base::NonThreadSafe { | 46 public base::NonThreadSafe { |
46 public: | 47 public: |
47 BrowserProcessPlatformPart(); | 48 BrowserProcessPlatformPart(); |
48 ~BrowserProcessPlatformPart() override; | 49 ~BrowserProcessPlatformPart() override; |
49 | 50 |
50 void InitializeAutomaticRebootManager(); | 51 void InitializeAutomaticRebootManager(); |
51 void ShutdownAutomaticRebootManager(); | 52 void ShutdownAutomaticRebootManager(); |
52 | 53 |
(...skipping 10 matching lines...) Expand all Loading... |
63 | 64 |
64 // Disable the offline interstitial easter egg if the device is enterprise | 65 // Disable the offline interstitial easter egg if the device is enterprise |
65 // enrolled. | 66 // enrolled. |
66 void DisableDinoEasterEggIfEnrolled(); | 67 void DisableDinoEasterEggIfEnrolled(); |
67 | 68 |
68 // Returns the SessionManager instance that is used to initialize and | 69 // Returns the SessionManager instance that is used to initialize and |
69 // start user sessions as well as responsible on launching pre-session UI like | 70 // start user sessions as well as responsible on launching pre-session UI like |
70 // out-of-box or login. | 71 // out-of-box or login. |
71 virtual session_manager::SessionManager* SessionManager(); | 72 virtual session_manager::SessionManager* SessionManager(); |
72 | 73 |
| 74 void RegisterKeepAlive(); |
| 75 void UnregisterKeepAlive(); |
| 76 |
73 // Returns the ProfileHelper instance that is used to identify | 77 // Returns the ProfileHelper instance that is used to identify |
74 // users and their profiles in Chrome OS multi user session. | 78 // users and their profiles in Chrome OS multi user session. |
75 chromeos::ProfileHelper* profile_helper(); | 79 chromeos::ProfileHelper* profile_helper(); |
76 | 80 |
77 chromeos::system::AutomaticRebootManager* automatic_reboot_manager() { | 81 chromeos::system::AutomaticRebootManager* automatic_reboot_manager() { |
78 return automatic_reboot_manager_.get(); | 82 return automatic_reboot_manager_.get(); |
79 } | 83 } |
80 | 84 |
81 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos(); | 85 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos(); |
82 | 86 |
(...skipping 30 matching lines...) Expand all Loading... |
113 | 117 |
114 scoped_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> | 118 scoped_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> |
115 device_disabling_manager_delegate_; | 119 device_disabling_manager_delegate_; |
116 scoped_ptr<chromeos::system::DeviceDisablingManager> | 120 scoped_ptr<chromeos::system::DeviceDisablingManager> |
117 device_disabling_manager_; | 121 device_disabling_manager_; |
118 | 122 |
119 scoped_ptr<chromeos::TimeZoneResolver> timezone_resolver_; | 123 scoped_ptr<chromeos::TimeZoneResolver> timezone_resolver_; |
120 | 124 |
121 scoped_ptr<chromeos::system::SystemClock> system_clock_; | 125 scoped_ptr<chromeos::system::SystemClock> system_clock_; |
122 | 126 |
| 127 scoped_ptr<ScopedKeepAlive> keep_alive_; |
| 128 |
123 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 129 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
124 }; | 130 }; |
125 | 131 |
126 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 132 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
OLD | NEW |