OLD | NEW |
| (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_DOM_HANDLER_H_ | |
6 #define CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_DOM_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" view. | |
14 class NewProfileDOMHandler : public WebUIMessageHandler { | |
15 public: | |
16 NewProfileDOMHandler(); | |
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 void SendDefaultAvatarImages(); | |
32 void SendProfileInfo(); | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(NewProfileDOMHandler); | |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_DOM_HANDLER_H_ | |
OLD | NEW |