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

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

Issue 2438063002: user_manager: Remove deps on session_manager (Closed)
Patch Set: fix nits in PS1 Created 4 years, 1 month 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/DEPS ('k') | components/user_manager/fake_user_manager.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_FAKE_USER_MANAGER_H_ 5 #ifndef COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool IsStubAccountId(const AccountId& account_id) const override; 56 bool IsStubAccountId(const AccountId& account_id) const override;
57 bool HasBrowserRestarted() const override; 57 bool HasBrowserRestarted() const override;
58 58
59 // Not implemented. 59 // Not implemented.
60 void UpdateUserAccountData(const AccountId& account_id, 60 void UpdateUserAccountData(const AccountId& account_id,
61 const UserAccountData& account_data) override {} 61 const UserAccountData& account_data) override {}
62 void Shutdown() override {} 62 void Shutdown() override {}
63 const user_manager::UserList& GetLRULoggedInUsers() const override; 63 const user_manager::UserList& GetLRULoggedInUsers() const override;
64 user_manager::UserList GetUnlockUsers() const override; 64 user_manager::UserList GetUnlockUsers() const override;
65 const AccountId& GetOwnerAccountId() const override; 65 const AccountId& GetOwnerAccountId() const override;
66 void SessionStarted() override {} 66 void OnSessionStarted() override {}
67 void RemoveUser(const AccountId& account_id, 67 void RemoveUser(const AccountId& account_id,
68 user_manager::RemoveUserDelegate* delegate) override {} 68 user_manager::RemoveUserDelegate* delegate) override {}
69 void RemoveUserFromList(const AccountId& account_id) override; 69 void RemoveUserFromList(const AccountId& account_id) override;
70 bool IsKnownUser(const AccountId& account_id) const override; 70 bool IsKnownUser(const AccountId& account_id) const override;
71 const user_manager::User* FindUser( 71 const user_manager::User* FindUser(
72 const AccountId& account_id) const override; 72 const AccountId& account_id) const override;
73 user_manager::User* FindUserAndModify(const AccountId& account_id) override; 73 user_manager::User* FindUserAndModify(const AccountId& account_id) override;
74 const user_manager::User* GetLoggedInUser() const override; 74 const user_manager::User* GetLoggedInUser() const override;
75 user_manager::User* GetLoggedInUser() override; 75 user_manager::User* GetLoggedInUser() override;
76 const user_manager::User* GetPrimaryUser() const override; 76 const user_manager::User* GetPrimaryUser() const override;
(...skipping 10 matching lines...) Expand all
87 bool IsCurrentUserNew() const override; 87 bool IsCurrentUserNew() const override;
88 bool IsCurrentUserNonCryptohomeDataEphemeral() const override; 88 bool IsCurrentUserNonCryptohomeDataEphemeral() const override;
89 bool CanCurrentUserLock() const override; 89 bool CanCurrentUserLock() const override;
90 bool IsUserLoggedIn() const override; 90 bool IsUserLoggedIn() const override;
91 bool IsLoggedInAsUserWithGaiaAccount() const override; 91 bool IsLoggedInAsUserWithGaiaAccount() const override;
92 bool IsLoggedInAsPublicAccount() const override; 92 bool IsLoggedInAsPublicAccount() const override;
93 bool IsLoggedInAsGuest() const override; 93 bool IsLoggedInAsGuest() const override;
94 bool IsLoggedInAsSupervisedUser() const override; 94 bool IsLoggedInAsSupervisedUser() const override;
95 bool IsLoggedInAsKioskApp() const override; 95 bool IsLoggedInAsKioskApp() const override;
96 bool IsLoggedInAsStub() const override; 96 bool IsLoggedInAsStub() const override;
97 bool IsSessionStarted() const override;
98 bool IsUserNonCryptohomeDataEphemeral( 97 bool IsUserNonCryptohomeDataEphemeral(
99 const AccountId& account_id) const override; 98 const AccountId& account_id) const override;
100 void AddObserver(Observer* obs) override {} 99 void AddObserver(Observer* obs) override {}
101 void RemoveObserver(Observer* obs) override {} 100 void RemoveObserver(Observer* obs) override {}
102 void AddSessionStateObserver(UserSessionStateObserver* obs) override {} 101 void AddSessionStateObserver(UserSessionStateObserver* obs) override {}
103 void RemoveSessionStateObserver(UserSessionStateObserver* obs) override {} 102 void RemoveSessionStateObserver(UserSessionStateObserver* obs) override {}
104 void NotifyLocalStateChanged() override {} 103 void NotifyLocalStateChanged() override {}
105 bool AreSupervisedUsersAllowed() const override; 104 bool AreSupervisedUsersAllowed() const override;
106 void UpdateLoginState(const user_manager::User* active_user, 105 void UpdateLoginState(const user_manager::User* active_user,
107 const user_manager::User* primary_user, 106 const user_manager::User* primary_user,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 155
157 // stub. Always empty. 156 // stub. Always empty.
158 gfx::ImageSkia empty_image_; 157 gfx::ImageSkia empty_image_;
159 158
160 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); 159 DISALLOW_COPY_AND_ASSIGN(FakeUserManager);
161 }; 160 };
162 161
163 } // namespace user_manager 162 } // namespace user_manager
164 163
165 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 164 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « components/user_manager/DEPS ('k') | components/user_manager/fake_user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698