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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
13 #include "chrome/browser/browser_process_platform_part_base.h" | 13 #include "chrome/browser/browser_process_platform_part_base.h" |
14 #include "chrome/browser/component_updater/cros_component_installer.h" | |
14 | 15 |
15 namespace chromeos { | 16 namespace chromeos { |
16 class ChromeSessionManager; | 17 class ChromeSessionManager; |
17 class ChromeUserManager; | 18 class ChromeUserManager; |
18 class ProfileHelper; | 19 class ProfileHelper; |
19 class TimeZoneResolver; | 20 class TimeZoneResolver; |
20 } | 21 } |
21 | 22 |
22 namespace chromeos { | 23 namespace chromeos { |
23 namespace system { | 24 namespace system { |
24 class AutomaticRebootManager; | 25 class AutomaticRebootManager; |
25 class DeviceDisablingManager; | 26 class DeviceDisablingManager; |
26 class DeviceDisablingManagerDefaultDelegate; | 27 class DeviceDisablingManagerDefaultDelegate; |
27 class SystemClock; | 28 class SystemClock; |
28 class TimeZoneResolverManager; | 29 class TimeZoneResolverManager; |
29 } | 30 } |
30 } | 31 } |
31 | 32 |
33 namespace component_updater { | |
34 class ComponentInstallerTraits; | |
35 class CrOSComponentInstaller; | |
36 } | |
37 | |
32 namespace policy { | 38 namespace policy { |
33 class BrowserPolicyConnector; | 39 class BrowserPolicyConnector; |
34 class BrowserPolicyConnectorChromeOS; | 40 class BrowserPolicyConnectorChromeOS; |
35 } | 41 } |
36 | 42 |
37 class ScopedKeepAlive; | 43 class ScopedKeepAlive; |
38 | 44 |
39 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase, | 45 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase, |
40 public base::NonThreadSafe { | 46 public base::NonThreadSafe { |
41 public: | 47 public: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 | 97 |
92 // Overridden from BrowserProcessPlatformPartBase: | 98 // Overridden from BrowserProcessPlatformPartBase: |
93 void StartTearDown() override; | 99 void StartTearDown() override; |
94 | 100 |
95 std::unique_ptr<policy::BrowserPolicyConnector> CreateBrowserPolicyConnector() | 101 std::unique_ptr<policy::BrowserPolicyConnector> CreateBrowserPolicyConnector() |
96 override; | 102 override; |
97 | 103 |
98 chromeos::system::SystemClock* GetSystemClock(); | 104 chromeos::system::SystemClock* GetSystemClock(); |
99 void DestroySystemClock(); | 105 void DestroySystemClock(); |
100 | 106 |
107 scoped_refptr<component_updater::CrOSComponentInstaller> | |
108 GetCrosComponentInstaller( | |
109 const std::string& name, | |
110 std::unique_ptr<component_updater::ComponentInstallerTraits> | |
111 installer_traits); | |
112 | |
101 private: | 113 private: |
102 void CreateProfileHelper(); | 114 void CreateProfileHelper(); |
103 | 115 |
104 std::unique_ptr<chromeos::ChromeSessionManager> session_manager_; | 116 std::unique_ptr<chromeos::ChromeSessionManager> session_manager_; |
105 | 117 |
106 bool created_profile_helper_; | 118 bool created_profile_helper_; |
107 std::unique_ptr<chromeos::ProfileHelper> profile_helper_; | 119 std::unique_ptr<chromeos::ProfileHelper> profile_helper_; |
108 | 120 |
109 std::unique_ptr<chromeos::system::AutomaticRebootManager> | 121 std::unique_ptr<chromeos::system::AutomaticRebootManager> |
110 automatic_reboot_manager_; | 122 automatic_reboot_manager_; |
111 | 123 |
112 std::unique_ptr<chromeos::ChromeUserManager> chrome_user_manager_; | 124 std::unique_ptr<chromeos::ChromeUserManager> chrome_user_manager_; |
113 | 125 |
114 std::unique_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> | 126 std::unique_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> |
115 device_disabling_manager_delegate_; | 127 device_disabling_manager_delegate_; |
116 std::unique_ptr<chromeos::system::DeviceDisablingManager> | 128 std::unique_ptr<chromeos::system::DeviceDisablingManager> |
117 device_disabling_manager_; | 129 device_disabling_manager_; |
118 | 130 |
119 std::unique_ptr<chromeos::system::TimeZoneResolverManager> | 131 std::unique_ptr<chromeos::system::TimeZoneResolverManager> |
120 timezone_resolver_manager_; | 132 timezone_resolver_manager_; |
121 std::unique_ptr<chromeos::TimeZoneResolver> timezone_resolver_; | 133 std::unique_ptr<chromeos::TimeZoneResolver> timezone_resolver_; |
122 | 134 |
123 std::unique_ptr<chromeos::system::SystemClock> system_clock_; | 135 std::unique_ptr<chromeos::system::SystemClock> system_clock_; |
124 | 136 |
125 std::unique_ptr<ScopedKeepAlive> keep_alive_; | 137 std::unique_ptr<ScopedKeepAlive> keep_alive_; |
126 | 138 |
139 std::map<std::string, | |
sky
2017/05/24 16:47:20
include <map> and <string>
xiaochu
2017/05/24 19:56:54
Done.
| |
140 scoped_refptr<component_updater::CrOSComponentInstaller>> | |
141 cros_component_installers_; | |
142 | |
127 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 143 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
128 }; | 144 }; |
129 | 145 |
130 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 146 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
OLD | NEW |