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

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

Issue 1366123002: Cleanup: IWYU for base/gtest_prod_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gtest_iwyu
Patch Set: more lint Created 5 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 // 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/gtest_prod_util.h"
30 #include "base/logging.h" 29 #include "base/logging.h"
31 #include "base/memory/scoped_ptr.h" 30 #include "base/memory/scoped_ptr.h"
32 #include "base/observer_list.h" 31 #include "base/observer_list.h"
33 #include "base/prefs/pref_change_registrar.h" 32 #include "base/prefs/pref_change_registrar.h"
34 #include "base/prefs/pref_member.h" 33 #include "base/prefs/pref_member.h"
35 #include "components/keyed_service/core/keyed_service.h" 34 #include "components/keyed_service/core/keyed_service.h"
36 #include "components/signin/core/browser/account_info.h" 35 #include "components/signin/core/browser/account_info.h"
37 #include "components/signin/core/browser/signin_internals_util.h" 36 #include "components/signin/core/browser/signin_internals_util.h"
38 #include "google_apis/gaia/google_service_auth_error.h" 37 #include "google_apis/gaia/google_service_auth_error.h"
39 38
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // The list of SigninDiagnosticObservers. 170 // The list of SigninDiagnosticObservers.
172 base::ObserverList<signin_internals_util::SigninDiagnosticsObserver, true> 171 base::ObserverList<signin_internals_util::SigninDiagnosticsObserver, true>
173 signin_diagnostics_observers_; 172 signin_diagnostics_observers_;
174 173
175 base::WeakPtrFactory<SigninManagerBase> weak_pointer_factory_; 174 base::WeakPtrFactory<SigninManagerBase> weak_pointer_factory_;
176 175
177 DISALLOW_COPY_AND_ASSIGN(SigninManagerBase); 176 DISALLOW_COPY_AND_ASSIGN(SigninManagerBase);
178 }; 177 };
179 178
180 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_ 179 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698