blob: 1a69950ae9c0b54d6d6b18d54bb9d79d387995e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_
#pragma once
#include "content/browser/webui/web_ui.h"
class RefCountedMemory;
// The handler for Javascript messages related to the "new profile" page.
class NewProfileHandler : public WebUIMessageHandler {
public:
NewProfileHandler();
// WebUIMessageHandler implementation.
virtual void RegisterMessages();
// Callback for the "create" message - finishes creating a profile.
void HandleCreate(const ListValue* args);
// Callback for the "cancel" message - cancels creating a profile.
void HandleCancel(const ListValue* args);
// Callback for the "requestProfileInfo" message - sends profile info.
void HandleRequestProfileInfo(const ListValue* args);
private:
// Send the default avatar images to the page.
void SendDefaultAvatarImages();
// Send information about the profile to the page.
void SendProfileInfo();
DISALLOW_COPY_AND_ASSIGN(NewProfileHandler);
};
#endif // CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_
|