OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "components/keyed_service/core/keyed_service.h" | 16 #include "components/keyed_service/core/keyed_service.h" |
17 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 17 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
18 #include "components/signin/core/browser/signin_client.h" | 18 #include "components/signin/core/browser/signin_client.h" |
19 #include "components/signin/core/browser/signin_error_controller.h" | 19 #include "components/signin/core/browser/signin_error_controller.h" |
20 #include "components/signin/core/browser/signin_internals_util.h" | 20 #include "components/signin/core/browser/signin_internals_util.h" |
21 #include "components/signin/core/browser/signin_manager.h" | 21 #include "components/signin/core/browser/signin_manager.h" |
22 #include "google_apis/gaia/oauth2_token_service.h" | 22 #include "google_apis/gaia/oauth2_token_service.h" |
23 | 23 |
24 namespace user_prefs { | 24 namespace user_prefs { |
25 class PrefRegistrySyncable; | 25 class PrefRegistrySyncable; |
26 } | 26 } |
27 | 27 |
28 class AccountTrackerService; | 28 class AccountTrackerService; |
29 class GaiaAuthFetcher; | |
30 class ProfileOAuth2TokenService; | 29 class ProfileOAuth2TokenService; |
31 class SigninClient; | 30 class SigninClient; |
32 | 31 |
33 // Many values in SigninStatus are also associated with a timestamp. | 32 // Many values in SigninStatus are also associated with a timestamp. |
34 // This makes it easier to keep values and their associated times together. | 33 // This makes it easier to keep values and their associated times together. |
35 using TimedSigninStatusValue = std::pair<std::string, std::string>; | 34 using TimedSigninStatusValue = std::pair<std::string, std::string>; |
36 | 35 |
37 // This class collects authentication, signin and token information | 36 // This class collects authentication, signin and token information |
38 // to propagate to about:signin-internals via SigninInternalsUI. | 37 // to propagate to about:signin-internals via SigninInternalsUI. |
39 class AboutSigninInternals | 38 class AboutSigninInternals |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // Encapsulates the actual signin and token related values. | 219 // Encapsulates the actual signin and token related values. |
221 // Most of the values are mirrored in the prefs for persistence. | 220 // Most of the values are mirrored in the prefs for persistence. |
222 SigninStatus signin_status_; | 221 SigninStatus signin_status_; |
223 | 222 |
224 base::ObserverList<Observer> signin_observers_; | 223 base::ObserverList<Observer> signin_observers_; |
225 | 224 |
226 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals); | 225 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals); |
227 }; | 226 }; |
228 | 227 |
229 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ | 228 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ |
OLD | NEW |