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

Unified Diff: chrome/browser/printing/cloud_print/cloud_print_setup_message_handler.h

Issue 3450021: Cloud print proxy management UI. (Closed)
Patch Set: Fix nits. Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/cloud_print/cloud_print_setup_message_handler.h
diff --git a/chrome/browser/printing/cloud_print/cloud_print_setup_message_handler.h b/chrome/browser/printing/cloud_print/cloud_print_setup_message_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..c59afb316eae0bccfbfad27bd16bcd443e98f8b6
--- /dev/null
+++ b/chrome/browser/printing/cloud_print/cloud_print_setup_message_handler.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2010 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_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER_H_
+#define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER_H_
+
+#include <string>
+
+#include "base/values.h"
+#include "chrome/browser/dom_ui/html_dialog_ui.h"
+
+class CloudPrintSetupFlow;
+
+// This class is used to handle DOM messages from the setup dialog.
+class CloudPrintSetupMessageHandler : public DOMMessageHandler {
+ public:
+ explicit CloudPrintSetupMessageHandler(CloudPrintSetupFlow* flow)
+ : flow_(flow) {}
+ virtual ~CloudPrintSetupMessageHandler() {}
+
+ // DOMMessageHandler implementation.
+ virtual DOMMessageHandler* Attach(DOMUI* dom_ui);
+
+ protected:
+ // DOMMessageHandler implementation.
+ virtual void RegisterMessages();
+
+ // Callbacks from the page.
+ void HandleSubmitAuth(const ListValue* args);
+
+ private:
+ CloudPrintSetupFlow* flow_;
+
+ DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupMessageHandler);
+};
+
+#endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_MESSAGE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698