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

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

Issue 2287733002: Switch //components away from base::ListValue::Append(Value*) overload. (Closed)
Patch Set: Test fix Created 4 years, 3 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 (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>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const std::vector<gaia::ListedAccount>& gaia_accounts, 101 const std::vector<gaia::ListedAccount>& gaia_accounts,
102 const std::vector<gaia::ListedAccount>& signed_out_accounts, 102 const std::vector<gaia::ListedAccount>& signed_out_accounts,
103 const GoogleServiceAuthError& error) override; 103 const GoogleServiceAuthError& error) override;
104 104
105 private: 105 private:
106 // Encapsulates diagnostic information about tokens for different services. 106 // Encapsulates diagnostic information about tokens for different services.
107 struct TokenInfo { 107 struct TokenInfo {
108 TokenInfo(const std::string& consumer_id, 108 TokenInfo(const std::string& consumer_id,
109 const OAuth2TokenService::ScopeSet& scopes); 109 const OAuth2TokenService::ScopeSet& scopes);
110 ~TokenInfo(); 110 ~TokenInfo();
111 base::DictionaryValue* ToValue() const; 111 std::unique_ptr<base::DictionaryValue> ToValue() const;
112 112
113 static bool LessThan(const TokenInfo* a, const TokenInfo* b); 113 static bool LessThan(const TokenInfo* a, const TokenInfo* b);
114 114
115 // Called when the token is invalidated. 115 // Called when the token is invalidated.
116 void Invalidate(); 116 void Invalidate();
117 117
118 std::string consumer_id; // service that requested the token. 118 std::string consumer_id; // service that requested the token.
119 OAuth2TokenService::ScopeSet scopes; // Scoped that are requested. 119 OAuth2TokenService::ScopeSet scopes; // Scoped that are requested.
120 base::Time request_time; 120 base::Time request_time;
121 base::Time receive_time; 121 base::Time receive_time;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // Encapsulates the actual signin and token related values. 219 // Encapsulates the actual signin and token related values.
220 // Most of the values are mirrored in the prefs for persistence. 220 // Most of the values are mirrored in the prefs for persistence.
221 SigninStatus signin_status_; 221 SigninStatus signin_status_;
222 222
223 base::ObserverList<Observer> signin_observers_; 223 base::ObserverList<Observer> signin_observers_;
224 224
225 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals); 225 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals);
226 }; 226 };
227 227
228 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_ 228 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ABOUT_SIGNIN_INTERNALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698