| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 namespace extensions { | 26 namespace extensions { |
| 27 class ExtensionGarbageCollectorChromeOSUnitTest; | 27 class ExtensionGarbageCollectorChromeOSUnitTest; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace ash { | 30 namespace ash { |
| 31 namespace test { | 31 namespace test { |
| 32 class MultiUserWindowManagerChromeOSTest; | 32 class MultiUserWindowManagerChromeOSTest; |
| 33 } // namespace test | 33 } // namespace test |
| 34 } // namespace ash | 34 } // namespace ash |
| 35 | 35 |
| 36 namespace test { |
| 37 class BrowserFinderChromeOSTest; |
| 38 } // namespace test |
| 39 |
| 36 namespace chromeos { | 40 namespace chromeos { |
| 37 | 41 |
| 38 class FileFlusher; | 42 class FileFlusher; |
| 39 | 43 |
| 40 // This helper class is used on Chrome OS to keep track of currently | 44 // This helper class is used on Chrome OS to keep track of currently |
| 41 // active user profile. | 45 // active user profile. |
| 42 // Whenever active user is changed (either add another user into session or | 46 // Whenever active user is changed (either add another user into session or |
| 43 // switch between users), ActiveUserHashChanged() will be called thus | 47 // switch between users), ActiveUserHashChanged() will be called thus |
| 44 // internal state |active_user_id_hash_| will be updated. | 48 // internal state |active_user_id_hash_| will be updated. |
| 45 // Typical use cases for using this class: | 49 // Typical use cases for using this class: |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 friend class FakeChromeUserManager; | 152 friend class FakeChromeUserManager; |
| 149 friend class KioskTest; | 153 friend class KioskTest; |
| 150 friend class MockUserManager; | 154 friend class MockUserManager; |
| 151 friend class MultiProfileUserControllerTest; | 155 friend class MultiProfileUserControllerTest; |
| 152 friend class PrinterDetectorAppSearchEnabledTest; | 156 friend class PrinterDetectorAppSearchEnabledTest; |
| 153 friend class ProfileHelperTest; | 157 friend class ProfileHelperTest; |
| 154 friend class ProfileListChromeOSTest; | 158 friend class ProfileListChromeOSTest; |
| 155 friend class SessionStateDelegateChromeOSTest; | 159 friend class SessionStateDelegateChromeOSTest; |
| 156 friend class SystemTrayDelegateChromeOSTest; | 160 friend class SystemTrayDelegateChromeOSTest; |
| 157 friend class ash::test::MultiUserWindowManagerChromeOSTest; | 161 friend class ash::test::MultiUserWindowManagerChromeOSTest; |
| 162 friend class ::test::BrowserFinderChromeOSTest; |
| 158 | 163 |
| 159 // Called when signin profile is cleared. | 164 // Called when signin profile is cleared. |
| 160 void OnSigninProfileCleared(); | 165 void OnSigninProfileCleared(); |
| 161 | 166 |
| 162 // BrowsingDataRemover::Observer implementation: | 167 // BrowsingDataRemover::Observer implementation: |
| 163 void OnBrowsingDataRemoverDone() override; | 168 void OnBrowsingDataRemoverDone() override; |
| 164 | 169 |
| 165 // OAuth2LoginManager::Observer overrides. | 170 // OAuth2LoginManager::Observer overrides. |
| 166 void OnSessionRestoreStateChanged( | 171 void OnSessionRestoreStateChanged( |
| 167 Profile* user_profile, | 172 Profile* user_profile, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 std::unique_ptr<FileFlusher> profile_flusher_; | 223 std::unique_ptr<FileFlusher> profile_flusher_; |
| 219 | 224 |
| 220 base::WeakPtrFactory<ProfileHelper> weak_factory_; | 225 base::WeakPtrFactory<ProfileHelper> weak_factory_; |
| 221 | 226 |
| 222 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 227 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
| 223 }; | 228 }; |
| 224 | 229 |
| 225 } // namespace chromeos | 230 } // namespace chromeos |
| 226 | 231 |
| 227 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 232 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| OLD | NEW |