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" | |
23 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h" | 22 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h" |
24 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 23 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
25 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller_dele
gate.h" | 24 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller_dele
gate.h" |
26 #include "chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h" | 25 #include "chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h" |
27 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" | 26 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
28 #include "chrome/browser/chromeos/settings/cros_settings.h" | 27 #include "chrome/browser/chromeos/settings/cros_settings.h" |
29 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 28 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
30 #include "components/user_manager/user.h" | 29 #include "components/user_manager/user.h" |
31 #include "content/public/browser/notification_observer.h" | 30 #include "content/public/browser/notification_observer.h" |
32 #include "content/public/browser/notification_registrar.h" | 31 #include "content/public/browser/notification_registrar.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 108 |
110 // policy::DeviceLocalAccountPolicyService::Observer implementation. | 109 // policy::DeviceLocalAccountPolicyService::Observer implementation. |
111 void OnPolicyUpdated(const std::string& user_id) override; | 110 void OnPolicyUpdated(const std::string& user_id) override; |
112 void OnDeviceLocalAccountsChanged() override; | 111 void OnDeviceLocalAccountsChanged() override; |
113 | 112 |
114 void StopPolicyObserverForTesting(); | 113 void StopPolicyObserverForTesting(); |
115 | 114 |
116 // UserManagerBase implementation: | 115 // UserManagerBase implementation: |
117 bool AreEphemeralUsersEnabled() const override; | 116 bool AreEphemeralUsersEnabled() const override; |
118 | 117 |
119 // ChromeUserManager implementation: | |
120 void SetUserAffiliation( | |
121 const std::string& user_email, | |
122 const AffiliationIDSet& user_affiliation_ids) override; | |
123 | |
124 protected: | 118 protected: |
125 const std::string& GetApplicationLocale() const override; | 119 const std::string& GetApplicationLocale() const override; |
126 PrefService* GetLocalState() const override; | 120 PrefService* GetLocalState() const override; |
127 void HandleUserOAuthTokenStatusChange( | 121 void HandleUserOAuthTokenStatusChange( |
128 const std::string& user_id, | 122 const std::string& user_id, |
129 user_manager::User::OAuthTokenStatus status) const override; | 123 user_manager::User::OAuthTokenStatus status) const override; |
130 bool IsEnterpriseManaged() const override; | 124 bool IsEnterpriseManaged() const override; |
131 void LoadPublicAccounts(std::set<std::string>* users_set) override; | 125 void LoadPublicAccounts(std::set<std::string>* users_set) override; |
132 void NotifyOnLogin() override; | 126 void NotifyOnLogin() override; |
133 void NotifyUserAddedToSession(const user_manager::User* added_user, | 127 void NotifyUserAddedToSession(const user_manager::User* added_user, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 scoped_ptr<BootstrapManager> bootstrap_manager_; | 246 scoped_ptr<BootstrapManager> bootstrap_manager_; |
253 | 247 |
254 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_; | 248 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_; |
255 | 249 |
256 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl); | 250 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl); |
257 }; | 251 }; |
258 | 252 |
259 } // namespace chromeos | 253 } // namespace chromeos |
260 | 254 |
261 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ | 255 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ |
OLD | NEW |