OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // ATL headers have to go first. | 5 // ATL headers have to go first. |
6 #include <atlbase.h> | 6 #include <atlbase.h> |
7 #include <atlhost.h> | 7 #include <atlhost.h> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 static GUID RdpClientModuleLibid = { | 50 static GUID RdpClientModuleLibid = { |
51 0xa14498c6, | 51 0xa14498c6, |
52 0x7f3b, | 52 0x7f3b, |
53 0x4e42, | 53 0x4e42, |
54 { 0x96, 0x05, 0x6c, 0x4a, 0x20, 0xd5, 0x3c, 0x87 } | 54 { 0x96, 0x05, 0x6c, 0x4a, 0x20, 0xd5, 0x3c, 0x87 } |
55 }; | 55 }; |
56 | 56 |
57 class RdpClientModule : public ATL::CAtlModuleT<RdpClientModule> { | 57 class RdpClientModule : public ATL::CAtlModuleT<RdpClientModule> { |
58 public: | 58 public: |
59 RdpClientModule(); | 59 RdpClientModule(); |
60 virtual ~RdpClientModule(); | 60 ~RdpClientModule() override; |
61 | 61 |
62 DECLARE_LIBID(RdpClientModuleLibid) | 62 DECLARE_LIBID(RdpClientModuleLibid) |
63 | 63 |
64 private: | 64 private: |
65 base::win::ScopedCOMInitializer com_initializer_; | 65 base::win::ScopedCOMInitializer com_initializer_; |
66 }; | 66 }; |
67 | 67 |
68 RdpClientModule::RdpClientModule() { | 68 RdpClientModule::RdpClientModule() { |
69 AtlAxWinInit(); | 69 AtlAxWinInit(); |
70 } | 70 } |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 rdp_client_.reset(new RdpClient( | 164 rdp_client_.reset(new RdpClient( |
165 task_runner_, task_runner_, | 165 task_runner_, task_runner_, |
166 webrtc::DesktopSize(kDefaultWidth, kDefaultHeight), | 166 webrtc::DesktopSize(kDefaultWidth, kDefaultHeight), |
167 terminal_id_, &event_handler_)); | 167 terminal_id_, &event_handler_)); |
168 task_runner_ = nullptr; | 168 task_runner_ = nullptr; |
169 | 169 |
170 run_loop_.Run(); | 170 run_loop_.Run(); |
171 } | 171 } |
172 | 172 |
173 } // namespace remoting | 173 } // namespace remoting |
OLD | NEW |