| 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> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace ash { | 36 namespace ash { |
| 37 namespace test { | 37 namespace test { |
| 38 class MultiUserWindowManagerChromeOSTest; | 38 class MultiUserWindowManagerChromeOSTest; |
| 39 } // namespace test | 39 } // namespace test |
| 40 } // namespace ash | 40 } // namespace ash |
| 41 | 41 |
| 42 namespace test { | 42 namespace test { |
| 43 class BrowserFinderChromeOSTest; | 43 class BrowserFinderChromeOSTest; |
| 44 class MultiUserBrowserWindowChromeOSTest; |
| 44 } // namespace test | 45 } // namespace test |
| 45 | 46 |
| 46 namespace chromeos { | 47 namespace chromeos { |
| 47 | 48 |
| 48 class FileFlusher; | 49 class FileFlusher; |
| 49 | 50 |
| 50 // This helper class is used on Chrome OS to keep track of currently | 51 // This helper class is used on Chrome OS to keep track of currently |
| 51 // active user profile. | 52 // active user profile. |
| 52 // Whenever active user is changed (either add another user into session or | 53 // Whenever active user is changed (either add another user into session or |
| 53 // switch between users), ActiveUserHashChanged() will be called thus | 54 // switch between users), ActiveUserHashChanged() will be called thus |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 friend class MultiProfileUserControllerTest; | 162 friend class MultiProfileUserControllerTest; |
| 162 friend class PrinterDetectorAppSearchEnabledTest; | 163 friend class PrinterDetectorAppSearchEnabledTest; |
| 163 friend class ProfileHelperTest; | 164 friend class ProfileHelperTest; |
| 164 friend class ProfileListChromeOSTest; | 165 friend class ProfileListChromeOSTest; |
| 165 friend class SessionStateDelegateChromeOSTest; | 166 friend class SessionStateDelegateChromeOSTest; |
| 166 friend class SystemTrayDelegateChromeOSTest; | 167 friend class SystemTrayDelegateChromeOSTest; |
| 167 friend class arc::SyncArcPackageHelper; | 168 friend class arc::SyncArcPackageHelper; |
| 168 friend class ash::test::MultiUserWindowManagerChromeOSTest; | 169 friend class ash::test::MultiUserWindowManagerChromeOSTest; |
| 169 friend class ::ArcAppTest; | 170 friend class ::ArcAppTest; |
| 170 friend class ::test::BrowserFinderChromeOSTest; | 171 friend class ::test::BrowserFinderChromeOSTest; |
| 172 friend class ::test::MultiUserBrowserWindowChromeOSTest; |
| 171 | 173 |
| 172 // Called when signin profile is cleared. | 174 // Called when signin profile is cleared. |
| 173 void OnSigninProfileCleared(); | 175 void OnSigninProfileCleared(); |
| 174 | 176 |
| 175 // BrowsingDataRemover::Observer implementation: | 177 // BrowsingDataRemover::Observer implementation: |
| 176 void OnBrowsingDataRemoverDone() override; | 178 void OnBrowsingDataRemoverDone() override; |
| 177 | 179 |
| 178 // OAuth2LoginManager::Observer overrides. | 180 // OAuth2LoginManager::Observer overrides. |
| 179 void OnSessionRestoreStateChanged( | 181 void OnSessionRestoreStateChanged( |
| 180 Profile* user_profile, | 182 Profile* user_profile, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 std::unique_ptr<FileFlusher> profile_flusher_; | 236 std::unique_ptr<FileFlusher> profile_flusher_; |
| 235 | 237 |
| 236 base::WeakPtrFactory<ProfileHelper> weak_factory_; | 238 base::WeakPtrFactory<ProfileHelper> weak_factory_; |
| 237 | 239 |
| 238 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 240 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
| 239 }; | 241 }; |
| 240 | 242 |
| 241 } // namespace chromeos | 243 } // namespace chromeos |
| 242 | 244 |
| 243 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 245 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| OLD | NEW |