OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_ | |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/callback.h" | |
10 #include "content/public/browser/web_ui_message_handler.h" | |
11 | |
12 class ProfileSigninConfirmationDialog; | |
13 | |
14 class ProfileSigninConfirmationHandler : public content::WebUIMessageHandler { | |
15 public: | |
16 explicit ProfileSigninConfirmationHandler( | |
Andrew T Wilson (Slow)
2013/02/10 20:47:26
nit: remove explicit.
dconnelly
2013/02/11 09:35:16
Done.
| |
17 ProfileSigninConfirmationDialog* dialog, | |
18 const base::Closure& cancel_signin, | |
19 const base::Closure& signin_with_new_profile, | |
20 const base::Closure& continue_signin); | |
21 virtual ~ProfileSigninConfirmationHandler(); | |
22 virtual void RegisterMessages() OVERRIDE; | |
23 | |
24 private: | |
25 void OnCancelButtonClicked(const base::ListValue* args); | |
26 void OnCreateProfileClicked(const base::ListValue* args); | |
27 void OnContinueButtonClicked(const base::ListValue* args); | |
28 | |
29 // 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.
| |
30 ProfileSigninConfirmationDialog* dialog_; | |
31 | |
32 base::Closure cancel_signin_; | |
33 base::Closure signin_with_new_profile_; | |
34 base::Closure continue_signin_; | |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_PROFILE_SIGNIN_CONFIRMATION_HANDLER_H_ | |
OLD | NEW |