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

Side by Side Diff: chrome/browser/ui/webui/signin/profile_signin_confirmation_handler.h

Issue 12221111: Add a modal confirmation dialog to the enterprise profile sign-in flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more cleanup Created 7 years, 10 months 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698