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

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

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/ui/webui/html_dialog_ui.h" 11 #include "content/public/browser/web_ui_message_handler.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 content::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 protected: 22 protected:
23 // WebUIMessageHandler implementation. 23 // WebUIMessageHandler implementation.
24 virtual void RegisterMessages() OVERRIDE; 24 virtual void RegisterMessages() OVERRIDE;
25 25
26 // Callbacks from the page. 26 // Callbacks from the page.
27 void HandleSubmitAuth(const ListValue* args); 27 void HandleSubmitAuth(const ListValue* args);
28 void HandlePrintTestPage(const ListValue* args); 28 void HandlePrintTestPage(const ListValue* args);
29 void HandleLearnMore(const ListValue* args); 29 void HandleLearnMore(const ListValue* args);
30 30
31 private: 31 private:
32 CloudPrintSetupFlow* flow_; 32 CloudPrintSetupFlow* flow_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupMessageHandler); 34 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupMessageHandler);
35 }; 35 };
36 36
37 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER _H_ 37 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698