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

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

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/webui/web_ui.h" 9 #include "content/browser/webui/web_ui.h"
10 10
11 class RefCountedMemory; 11 class RefCountedMemory;
12 12
13 namespace base {
14 class ListValue;
15 }
16
13 // The handler for Javascript messages related to the "new profile" page. 17 // The handler for Javascript messages related to the "new profile" page.
14 class NewProfileHandler : public WebUIMessageHandler { 18 class NewProfileHandler : public WebUIMessageHandler {
15 public: 19 public:
16 NewProfileHandler(); 20 NewProfileHandler();
17 21
18 // WebUIMessageHandler implementation. 22 // WebUIMessageHandler implementation.
19 virtual void RegisterMessages(); 23 virtual void RegisterMessages();
20 24
21 // Callback for the "create" message - finishes creating a profile. 25 // Callback for the "create" message - finishes creating a profile.
22 void HandleCreate(const ListValue* args); 26 void HandleCreate(const base::ListValue* args);
23 27
24 // Callback for the "cancel" message - cancels creating a profile. 28 // Callback for the "cancel" message - cancels creating a profile.
25 void HandleCancel(const ListValue* args); 29 void HandleCancel(const base::ListValue* args);
26 30
27 // Callback for the "requestProfileInfo" message - sends profile info. 31 // Callback for the "requestProfileInfo" message - sends profile info.
28 void HandleRequestProfileInfo(const ListValue* args); 32 void HandleRequestProfileInfo(const base::ListValue* args);
29 33
30 private: 34 private:
31 // Send the default avatar images to the page. 35 // Send the default avatar images to the page.
32 void SendDefaultAvatarImages(); 36 void SendDefaultAvatarImages();
33 37
34 // Send information about the profile to the page. 38 // Send information about the profile to the page.
35 void SendProfileInfo(); 39 void SendProfileInfo();
36 40
37 DISALLOW_COPY_AND_ASSIGN(NewProfileHandler); 41 DISALLOW_COPY_AND_ASSIGN(NewProfileHandler);
38 }; 42 };
39 43
40 #endif // CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_ 44 #endif // CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/net_internals_ui.h ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698