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_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
7 | 7 |
8 #include <map> | |
Luis Héctor Chávez
2016/07/14 22:44:32
`git cl lint` asked me to do this, as well as L236
xiyuan
2016/07/14 22:59:32
Acknowledged.
| |
8 #include <memory> | 9 #include <memory> |
9 #include <string> | 10 #include <string> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/macros.h" | 15 #include "base/macros.h" |
15 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
16 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 17 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
17 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" | 18 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" |
18 #include "components/user_manager/user_manager.h" | 19 #include "components/user_manager/user_manager.h" |
19 | 20 |
21 class ArcAppTest; | |
20 class Profile; | 22 class Profile; |
21 | 23 |
22 namespace base { | 24 namespace base { |
23 class FilePath; | 25 class FilePath; |
24 } | 26 } |
25 | 27 |
26 namespace extensions { | 28 namespace extensions { |
27 class ExtensionGarbageCollectorChromeOSUnitTest; | 29 class ExtensionGarbageCollectorChromeOSUnitTest; |
28 } | 30 } |
29 | 31 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 friend class FakeChromeUserManager; | 154 friend class FakeChromeUserManager; |
153 friend class KioskTest; | 155 friend class KioskTest; |
154 friend class MockUserManager; | 156 friend class MockUserManager; |
155 friend class MultiProfileUserControllerTest; | 157 friend class MultiProfileUserControllerTest; |
156 friend class PrinterDetectorAppSearchEnabledTest; | 158 friend class PrinterDetectorAppSearchEnabledTest; |
157 friend class ProfileHelperTest; | 159 friend class ProfileHelperTest; |
158 friend class ProfileListChromeOSTest; | 160 friend class ProfileListChromeOSTest; |
159 friend class SessionStateDelegateChromeOSTest; | 161 friend class SessionStateDelegateChromeOSTest; |
160 friend class SystemTrayDelegateChromeOSTest; | 162 friend class SystemTrayDelegateChromeOSTest; |
161 friend class ash::test::MultiUserWindowManagerChromeOSTest; | 163 friend class ash::test::MultiUserWindowManagerChromeOSTest; |
164 friend class ::ArcAppTest; | |
162 friend class ::test::BrowserFinderChromeOSTest; | 165 friend class ::test::BrowserFinderChromeOSTest; |
163 | 166 |
164 // Called when signin profile is cleared. | 167 // Called when signin profile is cleared. |
165 void OnSigninProfileCleared(); | 168 void OnSigninProfileCleared(); |
166 | 169 |
167 // BrowsingDataRemover::Observer implementation: | 170 // BrowsingDataRemover::Observer implementation: |
168 void OnBrowsingDataRemoverDone() override; | 171 void OnBrowsingDataRemoverDone() override; |
169 | 172 |
170 // OAuth2LoginManager::Observer overrides. | 173 // OAuth2LoginManager::Observer overrides. |
171 void OnSessionRestoreStateChanged( | 174 void OnSessionRestoreStateChanged( |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 // always be returned by GetUserByProfile(). | 226 // always be returned by GetUserByProfile(). |
224 static bool always_return_primary_user_for_testing; | 227 static bool always_return_primary_user_for_testing; |
225 | 228 |
226 std::unique_ptr<FileFlusher> profile_flusher_; | 229 std::unique_ptr<FileFlusher> profile_flusher_; |
227 | 230 |
228 base::WeakPtrFactory<ProfileHelper> weak_factory_; | 231 base::WeakPtrFactory<ProfileHelper> weak_factory_; |
229 | 232 |
230 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 233 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
231 }; | 234 }; |
232 | 235 |
233 } // namespace chromeos | 236 } // namespace chromeos |
234 | 237 |
235 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 238 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
OLD | NEW |