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

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

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (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 25 matching lines...) Expand all
36 // Creates UserManagerBase with |task_runner| for UI thread and 36 // Creates UserManagerBase with |task_runner| for UI thread and
37 // |blocking_task_runner| for SequencedWorkerPool. 37 // |blocking_task_runner| for SequencedWorkerPool.
38 UserManagerBase(scoped_refptr<base::TaskRunner> task_runner, 38 UserManagerBase(scoped_refptr<base::TaskRunner> task_runner,
39 scoped_refptr<base::TaskRunner> blocking_task_runner); 39 scoped_refptr<base::TaskRunner> blocking_task_runner);
40 virtual ~UserManagerBase(); 40 virtual ~UserManagerBase();
41 41
42 // Registers UserManagerBase preferences. 42 // Registers UserManagerBase preferences.
43 static void RegisterPrefs(PrefRegistrySimple* registry); 43 static void RegisterPrefs(PrefRegistrySimple* registry);
44 44
45 // UserManager implementation: 45 // UserManager implementation:
46 virtual void Shutdown() OVERRIDE; 46 virtual void Shutdown() override;
47 virtual const UserList& GetUsers() const OVERRIDE; 47 virtual const UserList& GetUsers() const override;
48 virtual const UserList& GetLoggedInUsers() const OVERRIDE; 48 virtual const UserList& GetLoggedInUsers() const override;
49 virtual const UserList& GetLRULoggedInUsers() const OVERRIDE; 49 virtual const UserList& GetLRULoggedInUsers() const override;
50 virtual const std::string& GetOwnerEmail() const OVERRIDE; 50 virtual const std::string& GetOwnerEmail() const override;
51 virtual void UserLoggedIn(const std::string& user_id, 51 virtual void UserLoggedIn(const std::string& user_id,
52 const std::string& user_id_hash, 52 const std::string& user_id_hash,
53 bool browser_restart) OVERRIDE; 53 bool browser_restart) override;
54 virtual void SwitchActiveUser(const std::string& user_id) OVERRIDE; 54 virtual void SwitchActiveUser(const std::string& user_id) override;
55 virtual void SwitchToLastActiveUser() OVERRIDE; 55 virtual void SwitchToLastActiveUser() override;
56 virtual void SessionStarted() OVERRIDE; 56 virtual void SessionStarted() override;
57 virtual void RemoveUser(const std::string& user_id, 57 virtual void RemoveUser(const std::string& user_id,
58 RemoveUserDelegate* delegate) OVERRIDE; 58 RemoveUserDelegate* delegate) override;
59 virtual void RemoveUserFromList(const std::string& user_id) OVERRIDE; 59 virtual void RemoveUserFromList(const std::string& user_id) override;
60 virtual bool IsKnownUser(const std::string& user_id) const OVERRIDE; 60 virtual bool IsKnownUser(const std::string& user_id) const override;
61 virtual const User* FindUser(const std::string& user_id) const OVERRIDE; 61 virtual const User* FindUser(const std::string& user_id) const override;
62 virtual User* FindUserAndModify(const std::string& user_id) OVERRIDE; 62 virtual User* FindUserAndModify(const std::string& user_id) override;
63 virtual const User* GetLoggedInUser() const OVERRIDE; 63 virtual const User* GetLoggedInUser() const override;
64 virtual User* GetLoggedInUser() OVERRIDE; 64 virtual User* GetLoggedInUser() override;
65 virtual const User* GetActiveUser() const OVERRIDE; 65 virtual const User* GetActiveUser() const override;
66 virtual User* GetActiveUser() OVERRIDE; 66 virtual User* GetActiveUser() override;
67 virtual const User* GetPrimaryUser() const OVERRIDE; 67 virtual const User* GetPrimaryUser() const override;
68 virtual void SaveUserOAuthStatus( 68 virtual void SaveUserOAuthStatus(
69 const std::string& user_id, 69 const std::string& user_id,
70 User::OAuthTokenStatus oauth_token_status) OVERRIDE; 70 User::OAuthTokenStatus oauth_token_status) override;
71 virtual void SaveForceOnlineSignin(const std::string& user_id, 71 virtual void SaveForceOnlineSignin(const std::string& user_id,
72 bool force_online_signin) OVERRIDE; 72 bool force_online_signin) override;
73 virtual void SaveUserDisplayName(const std::string& user_id, 73 virtual void SaveUserDisplayName(const std::string& user_id,
74 const base::string16& display_name) OVERRIDE; 74 const base::string16& display_name) override;
75 virtual base::string16 GetUserDisplayName( 75 virtual base::string16 GetUserDisplayName(
76 const std::string& user_id) const OVERRIDE; 76 const std::string& user_id) const override;
77 virtual void SaveUserDisplayEmail(const std::string& user_id, 77 virtual void SaveUserDisplayEmail(const std::string& user_id,
78 const std::string& display_email) OVERRIDE; 78 const std::string& display_email) override;
79 virtual std::string GetUserDisplayEmail( 79 virtual std::string GetUserDisplayEmail(
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; 90 virtual bool IsLoggedInAsDemoUser() const override;
91 virtual bool IsLoggedInAsPublicAccount() const OVERRIDE; 91 virtual bool IsLoggedInAsPublicAccount() const override;
92 virtual bool IsLoggedInAsGuest() const OVERRIDE; 92 virtual bool IsLoggedInAsGuest() const override;
93 virtual bool IsLoggedInAsSupervisedUser() const OVERRIDE; 93 virtual bool IsLoggedInAsSupervisedUser() const override;
94 virtual bool IsLoggedInAsKioskApp() const OVERRIDE; 94 virtual bool IsLoggedInAsKioskApp() const override;
95 virtual bool IsLoggedInAsStub() const OVERRIDE; 95 virtual bool IsLoggedInAsStub() const override;
96 virtual bool IsSessionStarted() const OVERRIDE; 96 virtual bool IsSessionStarted() const override;
97 virtual bool IsUserNonCryptohomeDataEphemeral( 97 virtual bool IsUserNonCryptohomeDataEphemeral(
98 const std::string& user_id) const OVERRIDE; 98 const std::string& user_id) const override;
99 virtual void AddObserver(UserManager::Observer* obs) OVERRIDE; 99 virtual void AddObserver(UserManager::Observer* obs) override;
100 virtual void RemoveObserver(UserManager::Observer* obs) OVERRIDE; 100 virtual void RemoveObserver(UserManager::Observer* obs) override;
101 virtual void AddSessionStateObserver( 101 virtual void AddSessionStateObserver(
102 UserManager::UserSessionStateObserver* obs) OVERRIDE; 102 UserManager::UserSessionStateObserver* obs) override;
103 virtual void RemoveSessionStateObserver( 103 virtual void RemoveSessionStateObserver(
104 UserManager::UserSessionStateObserver* obs) OVERRIDE; 104 UserManager::UserSessionStateObserver* obs) override;
105 virtual void NotifyLocalStateChanged() OVERRIDE; 105 virtual void NotifyLocalStateChanged() override;
106 virtual void ForceUpdateState() OVERRIDE; 106 virtual void ForceUpdateState() override;
107 107
108 // Helper function that copies users from |users_list| to |users_vector| and 108 // Helper function that copies users from |users_list| to |users_vector| and
109 // |users_set|. Duplicates and users already present in |existing_users| are 109 // |users_set|. Duplicates and users already present in |existing_users| are
110 // skipped. 110 // skipped.
111 static void ParseUserList(const base::ListValue& users_list, 111 static void ParseUserList(const base::ListValue& users_list,
112 const std::set<std::string>& existing_users, 112 const std::set<std::string>& existing_users,
113 std::vector<std::string>* users_vector, 113 std::vector<std::string>* users_vector,
114 std::set<std::string>* users_set); 114 std::set<std::string>* users_set);
115 115
116 protected: 116 protected:
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 scoped_refptr<base::TaskRunner> blocking_task_runner_; 383 scoped_refptr<base::TaskRunner> blocking_task_runner_;
384 384
385 base::WeakPtrFactory<UserManagerBase> weak_factory_; 385 base::WeakPtrFactory<UserManagerBase> weak_factory_;
386 386
387 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); 387 DISALLOW_COPY_AND_ASSIGN(UserManagerBase);
388 }; 388 };
389 389
390 } // namespace user_manager 390 } // namespace user_manager
391 391
392 #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_info_impl.h ('k') | components/variations/caching_permuted_entropy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698