| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <atlbase.h> | 5 #include <atlbase.h> |
| 6 #include <atlwin.h> | 6 #include <atlwin.h> |
| 7 #include <ole2.h> | 7 #include <ole2.h> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "remoting/base/url_request_context.h" |
| 13 #include "remoting/host/setup/win/host_configurer_window.h" | 14 #include "remoting/host/setup/win/host_configurer_window.h" |
| 14 #include "remoting/host/url_request_context.h" | |
| 15 | 15 |
| 16 class HostConfigurerModule | 16 class HostConfigurerModule |
| 17 : public ATL::CAtlExeModuleT<HostConfigurerModule> { | 17 : public ATL::CAtlExeModuleT<HostConfigurerModule> { |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 HostConfigurerModule _AtlModule; | 20 HostConfigurerModule _AtlModule; |
| 21 | 21 |
| 22 // An app that runs a HostConfigurerWindow. | 22 // An app that runs a HostConfigurerWindow. |
| 23 int WINAPI WinMain(HINSTANCE instance_handle, HINSTANCE prev_instance_handle, | 23 int WINAPI WinMain(HINSTANCE instance_handle, HINSTANCE prev_instance_handle, |
| 24 LPSTR cmd_line, int cmd) | 24 LPSTR cmd_line, int cmd) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 message_loop.QuitClosure()); | 56 message_loop.QuitClosure()); |
| 57 host_configurer_window.Create(NULL); | 57 host_configurer_window.Create(NULL); |
| 58 | 58 |
| 59 base::RunLoop run_loop; | 59 base::RunLoop run_loop; |
| 60 run_loop.Run(); | 60 run_loop.Run(); |
| 61 | 61 |
| 62 io_thread.Stop(); | 62 io_thread.Stop(); |
| 63 | 63 |
| 64 OleUninitialize(); | 64 OleUninitialize(); |
| 65 } | 65 } |
| OLD | NEW |