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

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

Issue 4980005: Allow sync with 2-factor StrongAuth accounts in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_SCREEN_LOCKER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class ScreenLocker : public LoginStatusConsumer, 44 class ScreenLocker : public LoginStatusConsumer,
45 public MessageBubbleDelegate, 45 public MessageBubbleDelegate,
46 public views::AcceleratorTarget { 46 public views::AcceleratorTarget {
47 public: 47 public:
48 explicit ScreenLocker(const UserManager::User& user); 48 explicit ScreenLocker(const UserManager::User& user);
49 49
50 // Initialize and show the screen locker. 50 // Initialize and show the screen locker.
51 void Init(); 51 void Init();
52 52
53 // LoginStatusConsumer implements: 53 // LoginStatusConsumer implements:
54 virtual void SetLoginFailure(const chromeos::LoginFailure& error) {}
54 virtual void OnLoginFailure(const chromeos::LoginFailure& error); 55 virtual void OnLoginFailure(const chromeos::LoginFailure& error);
55 virtual void OnLoginSuccess(const std::string& username, 56 virtual void OnLoginSuccess(const std::string& username,
56 const std::string& password, 57 const std::string& password,
57 const GaiaAuthConsumer::ClientLoginResult& result, 58 const GaiaAuthConsumer::ClientLoginResult& result,
58 bool pending_requests); 59 bool pending_requests);
59 60
60 // Overridden from views::InfoBubbleDelegate. 61 // Overridden from views::InfoBubbleDelegate.
61 virtual void InfoBubbleClosing(InfoBubble* info_bubble, 62 virtual void InfoBubbleClosing(InfoBubble* info_bubble,
62 bool closed_by_escape); 63 bool closed_by_escape);
63 virtual bool CloseOnEscape() { return true; } 64 virtual bool CloseOnEscape() { return true; }
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 base::Time start_time_; 188 base::Time start_time_;
188 // The time when the authentication is started. 189 // The time when the authentication is started.
189 base::Time authentication_start_time_; 190 base::Time authentication_start_time_;
190 191
191 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); 192 DISALLOW_COPY_AND_ASSIGN(ScreenLocker);
192 }; 193 };
193 194
194 } // namespace chromeos 195 } // namespace chromeos
195 196
196 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ 197 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698