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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_setup_message_handler.h

Issue 6532069: Reland "WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 5." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/dom_ui/html_dialog_ui.h" 11 #include "chrome/browser/webui/html_dialog_ui.h"
12 12
13 class CloudPrintSetupFlow; 13 class CloudPrintSetupFlow;
14 14
15 // This class is used to handle DOM messages from the setup dialog. 15 // This class is used to handle DOM messages from the setup dialog.
16 class CloudPrintSetupMessageHandler : public WebUIMessageHandler { 16 class CloudPrintSetupMessageHandler : public WebUIMessageHandler {
17 public: 17 public:
18 explicit CloudPrintSetupMessageHandler(CloudPrintSetupFlow* flow) 18 explicit CloudPrintSetupMessageHandler(CloudPrintSetupFlow* flow)
19 : flow_(flow) {} 19 : flow_(flow) {}
20 virtual ~CloudPrintSetupMessageHandler() {} 20 virtual ~CloudPrintSetupMessageHandler() {}
21 21
22 // WebUIMessageHandler implementation. 22 // WebUIMessageHandler implementation.
23 virtual WebUIMessageHandler* Attach(WebUI* web_ui); 23 virtual WebUIMessageHandler* Attach(WebUI* web_ui);
24 24
25 protected: 25 protected:
26 // WebUIMessageHandler implementation. 26 // WebUIMessageHandler implementation.
27 virtual void RegisterMessages(); 27 virtual void RegisterMessages();
28 28
29 // Callbacks from the page. 29 // Callbacks from the page.
30 void HandleSubmitAuth(const ListValue* args); 30 void HandleSubmitAuth(const ListValue* args);
31 void HandlePrintTestPage(const ListValue* args); 31 void HandlePrintTestPage(const ListValue* args);
32 void HandleLearnMore(const ListValue* args); 32 void HandleLearnMore(const ListValue* args);
33 33
34 private: 34 private:
35 CloudPrintSetupFlow* flow_; 35 CloudPrintSetupFlow* flow_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupMessageHandler); 37 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupMessageHandler);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER _H_ 40 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698