Chromium Code Reviews| Index: chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h |
| diff --git a/chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h b/chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..56add6ef7c64d5d94aa3743019d1fe9edb65fd2d |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_ |
| +#define CHROME_BROWSER_UI_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/callback.h" |
| +#include "content/public/browser/web_ui_message_handler.h" |
| + |
| +class ProfileSigninConfirmationDialog; |
| + |
| +class ProfileSigninConfirmationHandler : public content::WebUIMessageHandler { |
| + public: |
| + explicit ProfileSigninConfirmationHandler( |
|
Andrew T Wilson (Slow)
2013/02/10 20:47:26
nit: remove explicit.
dconnelly
2013/02/11 09:35:16
Done.
|
| + ProfileSigninConfirmationDialog* dialog, |
| + const base::Closure& cancel_signin, |
| + const base::Closure& signin_with_new_profile, |
| + const base::Closure& continue_signin); |
| + virtual ~ProfileSigninConfirmationHandler(); |
| + virtual void RegisterMessages() OVERRIDE; |
| + |
| + private: |
| + void OnCancelButtonClicked(const base::ListValue* args); |
| + void OnCreateProfileClicked(const base::ListValue* args); |
| + void OnContinueButtonClicked(const base::ListValue* args); |
| + |
| + // Deletes itself. |
|
Andrew T Wilson (Slow)
2013/02/10 20:47:26
Typically, if you don't own an object (like this o
dconnelly
2013/02/11 09:35:16
Done.
|
| + ProfileSigninConfirmationDialog* dialog_; |
| + |
| + base::Closure cancel_signin_; |
| + base::Closure signin_with_new_profile_; |
| + base::Closure continue_signin_; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_ |