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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // "data": [List of {"label" : "foo-field", "value" : "foo"} elems] | 83 // "data": [List of {"label" : "foo-field", "value" : "foo"} elems] |
84 // }], | 84 // }], |
85 // "token_info" : | 85 // "token_info" : |
86 // [ List of {"name": "foo-name", "token" : "foo-token", | 86 // [ List of {"name": "foo-name", "token" : "foo-token", |
87 // "status": "foo_stat", "time" : "foo_time"} elems] | 87 // "status": "foo_stat", "time" : "foo_time"} elems] |
88 // } | 88 // } |
89 scoped_ptr<base::DictionaryValue> GetSigninStatus(); | 89 scoped_ptr<base::DictionaryValue> GetSigninStatus(); |
90 | 90 |
91 // GaiaCookieManagerService::Observer implementations. | 91 // GaiaCookieManagerService::Observer implementations. |
92 void OnGaiaAccountsInCookieUpdated( | 92 void OnGaiaAccountsInCookieUpdated( |
93 const std::vector<std::pair<std::string, bool> >& gaia_accounts, | 93 const std::vector<gaia::ListedAccount>& gaia_accounts, |
94 const GoogleServiceAuthError& error) override; | 94 const GoogleServiceAuthError& error) override; |
95 | 95 |
96 private: | 96 private: |
97 // Encapsulates diagnostic information about tokens for different services. | 97 // Encapsulates diagnostic information about tokens for different services. |
98 struct TokenInfo { | 98 struct TokenInfo { |
99 TokenInfo(const std::string& consumer_id, | 99 TokenInfo(const std::string& consumer_id, |
100 const OAuth2TokenService::ScopeSet& scopes); | 100 const OAuth2TokenService::ScopeSet& scopes); |
101 ~TokenInfo(); | 101 ~TokenInfo(); |
102 base::DictionaryValue* ToValue() const; | 102 base::DictionaryValue* ToValue() const; |
103 | 103 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // Encapsulates the actual signin and token related values. | 209 // Encapsulates the actual signin and token related values. |
210 // Most of the values are mirrored in the prefs for persistence. | 210 // Most of the values are mirrored in the prefs for persistence. |
211 SigninStatus signin_status_; | 211 SigninStatus signin_status_; |
212 | 212 |
213 base::ObserverList<Observer> signin_observers_; | 213 base::ObserverList<Observer> signin_observers_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals); | 215 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals); |
216 }; | 216 }; |
217 | 217 |
218 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ | 218 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ |
OLD | NEW |