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

Side by Side Diff: components/signin/core/browser/signin_manager_base.h

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 11 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 // The signin manager encapsulates some functionality tracking 5 // The signin manager encapsulates some functionality tracking
6 // which user is signed in. 6 // which user is signed in.
7 // 7 //
8 // **NOTE** on semantics of SigninManager: 8 // **NOTE** on semantics of SigninManager:
9 // 9 //
10 // Once a signin is successful, the username becomes "established" and will not 10 // Once a signin is successful, the username becomes "established" and will not
11 // be cleared until a SignOut operation is performed (persists across 11 // be cleared until a SignOut operation is performed (persists across
12 // restarts). Until that happens, the signin manager can still be used to 12 // restarts). Until that happens, the signin manager can still be used to
13 // refresh credentials, but changing the username is not permitted. 13 // refresh credentials, but changing the username is not permitted.
14 // 14 //
15 // On Chrome OS, because of the existence of other components that handle login 15 // On Chrome OS, because of the existence of other components that handle login
16 // and signin at a higher level, all that is needed from a SigninManager is 16 // and signin at a higher level, all that is needed from a SigninManager is
17 // caching / handling of the "authenticated username" field, and TokenService 17 // caching / handling of the "authenticated username" field, and TokenService
18 // initialization, so that components that depend on these two things 18 // initialization, so that components that depend on these two things
19 // (i.e on desktop) can continue using it / don't need to change. For this 19 // (i.e on desktop) can continue using it / don't need to change. For this
20 // reason, SigninManagerBase is all that exists on Chrome OS. For desktop, 20 // reason, SigninManagerBase is all that exists on Chrome OS. For desktop,
21 // see signin/signin_manager.h. 21 // see signin/signin_manager.h.
22 22
23 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_ 23 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_
24 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_ 24 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_
25 25
26 #include <string> 26 #include <string>
27 27
28 #include "base/compiler_specific.h" 28 #include "base/compiler_specific.h"
29 #include "base/logging.h" 29 #include "base/logging.h"
30 #include "base/macros.h"
30 #include "base/memory/scoped_ptr.h" 31 #include "base/memory/scoped_ptr.h"
31 #include "base/observer_list.h" 32 #include "base/observer_list.h"
32 #include "base/prefs/pref_change_registrar.h" 33 #include "base/prefs/pref_change_registrar.h"
33 #include "base/prefs/pref_member.h" 34 #include "base/prefs/pref_member.h"
34 #include "components/keyed_service/core/keyed_service.h" 35 #include "components/keyed_service/core/keyed_service.h"
35 #include "components/signin/core/browser/account_info.h" 36 #include "components/signin/core/browser/account_info.h"
36 #include "components/signin/core/browser/signin_internals_util.h" 37 #include "components/signin/core/browser/signin_internals_util.h"
37 #include "google_apis/gaia/google_service_auth_error.h" 38 #include "google_apis/gaia/google_service_auth_error.h"
38 39
39 class AccountTrackerService; 40 class AccountTrackerService;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // The list of SigninDiagnosticObservers. 172 // The list of SigninDiagnosticObservers.
172 base::ObserverList<signin_internals_util::SigninDiagnosticsObserver, true> 173 base::ObserverList<signin_internals_util::SigninDiagnosticsObserver, true>
173 signin_diagnostics_observers_; 174 signin_diagnostics_observers_;
174 175
175 base::WeakPtrFactory<SigninManagerBase> weak_pointer_factory_; 176 base::WeakPtrFactory<SigninManagerBase> weak_pointer_factory_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(SigninManagerBase); 178 DISALLOW_COPY_AND_ASSIGN(SigninManagerBase);
178 }; 179 };
179 180
180 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_ 181 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_manager.h ('k') | components/signin/core/browser/signin_status_metrics_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698