Chromium Code Reviews| 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" page. | |
| 14 class NewProfileDOMHandler : public WebUIMessageHandler { | |
|
Evan Stade
2011/07/01 20:33:18
why DOM? if NewProfileHandler is too generic it sh
sail
2011/07/01 23:47:04
Done. Renamed to NewProfileHandler.
| |
| 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 // 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(NewProfileDOMHandler); | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_DOM_HANDLER_H_ | |
| OLD | NEW |