Clang fix for r87822.
TBR=rharrison@chromium.org Patch from Ryan Harrison <rharrison@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87826 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
chrome/browser/ui/webui/chromeos/login
@ -33,6 +33,9 @@ LoginUIHTMLSource::LoginUIHTMLSource(MessageLoop* message_loop)
|
||||
html_operations_(new HTMLOperationsInterface()) {
|
||||
}
|
||||
|
||||
LoginUIHTMLSource::~LoginUIHTMLSource() {
|
||||
}
|
||||
|
||||
void LoginUIHTMLSource::StartDataRequest(const std::string& path,
|
||||
bool is_incognito,
|
||||
int request_id) {
|
||||
@ -52,6 +55,12 @@ std::string LoginUIHTMLSource::GetMimeType(const std::string&) const {
|
||||
return "text/html";
|
||||
}
|
||||
|
||||
// LoginUIHandlerDelegate, public: ------------------------------------------
|
||||
|
||||
void LoginUIHandlerDelegate::set_login_handler(LoginUIHandler* login_handler) {
|
||||
login_handler_ = login_handler;
|
||||
}
|
||||
|
||||
// LoginUIHandlerDelegate, protected: ------------------------------------------
|
||||
|
||||
LoginUIHandlerDelegate::~LoginUIHandlerDelegate() {}
|
||||
@ -63,6 +72,9 @@ LoginUIHandler::LoginUIHandler() {
|
||||
delegate_->set_login_handler(this);
|
||||
}
|
||||
|
||||
LoginUIHandler::~LoginUIHandler() {
|
||||
}
|
||||
|
||||
WebUIMessageHandler* LoginUIHandler::Attach(WebUI* web_ui) {
|
||||
return WebUIMessageHandler::Attach(web_ui);
|
||||
}
|
||||
@ -105,7 +117,6 @@ void LoginUIHandler::ClearAndEnablePassword() {
|
||||
web_ui_->CallJavascriptFunction(kResetPrompt);
|
||||
}
|
||||
|
||||
|
||||
// LoginUI, public: ------------------------------------------------------------
|
||||
|
||||
LoginUI::LoginUI(TabContents* contents)
|
||||
|
@ -23,6 +23,7 @@ class HTMLOperationsInterface;
|
||||
class LoginUIHTMLSource : public ChromeURLDataManager::DataSource {
|
||||
public:
|
||||
explicit LoginUIHTMLSource(MessageLoop* message_loop);
|
||||
virtual ~LoginUIHTMLSource();
|
||||
|
||||
virtual void StartDataRequest(const std::string& path,
|
||||
bool is_incognito,
|
||||
@ -48,9 +49,8 @@ class LoginUIHandlerDelegate {
|
||||
// Sign in into Guest session.
|
||||
virtual void LoginAsGuest() = 0;
|
||||
// Let the delegate know about the handler it is supposed to be using.
|
||||
virtual void set_login_handler(LoginUIHandler* login_handler) {
|
||||
login_handler_ = login_handler;
|
||||
}
|
||||
virtual void set_login_handler(LoginUIHandler* login_handler);
|
||||
|
||||
protected:
|
||||
// Reference to the WebUI handling layer for the login screen
|
||||
LoginUIHandler* login_handler_;
|
||||
@ -63,6 +63,7 @@ class LoginUIHandlerDelegate {
|
||||
class LoginUIHandler : public WebUIMessageHandler {
|
||||
public:
|
||||
LoginUIHandler();
|
||||
virtual ~LoginUIHandler();
|
||||
|
||||
// WebUIMessageHandler implementation.
|
||||
virtual WebUIMessageHandler* Attach(WebUI* web_ui);
|
||||
|
Reference in New Issue
Block a user