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

Side by Side Diff: chrome/browser/chromeos/login/mock_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_MOCK_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void RetryAuth(Profile* profile, 64 virtual void RetryAuth(Profile* profile,
65 const std::string& username, 65 const std::string& username,
66 const std::string& password, 66 const std::string& password,
67 const std::string& login_token, 67 const std::string& login_token,
68 const std::string& login_captcha) {} 68 const std::string& login_captcha) {}
69 69
70 virtual std::string EncryptToken(const std::string& token); 70 virtual std::string EncryptToken(const std::string& token);
71 71
72 virtual std::string DecryptToken(const std::string& encrypted_token); 72 virtual std::string DecryptToken(const std::string& encrypted_token);
73 73
74 virtual std::string DecryptLegacyToken(const std::string& encrypted_token);
75
74 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, 76 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token,
75 const std::string& oauth1_secret) {} 77 const std::string& oauth1_secret) {}
76 78
77 private: 79 private:
78 std::string expected_username_; 80 std::string expected_username_;
79 std::string expected_password_; 81 std::string expected_password_;
80 82
81 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); 83 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
82 }; 84 };
83 85
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 std::string expected_password_; 133 std::string expected_password_;
132 std::string auth_token_; 134 std::string auth_token_;
133 chromeos::BackgroundView* background_view_; 135 chromeos::BackgroundView* background_view_;
134 136
135 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); 137 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils);
136 }; 138 };
137 139
138 } // namespace chromeos 140 } // namespace chromeos
139 141
140 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 142 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/mock_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698