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

Unified Diff: remoting/host/verify_config_window_win.h

Issue 10071025: [Chromoting] Make the Windows host controller ask the user to confirm host registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add license boilerplate. Created 8 years, 8 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
« no previous file with comments | « remoting/host/elevated_controller_win.cc ('k') | remoting/host/verify_config_window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/verify_config_window_win.h
diff --git a/remoting/host/verify_config_window_win.h b/remoting/host/verify_config_window_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..fc84427b289f65497e23f9ab56e29dfd8a743e4f
--- /dev/null
+++ b/remoting/host/verify_config_window_win.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2012 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 REMOTING_HOST_VERIFY_CONFIG_WINDOW_WIN_H
+#define REMOTING_HOST_VERIFY_CONFIG_WINDOW_WIN_H
+
+#include <string>
+
+#include "base/callback.h"
+
+namespace remoting {
+
+// TODO(simonmorris): Derive this class from ATL's CDialog.
+class VerifyConfigWindowWin {
+ public:
+ VerifyConfigWindowWin(const std::string& email,
+ const std::string& host_id,
+ const std::string& host_secret_hash);
+ ~VerifyConfigWindowWin();
+
+ // Run the dialog modally. Returns true on successful verification.
+ bool Run();
+
+ private:
+ static BOOL CALLBACK DialogProc(HWND hwmd, UINT msg, WPARAM wParam,
+ LPARAM lParam);
+
+ BOOL OnDialogMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
+
+ void InitDialog();
+ void EndDialog();
+ bool VerifyHostSecretHash();
+
+ HWND hwnd_;
+ const std::string email_;
+ const std::string host_id_;
+ const std::string host_secret_hash_;
+
+ DISALLOW_COPY_AND_ASSIGN(VerifyConfigWindowWin);
+};
+
+}
+
+#endif // REMOTING_HOST_VERIFY_CONFIG_WINDOW_WIN_H
« no previous file with comments | « remoting/host/elevated_controller_win.cc ('k') | remoting/host/verify_config_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698