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

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

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 years, 9 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) 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 CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/wm/session_state_observer.h" 10 #include "ash/wm/session_state_observer.h"
(...skipping 12 matching lines...) Expand all
23 #include "ui/views/widget/widget_observer.h" 23 #include "ui/views/widget/widget_observer.h"
24 24
25 namespace content { 25 namespace content {
26 class WebUI; 26 class WebUI;
27 } 27 }
28 28
29 namespace chromeos { 29 namespace chromeos {
30 30
31 class ScreenLocker; 31 class ScreenLocker;
32 class WebUILoginDisplay; 32 class WebUILoginDisplay;
33 struct UserCredentials;
33 34
34 namespace test { 35 namespace test {
35 class WebUIScreenLockerTester; 36 class WebUIScreenLockerTester;
36 } 37 }
37 38
38 // This version of ScreenLockerDelegate displays a WebUI lock screen based on 39 // This version of ScreenLockerDelegate displays a WebUI lock screen based on
39 // the Oobe account picker screen. 40 // the Oobe account picker screen.
40 class WebUIScreenLocker : public WebUILoginView, 41 class WebUIScreenLocker : public WebUILoginView,
41 public LoginDisplay::Delegate, 42 public LoginDisplay::Delegate,
42 public ScreenLockerDelegate, 43 public ScreenLockerDelegate,
(...skipping 16 matching lines...) Expand all
59 virtual void AnimateAuthenticationSuccess() OVERRIDE; 60 virtual void AnimateAuthenticationSuccess() OVERRIDE;
60 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; 61 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
61 virtual content::WebUI* GetAssociatedWebUI() OVERRIDE; 62 virtual content::WebUI* GetAssociatedWebUI() OVERRIDE;
62 63
63 // LoginDisplay::Delegate: implementation 64 // LoginDisplay::Delegate: implementation
64 virtual void CancelPasswordChangedFlow() OVERRIDE; 65 virtual void CancelPasswordChangedFlow() OVERRIDE;
65 virtual void CreateAccount() OVERRIDE; 66 virtual void CreateAccount() OVERRIDE;
66 virtual void CreateLocallyManagedUser(const string16& display_name, 67 virtual void CreateLocallyManagedUser(const string16& display_name,
67 const std::string& password) OVERRIDE; 68 const std::string& password) OVERRIDE;
68 69
69 virtual void CompleteLogin(const std::string& username, 70 virtual void CompleteLogin(const UserCredentials& credentials) OVERRIDE;
70 const std::string& password) OVERRIDE;
71 virtual string16 GetConnectedNetworkName() OVERRIDE; 71 virtual string16 GetConnectedNetworkName() OVERRIDE;
72 virtual void Login(const std::string& username, 72 virtual void Login(const UserCredentials& credentials) OVERRIDE;
73 const std::string& password) OVERRIDE;
74 virtual void LoginAsRetailModeUser() OVERRIDE; 73 virtual void LoginAsRetailModeUser() OVERRIDE;
75 virtual void LoginAsGuest() OVERRIDE; 74 virtual void LoginAsGuest() OVERRIDE;
76 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; 75 virtual void MigrateUserData(const std::string& old_password) OVERRIDE;
77 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; 76 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE;
78 virtual void OnSigninScreenReady() OVERRIDE; 77 virtual void OnSigninScreenReady() OVERRIDE;
79 virtual void OnUserSelected(const std::string& username) OVERRIDE; 78 virtual void OnUserSelected(const std::string& username) OVERRIDE;
80 virtual void OnStartEnterpriseEnrollment() OVERRIDE; 79 virtual void OnStartEnterpriseEnrollment() OVERRIDE;
81 virtual void OnStartDeviceReset() OVERRIDE; 80 virtual void OnStartDeviceReset() OVERRIDE;
82 virtual void ShowWrongHWIDScreen() OVERRIDE; 81 virtual void ShowWrongHWIDScreen() OVERRIDE;
83 virtual void ResetPublicSessionAutoLoginTimer() OVERRIDE; 82 virtual void ResetPublicSessionAutoLoginTimer() OVERRIDE;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 base::TimeTicks lock_time_; 131 base::TimeTicks lock_time_;
133 132
134 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_; 133 base::WeakPtrFactory<WebUIScreenLocker> weak_factory_;
135 134
136 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker); 135 DISALLOW_COPY_AND_ASSIGN(WebUIScreenLocker);
137 }; 136 };
138 137
139 } // namespace chromeos 138 } // namespace chromeos
140 139
141 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_ 140 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_SCREEN_LOCKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_display.cc ('k') | chrome/browser/chromeos/login/webui_screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698