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

Side by Side Diff: chrome/browser/chromeos/login/parallel_authenticator.h

Issue 7756025: Changed OAuth token+secret encryption to use supplemental user key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; 142 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE;
143 virtual void RetryAuth(Profile* profile, 143 virtual void RetryAuth(Profile* profile,
144 const std::string& username, 144 const std::string& username,
145 const std::string& password, 145 const std::string& password,
146 const std::string& login_token, 146 const std::string& login_token,
147 const std::string& login_captcha) OVERRIDE; 147 const std::string& login_captcha) OVERRIDE;
148 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, 148 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token,
149 const std::string& oauth1_secret) OVERRIDE; 149 const std::string& oauth1_secret) OVERRIDE;
150 virtual std::string EncryptToken(const std::string& token) OVERRIDE; 150 virtual std::string EncryptToken(const std::string& token) OVERRIDE;
151 virtual std::string DecryptToken(const std::string& encrypted_token) OVERRIDE; 151 virtual std::string DecryptToken(const std::string& encrypted_token) OVERRIDE;
152 virtual std::string DecryptLegacyToken(
153 const std::string& encrypted_token) OVERRIDE;
152 154
153 // AuthAttemptStateResolver overrides. 155 // AuthAttemptStateResolver overrides.
154 // Attempts to make a decision and call back |consumer_| based on 156 // Attempts to make a decision and call back |consumer_| based on
155 // the state we have gathered at the time of call. If a decision 157 // the state we have gathered at the time of call. If a decision
156 // can't be made, defers until the next time this is called. 158 // can't be made, defers until the next time this is called.
157 // When a decision is made, will call back to |consumer_| on the UI thread. 159 // When a decision is made, will call back to |consumer_| on the UI thread.
158 // 160 //
159 // Must be called on the IO thread. 161 // Must be called on the IO thread.
160 virtual void Resolve() OVERRIDE; 162 virtual void Resolve() OVERRIDE;
161 163
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 FRIEND_TEST_ALL_PREFIXES(ParallelAuthenticatorTest, ReadLocalaccount); 299 FRIEND_TEST_ALL_PREFIXES(ParallelAuthenticatorTest, ReadLocalaccount);
298 FRIEND_TEST_ALL_PREFIXES(ParallelAuthenticatorTest, 300 FRIEND_TEST_ALL_PREFIXES(ParallelAuthenticatorTest,
299 ReadLocalaccountTrailingWS); 301 ReadLocalaccountTrailingWS);
300 FRIEND_TEST_ALL_PREFIXES(ParallelAuthenticatorTest, ReadNoLocalaccount); 302 FRIEND_TEST_ALL_PREFIXES(ParallelAuthenticatorTest, ReadNoLocalaccount);
301 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); 303 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator);
302 }; 304 };
303 305
304 } // namespace chromeos 306 } // namespace chromeos
305 307
306 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ 308 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698