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

Side by Side Diff: chrome/browser/ui/webui/new_profile_handler.h

Issue 7256002: Multi-Profiles: New Profile Setup UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 5 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) 2011 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_NEW_PROFILE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_
7 #pragma once
8
9 #include "content/browser/webui/web_ui.h"
10
11 class RefCountedMemory;
12
13 // The handler for Javascript messages related to the "new profile" page.
14 class NewProfileHandler : public WebUIMessageHandler {
15 public:
16 NewProfileHandler();
17
18 // WebUIMessageHandler implementation.
19 virtual void RegisterMessages();
20
21 // Callback for the "create" message - finishes creating a profile.
22 void HandleCreate(const ListValue* args);
23
24 // Callback for the "cancel" message - cancels creating a profile.
25 void HandleCancel(const ListValue* args);
26
27 // Callback for the "requestProfileInfo" message - sends profile info.
28 void HandleRequestProfileInfo(const ListValue* args);
29
30 private:
31 // Send the default avatar images to the page.
32 void SendDefaultAvatarImages();
33
34 // Send information about the profile to the page.
35 void SendProfileInfo();
36
37 DISALLOW_COPY_AND_ASSIGN(NewProfileHandler);
38 };
39
40 #endif // CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_factory.cc ('k') | chrome/browser/ui/webui/new_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698