Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 14 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 15 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" | 15 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" |
| 16 #include "chrome/browser/chromeos/login/users/user_manager.h" | 16 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 17 | 17 |
| 18 class Profile; | 18 class Profile; |
| 19 class User; | 19 class User; |
| 20 class SessionStateDelegateChromeOSTest; | |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 class FilePath; | 23 class FilePath; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace extensions { | 26 namespace extensions { |
| 26 class ExtensionGarbageCollectorChromeOSUnitTest; | 27 class ExtensionGarbageCollectorChromeOSUnitTest; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace chromeos { | 30 namespace chromeos { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 private: | 113 private: |
| 113 friend class DeviceSettingsTestBase; | 114 friend class DeviceSettingsTestBase; |
| 114 friend class extensions::ExtensionGarbageCollectorChromeOSUnitTest; | 115 friend class extensions::ExtensionGarbageCollectorChromeOSUnitTest; |
| 115 friend class FakeUserManager; | 116 friend class FakeUserManager; |
| 116 friend class KioskTest; | 117 friend class KioskTest; |
| 117 friend class MockUserManager; | 118 friend class MockUserManager; |
| 118 friend class MultiProfileUserControllerTest; | 119 friend class MultiProfileUserControllerTest; |
| 119 friend class ParallelAuthenticatorTest; | 120 friend class ParallelAuthenticatorTest; |
| 120 friend class ProfileHelperTest; | 121 friend class ProfileHelperTest; |
| 121 friend class ProfileListChromeOSTest; | 122 friend class ProfileListChromeOSTest; |
| 123 friend class ::SessionStateDelegateChromeOSTest; | |
|
James Cook
2014/08/12 20:08:30
Put this in namespace chromeos like ProfileListChr
Roman Sorokin (ftl)
2014/08/13 09:11:52
Done.
| |
| 122 | 124 |
| 123 // BrowsingDataRemover::Observer implementation: | 125 // BrowsingDataRemover::Observer implementation: |
| 124 virtual void OnBrowsingDataRemoverDone() OVERRIDE; | 126 virtual void OnBrowsingDataRemoverDone() OVERRIDE; |
| 125 | 127 |
| 126 // UserManager::Observer overrides. | 128 // UserManager::Observer overrides. |
| 127 virtual void OnSessionRestoreStateChanged( | 129 virtual void OnSessionRestoreStateChanged( |
| 128 Profile* user_profile, | 130 Profile* user_profile, |
| 129 OAuth2LoginManager::SessionRestoreState state) OVERRIDE; | 131 OAuth2LoginManager::SessionRestoreState state) OVERRIDE; |
| 130 | 132 |
| 131 // UserManager::UserSessionStateObserver implementation: | 133 // UserManager::UserSessionStateObserver implementation: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 // If true and enable_profile_to_user_testing is true then primary user will | 174 // If true and enable_profile_to_user_testing is true then primary user will |
| 173 // always be returned by GetUserByProfile(). | 175 // always be returned by GetUserByProfile(). |
| 174 static bool always_return_primary_user_for_testing; | 176 static bool always_return_primary_user_for_testing; |
| 175 | 177 |
| 176 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 178 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
| 177 }; | 179 }; |
| 178 | 180 |
| 179 } // namespace chromeos | 181 } // namespace chromeos |
| 180 | 182 |
| 181 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 183 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| OLD | NEW |