| 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> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/containers/flat_set.h" | 12 #include "base/containers/flat_set.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/threading/non_thread_safe.h" | 14 #include "base/sequence_checker.h" |
| 15 #include "chrome/browser/browser_process_platform_part_base.h" | 15 #include "chrome/browser/browser_process_platform_part_base.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 class ChromeSessionManager; | 18 class ChromeSessionManager; |
| 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 class TimeZoneResolverManager; |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace policy { | 34 namespace policy { |
| 35 class BrowserPolicyConnector; | 35 class BrowserPolicyConnector; |
| 36 class BrowserPolicyConnectorChromeOS; | 36 class BrowserPolicyConnectorChromeOS; |
| 37 } | 37 } |
| 38 | 38 |
| 39 class ScopedKeepAlive; | 39 class ScopedKeepAlive; |
| 40 | 40 |
| 41 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase, | 41 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase { |
| 42 public base::NonThreadSafe { | |
| 43 public: | 42 public: |
| 44 BrowserProcessPlatformPart(); | 43 BrowserProcessPlatformPart(); |
| 45 ~BrowserProcessPlatformPart() override; | 44 ~BrowserProcessPlatformPart() override; |
| 46 | 45 |
| 47 void InitializeAutomaticRebootManager(); | 46 void InitializeAutomaticRebootManager(); |
| 48 void ShutdownAutomaticRebootManager(); | 47 void ShutdownAutomaticRebootManager(); |
| 49 | 48 |
| 50 void InitializeChromeUserManager(); | 49 void InitializeChromeUserManager(); |
| 51 void DestroyChromeUserManager(); | 50 void DestroyChromeUserManager(); |
| 52 | 51 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 std::unique_ptr<chromeos::system::TimeZoneResolverManager> | 124 std::unique_ptr<chromeos::system::TimeZoneResolverManager> |
| 126 timezone_resolver_manager_; | 125 timezone_resolver_manager_; |
| 127 std::unique_ptr<chromeos::TimeZoneResolver> timezone_resolver_; | 126 std::unique_ptr<chromeos::TimeZoneResolver> timezone_resolver_; |
| 128 | 127 |
| 129 std::unique_ptr<chromeos::system::SystemClock> system_clock_; | 128 std::unique_ptr<chromeos::system::SystemClock> system_clock_; |
| 130 | 129 |
| 131 std::unique_ptr<ScopedKeepAlive> keep_alive_; | 130 std::unique_ptr<ScopedKeepAlive> keep_alive_; |
| 132 | 131 |
| 133 base::flat_set<std::string> compatible_cros_components_; | 132 base::flat_set<std::string> compatible_cros_components_; |
| 134 | 133 |
| 134 SEQUENCE_CHECKER(sequence_checker_); |
| 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 136 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 139 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
| OLD | NEW |