Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: components/user_manager/user_manager_base.h

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const std::string& user_id) const OVERRIDE; 80 const std::string& user_id) const OVERRIDE;
81 virtual void UpdateUserAccountData( 81 virtual void UpdateUserAccountData(
82 const std::string& user_id, 82 const std::string& user_id,
83 const UserAccountData& account_data) OVERRIDE; 83 const UserAccountData& account_data) OVERRIDE;
84 virtual bool IsCurrentUserOwner() const OVERRIDE; 84 virtual bool IsCurrentUserOwner() const OVERRIDE;
85 virtual bool IsCurrentUserNew() const OVERRIDE; 85 virtual bool IsCurrentUserNew() const OVERRIDE;
86 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const OVERRIDE; 86 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const OVERRIDE;
87 virtual bool CanCurrentUserLock() const OVERRIDE; 87 virtual bool CanCurrentUserLock() const OVERRIDE;
88 virtual bool IsUserLoggedIn() const OVERRIDE; 88 virtual bool IsUserLoggedIn() const OVERRIDE;
89 virtual bool IsLoggedInAsRegularUser() const OVERRIDE; 89 virtual bool IsLoggedInAsRegularUser() const OVERRIDE;
90 virtual bool IsLoggedInAsDemoUser() const OVERRIDE;
91 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE; 90 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE;
92 virtual bool IsLoggedInAsGuest() const OVERRIDE; 91 virtual bool IsLoggedInAsGuest() const OVERRIDE;
93 virtual bool IsLoggedInAsSupervisedUser() const OVERRIDE; 92 virtual bool IsLoggedInAsSupervisedUser() const OVERRIDE;
94 virtual bool IsLoggedInAsKioskApp() const OVERRIDE; 93 virtual bool IsLoggedInAsKioskApp() const OVERRIDE;
95 virtual bool IsLoggedInAsStub() const OVERRIDE; 94 virtual bool IsLoggedInAsStub() const OVERRIDE;
96 virtual bool IsSessionStarted() const OVERRIDE; 95 virtual bool IsSessionStarted() const OVERRIDE;
97 virtual bool IsUserNonCryptohomeDataEphemeral( 96 virtual bool IsUserNonCryptohomeDataEphemeral(
98 const std::string& user_id) const OVERRIDE; 97 const std::string& user_id) const OVERRIDE;
99 virtual void AddObserver(UserManager::Observer* obs) OVERRIDE; 98 virtual void AddObserver(UserManager::Observer* obs) OVERRIDE;
100 virtual void RemoveObserver(UserManager::Observer* obs) OVERRIDE; 99 virtual void RemoveObserver(UserManager::Observer* obs) OVERRIDE;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 221
223 // Indicates that a user just logged into a public session. 222 // Indicates that a user just logged into a public session.
224 virtual void PublicAccountUserLoggedIn(User* user) = 0; 223 virtual void PublicAccountUserLoggedIn(User* user) = 0;
225 224
226 // Indicates that a regular user just logged in. 225 // Indicates that a regular user just logged in.
227 virtual void RegularUserLoggedIn(const std::string& user_id); 226 virtual void RegularUserLoggedIn(const std::string& user_id);
228 227
229 // Indicates that a regular user just logged in as ephemeral. 228 // Indicates that a regular user just logged in as ephemeral.
230 virtual void RegularUserLoggedInAsEphemeral(const std::string& user_id); 229 virtual void RegularUserLoggedInAsEphemeral(const std::string& user_id);
231 230
232 // Indicates that a user just logged into a retail mode session.
233 virtual void RetailModeUserLoggedIn() = 0;
234
235 // Indicates that a supervised user just logged in. 231 // Indicates that a supervised user just logged in.
236 virtual void SupervisedUserLoggedIn(const std::string& user_id) = 0; 232 virtual void SupervisedUserLoggedIn(const std::string& user_id) = 0;
237 233
238 // Getters/setters for private members. 234 // Getters/setters for private members.
239 235
240 virtual void SetCurrentUserIsOwner(bool is_current_user_owner); 236 virtual void SetCurrentUserIsOwner(bool is_current_user_owner);
241 237
242 virtual bool GetEphemeralUsersEnabled() const; 238 virtual bool GetEphemeralUsersEnabled() const;
243 virtual void SetEphemeralUsersEnabled(bool enabled); 239 virtual void SetEphemeralUsersEnabled(bool enabled);
244 240
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 scoped_refptr<base::TaskRunner> blocking_task_runner_; 379 scoped_refptr<base::TaskRunner> blocking_task_runner_;
384 380
385 base::WeakPtrFactory<UserManagerBase> weak_factory_; 381 base::WeakPtrFactory<UserManagerBase> weak_factory_;
386 382
387 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); 383 DISALLOW_COPY_AND_ASSIGN(UserManagerBase);
388 }; 384 };
389 385
390 } // namespace user_manager 386 } // namespace user_manager
391 387
392 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ 388 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698