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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
11 #include "chrome/browser/browser_process_platform_part_base.h" | 11 #include "chrome/browser/browser_process_platform_part_base.h" |
12 #include "chromeos/timezone/timezone_resolver.h" | |
sky
2015/01/20 16:47:30
forward declare.
Alexander Alekseev
2015/01/22 18:55:22
Done.
| |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class CommandLine; | 15 class CommandLine; |
15 } | 16 } |
16 | 17 |
17 namespace chromeos { | 18 namespace chromeos { |
18 class ChromeUserManager; | 19 class ChromeUserManager; |
19 class OomPriorityManager; | 20 class OomPriorityManager; |
20 class ProfileHelper; | 21 class ProfileHelper; |
21 } | 22 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos(); | 80 policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos(); |
80 | 81 |
81 chromeos::ChromeUserManager* user_manager() { | 82 chromeos::ChromeUserManager* user_manager() { |
82 return chrome_user_manager_.get(); | 83 return chrome_user_manager_.get(); |
83 } | 84 } |
84 | 85 |
85 chromeos::system::DeviceDisablingManager* device_disabling_manager() { | 86 chromeos::system::DeviceDisablingManager* device_disabling_manager() { |
86 return device_disabling_manager_.get(); | 87 return device_disabling_manager_.get(); |
87 } | 88 } |
88 | 89 |
90 chromeos::TimeZoneResolver* timezone_resolver(); | |
91 | |
89 // Overridden from BrowserProcessPlatformPartBase: | 92 // Overridden from BrowserProcessPlatformPartBase: |
90 virtual void StartTearDown() override; | 93 virtual void StartTearDown() override; |
91 | 94 |
92 virtual scoped_ptr<policy::BrowserPolicyConnector> | 95 virtual scoped_ptr<policy::BrowserPolicyConnector> |
93 CreateBrowserPolicyConnector() override; | 96 CreateBrowserPolicyConnector() override; |
94 | 97 |
95 private: | 98 private: |
96 void CreateProfileHelper(); | 99 void CreateProfileHelper(); |
97 | 100 |
98 scoped_ptr<session_manager::SessionManager> session_manager_; | 101 scoped_ptr<session_manager::SessionManager> session_manager_; |
99 | 102 |
100 bool created_profile_helper_; | 103 bool created_profile_helper_; |
101 scoped_ptr<chromeos::ProfileHelper> profile_helper_; | 104 scoped_ptr<chromeos::ProfileHelper> profile_helper_; |
102 | 105 |
103 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; | 106 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; |
104 | 107 |
105 scoped_ptr<chromeos::system::AutomaticRebootManager> | 108 scoped_ptr<chromeos::system::AutomaticRebootManager> |
106 automatic_reboot_manager_; | 109 automatic_reboot_manager_; |
107 | 110 |
108 scoped_ptr<chromeos::ChromeUserManager> chrome_user_manager_; | 111 scoped_ptr<chromeos::ChromeUserManager> chrome_user_manager_; |
109 | 112 |
110 scoped_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> | 113 scoped_ptr<chromeos::system::DeviceDisablingManagerDefaultDelegate> |
111 device_disabling_manager_delegate_; | 114 device_disabling_manager_delegate_; |
112 scoped_ptr<chromeos::system::DeviceDisablingManager> | 115 scoped_ptr<chromeos::system::DeviceDisablingManager> |
113 device_disabling_manager_; | 116 device_disabling_manager_; |
114 | 117 |
118 scoped_ptr<chromeos::TimeZoneResolver> timezone_resolver_; | |
119 | |
115 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 120 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
116 }; | 121 }; |
117 | 122 |
118 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 123 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
OLD | NEW |