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" |
11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
12 #include "chrome/browser/browser_process_platform_part_base.h" | 12 #include "chrome/browser/browser_process_platform_part_base.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class CommandLine; | 15 class CommandLine; |
16 } | 16 } |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 class ChromeUserManager; | 19 class ChromeUserManager; |
20 class ProfileHelper; | 20 class ProfileHelper; |
21 class TimeZoneResolver; | 21 class TimeZoneResolver; |
22 } | 22 } |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 namespace system { | 25 namespace system { |
26 class AutomaticRebootManager; | 26 class AutomaticRebootManager; |
27 class DeviceDisablingManager; | 27 class DeviceDisablingManager; |
28 class DeviceDisablingManagerDefaultDelegate; | 28 class DeviceDisablingManagerDefaultDelegate; |
29 class SystemClock; | 29 class SystemClock; |
| 30 class TimeZoneResolverManager; |
30 } | 31 } |
31 } | 32 } |
32 | 33 |
33 namespace policy { | 34 namespace policy { |
34 class BrowserPolicyConnector; | 35 class BrowserPolicyConnector; |
35 class BrowserPolicyConnectorChromeOS; | 36 class BrowserPolicyConnectorChromeOS; |
36 } | 37 } |
37 | 38 |
38 namespace session_manager { | 39 namespace session_manager { |
39 class SessionManager; | 40 class SessionManager; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos(); | 88 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos(); |
88 | 89 |
89 chromeos::ChromeUserManager* user_manager() { | 90 chromeos::ChromeUserManager* user_manager() { |
90 return chrome_user_manager_.get(); | 91 return chrome_user_manager_.get(); |
91 } | 92 } |
92 | 93 |
93 chromeos::system::DeviceDisablingManager* device_disabling_manager() { | 94 chromeos::system::DeviceDisablingManager* device_disabling_manager() { |
94 return device_disabling_manager_.get(); | 95 return device_disabling_manager_.get(); |
95 } | 96 } |
96 | 97 |
| 98 chromeos::system::TimeZoneResolverManager* GetTimezoneResolverManager(); |
| 99 |
97 chromeos::TimeZoneResolver* GetTimezoneResolver(); | 100 chromeos::TimeZoneResolver* GetTimezoneResolver(); |
98 | 101 |
99 // Overridden from BrowserProcessPlatformPartBase: | 102 // Overridden from BrowserProcessPlatformPartBase: |
100 void StartTearDown() override; | 103 void StartTearDown() override; |
101 | 104 |
102 scoped_ptr<policy::BrowserPolicyConnector> CreateBrowserPolicyConnector() | 105 scoped_ptr<policy::BrowserPolicyConnector> CreateBrowserPolicyConnector() |
103 override; | 106 override; |
104 | 107 |
105 chromeos::system::SystemClock* GetSystemClock(); | 108 chromeos::system::SystemClock* GetSystemClock(); |
106 | 109 |
107 private: | 110 private: |
108 void CreateProfileHelper(); | 111 void CreateProfileHelper(); |
109 | 112 |
110 scoped_ptr<session_manager::SessionManager> session_manager_; | 113 scoped_ptr<session_manager::SessionManager> session_manager_; |
111 | 114 |
112 bool created_profile_helper_; | 115 bool created_profile_helper_; |
113 scoped_ptr<chromeos::ProfileHelper> profile_helper_; | 116 scoped_ptr<chromeos::ProfileHelper> profile_helper_; |
114 | 117 |
115 scoped_ptr<chromeos::system::AutomaticRebootManager> | 118 scoped_ptr<chromeos::system::AutomaticRebootManager> |
116 automatic_reboot_manager_; | 119 automatic_reboot_manager_; |
117 | 120 |
118 scoped_ptr<chromeos::ChromeUserManager> chrome_user_manager_; | 121 scoped_ptr<chromeos::ChromeUserManager> chrome_user_manager_; |
119 | 122 |
120 scoped_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> | 123 scoped_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> |
121 device_disabling_manager_delegate_; | 124 device_disabling_manager_delegate_; |
122 scoped_ptr<chromeos::system::DeviceDisablingManager> | 125 scoped_ptr<chromeos::system::DeviceDisablingManager> |
123 device_disabling_manager_; | 126 device_disabling_manager_; |
124 | 127 |
| 128 scoped_ptr<chromeos::system::TimeZoneResolverManager> |
| 129 timezone_resolver_manager_; |
125 scoped_ptr<chromeos::TimeZoneResolver> timezone_resolver_; | 130 scoped_ptr<chromeos::TimeZoneResolver> timezone_resolver_; |
126 | 131 |
127 scoped_ptr<chromeos::system::SystemClock> system_clock_; | 132 scoped_ptr<chromeos::system::SystemClock> system_clock_; |
128 | 133 |
129 scoped_ptr<ScopedKeepAlive> keep_alive_; | 134 scoped_ptr<ScopedKeepAlive> keep_alive_; |
130 | 135 |
131 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 136 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
132 }; | 137 }; |
133 | 138 |
134 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 139 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
OLD | NEW |