Chromium Code Reviews| 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 #include <string> | |
| 10 #include <vector> | |
| 9 | 11 |
| 10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 13 #include "base/macros.h" |
| 12 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
| 13 #include "chrome/browser/browser_process_platform_part_base.h" | 15 #include "chrome/browser/browser_process_platform_part_base.h" |
| 14 | 16 |
| 15 namespace chromeos { | 17 namespace chromeos { |
| 16 class ChromeSessionManager; | 18 class ChromeSessionManager; |
| 17 class ChromeUserManager; | 19 class ChromeUserManager; |
| 18 class ProfileHelper; | 20 class ProfileHelper; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 | 93 |
| 92 // Overridden from BrowserProcessPlatformPartBase: | 94 // Overridden from BrowserProcessPlatformPartBase: |
| 93 void StartTearDown() override; | 95 void StartTearDown() override; |
| 94 | 96 |
| 95 std::unique_ptr<policy::BrowserPolicyConnector> CreateBrowserPolicyConnector() | 97 std::unique_ptr<policy::BrowserPolicyConnector> CreateBrowserPolicyConnector() |
| 96 override; | 98 override; |
| 97 | 99 |
| 98 chromeos::system::SystemClock* GetSystemClock(); | 100 chromeos::system::SystemClock* GetSystemClock(); |
| 99 void DestroySystemClock(); | 101 void DestroySystemClock(); |
| 100 | 102 |
| 103 void AddCompatibleCrOSComponent(const std::string& name); | |
| 104 | |
| 105 bool IsCompatibleCrOSComponent(const std::string& name); | |
| 106 | |
| 101 private: | 107 private: |
| 102 void CreateProfileHelper(); | 108 void CreateProfileHelper(); |
| 103 | 109 |
| 104 std::unique_ptr<chromeos::ChromeSessionManager> session_manager_; | 110 std::unique_ptr<chromeos::ChromeSessionManager> session_manager_; |
| 105 | 111 |
| 106 bool created_profile_helper_; | 112 bool created_profile_helper_; |
| 107 std::unique_ptr<chromeos::ProfileHelper> profile_helper_; | 113 std::unique_ptr<chromeos::ProfileHelper> profile_helper_; |
| 108 | 114 |
| 109 std::unique_ptr<chromeos::system::AutomaticRebootManager> | 115 std::unique_ptr<chromeos::system::AutomaticRebootManager> |
| 110 automatic_reboot_manager_; | 116 automatic_reboot_manager_; |
| 111 | 117 |
| 112 std::unique_ptr<chromeos::ChromeUserManager> chrome_user_manager_; | 118 std::unique_ptr<chromeos::ChromeUserManager> chrome_user_manager_; |
| 113 | 119 |
| 114 std::unique_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> | 120 std::unique_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> |
| 115 device_disabling_manager_delegate_; | 121 device_disabling_manager_delegate_; |
| 116 std::unique_ptr<chromeos::system::DeviceDisablingManager> | 122 std::unique_ptr<chromeos::system::DeviceDisablingManager> |
| 117 device_disabling_manager_; | 123 device_disabling_manager_; |
| 118 | 124 |
| 119 std::unique_ptr<chromeos::system::TimeZoneResolverManager> | 125 std::unique_ptr<chromeos::system::TimeZoneResolverManager> |
| 120 timezone_resolver_manager_; | 126 timezone_resolver_manager_; |
| 121 std::unique_ptr<chromeos::TimeZoneResolver> timezone_resolver_; | 127 std::unique_ptr<chromeos::TimeZoneResolver> timezone_resolver_; |
| 122 | 128 |
| 123 std::unique_ptr<chromeos::system::SystemClock> system_clock_; | 129 std::unique_ptr<chromeos::system::SystemClock> system_clock_; |
| 124 | 130 |
| 125 std::unique_ptr<ScopedKeepAlive> keep_alive_; | 131 std::unique_ptr<ScopedKeepAlive> keep_alive_; |
| 126 | 132 |
| 133 std::vector<std::string> compatible_cros_components_; | |
|
sky
2017/05/25 02:25:50
Given your usage, wouldn't a std::set be a better
xiaochu
2017/05/25 02:40:45
Done.
Yeah, max size is number of cros components
| |
| 134 | |
| 127 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 135 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
| 128 }; | 136 }; |
| 129 | 137 |
| 130 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 138 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
| OLD | NEW |