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

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

Issue 8332013: Removed legacy encoding mechanism that was temporarely used at one point while WebUI was still be... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual void RetryAuth(Profile* profile, 63 virtual void RetryAuth(Profile* profile,
64 const std::string& username, 64 const std::string& username,
65 const std::string& password, 65 const std::string& password,
66 const std::string& login_token, 66 const std::string& login_token,
67 const std::string& login_captcha) {} 67 const std::string& login_captcha) {}
68 68
69 virtual std::string EncryptToken(const std::string& token); 69 virtual std::string EncryptToken(const std::string& token);
70 70
71 virtual std::string DecryptToken(const std::string& encrypted_token); 71 virtual std::string DecryptToken(const std::string& encrypted_token);
72 72
73 virtual std::string DecryptLegacyToken(const std::string& encrypted_token);
74
75 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, 73 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token,
76 const std::string& oauth1_secret) {} 74 const std::string& oauth1_secret) {}
77 75
78 private: 76 private:
79 std::string expected_username_; 77 std::string expected_username_;
80 std::string expected_password_; 78 std::string expected_password_;
81 79
82 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); 80 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
83 }; 81 };
84 82
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 std::string expected_password_; 137 std::string expected_password_;
140 std::string auth_token_; 138 std::string auth_token_;
141 chromeos::BackgroundView* background_view_; 139 chromeos::BackgroundView* background_view_;
142 140
143 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); 141 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils);
144 }; 142 };
145 143
146 } // namespace chromeos 144 } // namespace chromeos
147 145
148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 146 #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