OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/examples/peerconnection/client/conductor.h" | 11 #include "webrtc/examples/peerconnection/client/conductor.h" |
12 #include "webrtc/examples/peerconnection/client/flagdefs.h" | 12 #include "webrtc/examples/peerconnection/client/flagdefs.h" |
13 #include "webrtc/examples/peerconnection/client/main_wnd.h" | 13 #include "webrtc/examples/peerconnection/client/main_wnd.h" |
14 #include "webrtc/examples/peerconnection/client/peer_connection_client.h" | 14 #include "webrtc/examples/peerconnection/client/peer_connection_client.h" |
15 #include "webrtc/base/checks.h" | 15 #include "webrtc/rtc_base/checks.h" |
16 #include "webrtc/base/ssladapter.h" | 16 #include "webrtc/rtc_base/ssladapter.h" |
17 #include "webrtc/base/win32socketinit.h" | 17 #include "webrtc/rtc_base/win32socketinit.h" |
18 #include "webrtc/base/win32socketserver.h" | 18 #include "webrtc/rtc_base/win32socketserver.h" |
19 | |
20 | 19 |
21 int PASCAL wWinMain(HINSTANCE instance, HINSTANCE prev_instance, | 20 int PASCAL wWinMain(HINSTANCE instance, HINSTANCE prev_instance, |
22 wchar_t* cmd_line, int cmd_show) { | 21 wchar_t* cmd_line, int cmd_show) { |
23 rtc::EnsureWinsockInit(); | 22 rtc::EnsureWinsockInit(); |
24 rtc::Win32SocketServer w32_ss; | 23 rtc::Win32SocketServer w32_ss; |
25 rtc::Win32Thread w32_thread(&w32_ss); | 24 rtc::Win32Thread w32_thread(&w32_ss); |
26 rtc::ThreadManager::Instance()->SetCurrentThread(&w32_thread); | 25 rtc::ThreadManager::Instance()->SetCurrentThread(&w32_thread); |
27 | 26 |
28 rtc::WindowsCommandLineArguments win_args; | 27 rtc::WindowsCommandLineArguments win_args; |
29 int argc = win_args.argc(); | 28 int argc = win_args.argc(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 if (!wnd.PreTranslateMessage(&msg)) { | 68 if (!wnd.PreTranslateMessage(&msg)) { |
70 ::TranslateMessage(&msg); | 69 ::TranslateMessage(&msg); |
71 ::DispatchMessage(&msg); | 70 ::DispatchMessage(&msg); |
72 } | 71 } |
73 } | 72 } |
74 } | 73 } |
75 | 74 |
76 rtc::CleanupSSL(); | 75 rtc::CleanupSSL(); |
77 return 0; | 76 return 0; |
78 } | 77 } |
OLD | NEW |