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

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

Issue 23678007: OAuth2LoginManager+MergeSessionThrottle hardening, multi-profle support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FAKE_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
7 7
8 #include "chrome/browser/chromeos/login/login_utils.h" 8 #include "chrome/browser/chromeos/login/login_utils.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 16 matching lines...) Expand all
27 bool using_oauth, 27 bool using_oauth,
28 bool has_cookies, 28 bool has_cookies,
29 bool has_active_session, 29 bool has_active_session,
30 LoginUtils::Delegate* delegate) OVERRIDE; 30 LoginUtils::Delegate* delegate) OVERRIDE;
31 virtual void DelegateDeleted(LoginUtils::Delegate* delegate) OVERRIDE; 31 virtual void DelegateDeleted(LoginUtils::Delegate* delegate) OVERRIDE;
32 virtual void CompleteOffTheRecordLogin(const GURL& start_url) OVERRIDE; 32 virtual void CompleteOffTheRecordLogin(const GURL& start_url) OVERRIDE;
33 virtual void SetFirstLoginPrefs(PrefService* prefs) OVERRIDE; 33 virtual void SetFirstLoginPrefs(PrefService* prefs) OVERRIDE;
34 virtual scoped_refptr<Authenticator> CreateAuthenticator( 34 virtual scoped_refptr<Authenticator> CreateAuthenticator(
35 LoginStatusConsumer* consumer) OVERRIDE; 35 LoginStatusConsumer* consumer) OVERRIDE;
36 virtual void RestoreAuthenticationSession(Profile* profile) OVERRIDE; 36 virtual void RestoreAuthenticationSession(Profile* profile) OVERRIDE;
37 virtual void StopBackgroundFetchers() OVERRIDE;
38 virtual void InitRlzDelayed(Profile* user_profile) OVERRIDE; 37 virtual void InitRlzDelayed(Profile* user_profile) OVERRIDE;
39 38
40 void SetExpectedCredentials(const std::string& username, 39 void SetExpectedCredentials(const std::string& username,
41 const std::string& password); 40 const std::string& password);
42 void set_should_launch_browser(bool should_launch_browser) { 41 void set_should_launch_browser(bool should_launch_browser) {
43 should_launch_browser_ = should_launch_browser; 42 should_launch_browser_ = should_launch_browser;
44 } 43 }
45 44
46 private: 45 private:
47 Profile* CreateProfile(const std::string& username_hash); 46 Profile* CreateProfile(const std::string& username_hash);
48 47
49 scoped_refptr<Authenticator> authenticator_; 48 scoped_refptr<Authenticator> authenticator_;
50 std::string expected_username_; 49 std::string expected_username_;
51 std::string expected_password_; 50 std::string expected_password_;
52 bool should_launch_browser_; 51 bool should_launch_browser_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(FakeLoginUtils); 53 DISALLOW_COPY_AND_ASSIGN(FakeLoginUtils);
55 }; 54 };
56 55
57 } // namespace chromeos 56 } // namespace chromeos
58 57
59 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_ 58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698