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

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 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
« no previous file with comments | « components/user_manager/user_manager.h ('k') | components/user_manager/user_manager_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void UpdateUserAccountData( 84 virtual void UpdateUserAccountData(
85 const std::string& user_id, 85 const std::string& user_id,
86 const UserAccountData& account_data) override; 86 const UserAccountData& account_data) override;
87 virtual bool IsCurrentUserOwner() const override; 87 virtual bool IsCurrentUserOwner() const override;
88 virtual bool IsCurrentUserNew() const override; 88 virtual bool IsCurrentUserNew() const override;
89 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const override; 89 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const override;
90 virtual bool CanCurrentUserLock() const override; 90 virtual bool CanCurrentUserLock() const override;
91 virtual bool IsUserLoggedIn() const override; 91 virtual bool IsUserLoggedIn() const override;
92 virtual bool IsLoggedInAsUserWithGaiaAccount() const override; 92 virtual bool IsLoggedInAsUserWithGaiaAccount() const override;
93 virtual bool IsLoggedInAsChildUser() const override; 93 virtual bool IsLoggedInAsChildUser() const override;
94 virtual bool IsLoggedInAsDemoUser() const override;
95 virtual bool IsLoggedInAsPublicAccount() const override; 94 virtual bool IsLoggedInAsPublicAccount() const override;
96 virtual bool IsLoggedInAsGuest() const override; 95 virtual bool IsLoggedInAsGuest() const override;
97 virtual bool IsLoggedInAsSupervisedUser() const override; 96 virtual bool IsLoggedInAsSupervisedUser() const override;
98 virtual bool IsLoggedInAsKioskApp() const override; 97 virtual bool IsLoggedInAsKioskApp() const override;
99 virtual bool IsLoggedInAsStub() const override; 98 virtual bool IsLoggedInAsStub() const override;
100 virtual bool IsSessionStarted() const override; 99 virtual bool IsSessionStarted() const override;
101 virtual bool IsUserNonCryptohomeDataEphemeral( 100 virtual bool IsUserNonCryptohomeDataEphemeral(
102 const std::string& user_id) const override; 101 const std::string& user_id) const override;
103 virtual void AddObserver(UserManager::Observer* obs) override; 102 virtual void AddObserver(UserManager::Observer* obs) override;
104 virtual void RemoveObserver(UserManager::Observer* obs) override; 103 virtual void RemoveObserver(UserManager::Observer* obs) override;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 225
227 // Indicates that a user just logged into a public session. 226 // Indicates that a user just logged into a public session.
228 virtual void PublicAccountUserLoggedIn(User* user) = 0; 227 virtual void PublicAccountUserLoggedIn(User* user) = 0;
229 228
230 // Indicates that a regular user just logged in. 229 // Indicates that a regular user just logged in.
231 virtual void RegularUserLoggedIn(const std::string& user_id); 230 virtual void RegularUserLoggedIn(const std::string& user_id);
232 231
233 // Indicates that a regular user just logged in as ephemeral. 232 // Indicates that a regular user just logged in as ephemeral.
234 virtual void RegularUserLoggedInAsEphemeral(const std::string& user_id); 233 virtual void RegularUserLoggedInAsEphemeral(const std::string& user_id);
235 234
236 // Indicates that a user just logged into a retail mode session.
237 virtual void RetailModeUserLoggedIn() = 0;
238
239 // Indicates that a supervised user just logged in. 235 // Indicates that a supervised user just logged in.
240 virtual void SupervisedUserLoggedIn(const std::string& user_id) = 0; 236 virtual void SupervisedUserLoggedIn(const std::string& user_id) = 0;
241 237
242 // Getters/setters for private members. 238 // Getters/setters for private members.
243 239
244 virtual void SetCurrentUserIsOwner(bool is_current_user_owner); 240 virtual void SetCurrentUserIsOwner(bool is_current_user_owner);
245 241
246 virtual bool GetEphemeralUsersEnabled() const; 242 virtual bool GetEphemeralUsersEnabled() const;
247 virtual void SetEphemeralUsersEnabled(bool enabled); 243 virtual void SetEphemeralUsersEnabled(bool enabled);
248 244
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 scoped_refptr<base::TaskRunner> blocking_task_runner_; 383 scoped_refptr<base::TaskRunner> blocking_task_runner_;
388 384
389 base::WeakPtrFactory<UserManagerBase> weak_factory_; 385 base::WeakPtrFactory<UserManagerBase> weak_factory_;
390 386
391 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); 387 DISALLOW_COPY_AND_ASSIGN(UserManagerBase);
392 }; 388 };
393 389
394 } // namespace user_manager 390 } // namespace user_manager
395 391
396 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ 392 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « components/user_manager/user_manager.h ('k') | components/user_manager/user_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698