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

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: 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
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..ecb481493327de11fa3cdb1faa6f0fdaec6e09c9
--- /dev/null
+++ b/remoting/host/verify_config_window_win.h
@@ -0,0 +1,44 @@
+// 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 "base/callback.h"
+
+#include <string>
alexeypa (please no reviews) 2012/04/12 21:20:41 Shouldn't this go before "base/callback.h"?
simonmorris 2012/04/12 22:11:44 Done.
+
+namespace remoting {
+
+class VerifyConfigWindowWin {
alexeypa (please no reviews) 2012/04/12 21:20:41 We use ATL already. It really make sense to use CD
simonmorris 2012/04/12 22:11:44 Added a TODO.
+ public:
+ VerifyConfigWindowWin(const std::string& email,
+ const std::string& host_id,
+ const std::string& host_secret_hash);
+ ~VerifyConfigWindowWin();
+
+ // Run the dialog modally. Returns non-zero for successful verification.
+ int 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

Powered by Google App Engine
This is Rietveld 408576698