| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
| 14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
| 19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" | 20 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" |
| 21 #include "chrome/browser/chromeos/login/user_flow.h" | 21 #include "chrome/browser/chromeos/login/user_flow.h" |
| 22 #include "chrome/browser/chromeos/login/users/affiliation.h" |
| 22 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h" | 23 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h" |
| 23 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 24 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 24 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller_dele
gate.h" | 25 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller_dele
gate.h" |
| 25 #include "chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h" | 26 #include "chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h" |
| 26 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" | 27 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
| 27 #include "chrome/browser/chromeos/settings/cros_settings.h" | 28 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 28 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 29 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| 29 #include "components/user_manager/user.h" | 30 #include "components/user_manager/user.h" |
| 30 #include "content/public/browser/notification_observer.h" | 31 #include "content/public/browser/notification_observer.h" |
| 31 #include "content/public/browser/notification_registrar.h" | 32 #include "content/public/browser/notification_registrar.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 109 |
| 109 // policy::DeviceLocalAccountPolicyService::Observer implementation. | 110 // policy::DeviceLocalAccountPolicyService::Observer implementation. |
| 110 void OnPolicyUpdated(const std::string& user_id) override; | 111 void OnPolicyUpdated(const std::string& user_id) override; |
| 111 void OnDeviceLocalAccountsChanged() override; | 112 void OnDeviceLocalAccountsChanged() override; |
| 112 | 113 |
| 113 void StopPolicyObserverForTesting(); | 114 void StopPolicyObserverForTesting(); |
| 114 | 115 |
| 115 // UserManagerBase implementation: | 116 // UserManagerBase implementation: |
| 116 bool AreEphemeralUsersEnabled() const override; | 117 bool AreEphemeralUsersEnabled() const override; |
| 117 | 118 |
| 119 // ChromeUserManager implementation: |
| 120 void SetUserAffiliation( |
| 121 const std::string& user_email, |
| 122 const AffiliationIDSet& user_affiliation_ids) override; |
| 123 |
| 118 protected: | 124 protected: |
| 119 const std::string& GetApplicationLocale() const override; | 125 const std::string& GetApplicationLocale() const override; |
| 120 PrefService* GetLocalState() const override; | 126 PrefService* GetLocalState() const override; |
| 121 void HandleUserOAuthTokenStatusChange( | 127 void HandleUserOAuthTokenStatusChange( |
| 122 const std::string& user_id, | 128 const std::string& user_id, |
| 123 user_manager::User::OAuthTokenStatus status) const override; | 129 user_manager::User::OAuthTokenStatus status) const override; |
| 124 bool IsEnterpriseManaged() const override; | 130 bool IsEnterpriseManaged() const override; |
| 125 void LoadPublicAccounts(std::set<std::string>* users_set) override; | 131 void LoadPublicAccounts(std::set<std::string>* users_set) override; |
| 126 void NotifyOnLogin() override; | 132 void NotifyOnLogin() override; |
| 127 void NotifyUserAddedToSession(const user_manager::User* added_user, | 133 void NotifyUserAddedToSession(const user_manager::User* added_user, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 scoped_ptr<BootstrapManager> bootstrap_manager_; | 252 scoped_ptr<BootstrapManager> bootstrap_manager_; |
| 247 | 253 |
| 248 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_; | 254 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_; |
| 249 | 255 |
| 250 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl); | 256 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl); |
| 251 }; | 257 }; |
| 252 | 258 |
| 253 } // namespace chromeos | 259 } // namespace chromeos |
| 254 | 260 |
| 255 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ | 261 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ |
| OLD | NEW |