| OLD | NEW |
| 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_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual void Login(const std::string& username, | 45 virtual void Login(const std::string& username, |
| 46 const std::string& password) = 0; | 46 const std::string& password) = 0; |
| 47 | 47 |
| 48 // Sign in into Guest session. | 48 // Sign in into Guest session. |
| 49 virtual void LoginAsGuest() = 0; | 49 virtual void LoginAsGuest() = 0; |
| 50 // Let the delegate know about the handler it is supposed to be using. | 50 // Let the delegate know about the handler it is supposed to be using. |
| 51 virtual void set_login_handler(LoginUIHandler* login_handler) { | 51 virtual void set_login_handler(LoginUIHandler* login_handler) { |
| 52 login_handler_ = login_handler; | 52 login_handler_ = login_handler; |
| 53 } | 53 } |
| 54 protected: | 54 protected: |
| 55 // Reference to the DOM handling layer for the login screen | 55 // Reference to the WebUI handling layer for the login screen |
| 56 LoginUIHandler* login_handler_; | 56 LoginUIHandler* login_handler_; |
| 57 | 57 |
| 58 virtual ~LoginUIHandlerDelegate(); | 58 virtual ~LoginUIHandlerDelegate(); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 // Main LoginUI handling function. It handles the WebUI hooks that are supplied | 61 // Main LoginUI handling function. It handles the WebUI hooks that are supplied |
| 62 // for the login page to use for authentication. | 62 // for the login page to use for authentication. |
| 63 class LoginUIHandler : public WebUIMessageHandler { | 63 class LoginUIHandler : public WebUIMessageHandler { |
| 64 public: | 64 public: |
| 65 LoginUIHandler(); | 65 LoginUIHandler(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 91 | 91 |
| 92 static RefCountedMemory* GetFaviconResourceBytes(); | 92 static RefCountedMemory* GetFaviconResourceBytes(); |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 DISALLOW_COPY_AND_ASSIGN(LoginUI); | 95 DISALLOW_COPY_AND_ASSIGN(LoginUI); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace chromeos | 98 } // namespace chromeos |
| 99 | 99 |
| 100 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ | 100 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ |
| OLD | NEW |