| 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..d2cfb806dc8bd662010faa059ae15409c2d7446e
|
| --- /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 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
|
|
|