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 |