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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_VERIFY_CONFIG_WINDOW_WIN_H
6 #define REMOTING_HOST_VERIFY_CONFIG_WINDOW_WIN_H
7
8 #include "base/callback.h"
9
10 #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.
11
12 namespace remoting {
13
14 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.
15 public:
16 VerifyConfigWindowWin(const std::string& email,
17 const std::string& host_id,
18 const std::string& host_secret_hash);
19 ~VerifyConfigWindowWin();
20
21 // Run the dialog modally. Returns non-zero for successful verification.
22 int Run();
23
24 private:
25 static BOOL CALLBACK DialogProc(HWND hwmd, UINT msg, WPARAM wParam,
26 LPARAM lParam);
27
28 BOOL OnDialogMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
29
30 void InitDialog();
31 void EndDialog();
32 bool VerifyHostSecretHash();
33
34 HWND hwnd_;
35 const std::string email_;
36 const std::string host_id_;
37 const std::string host_secret_hash_;
38
39 DISALLOW_COPY_AND_ASSIGN(VerifyConfigWindowWin);
40 };
41
42 }
43
44 #endif // REMOTING_HOST_VERIFY_CONFIG_WINDOW_WIN_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698