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 #ifndef REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ | 5 #ifndef REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ |
6 #define REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ | 6 #define REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 #include <atlctl.h> | 10 #include <atlctl.h> |
11 | 11 |
12 #include <memory> | 12 #include <memory> |
13 | 13 |
14 #include "base/win/scoped_comptr.h" | 14 #include "base/win/scoped_comptr.h" |
15 // chromoting_lib.h contains MIDL-generated declarations. | 15 // chromoting_lib.h contains MIDL-generated declarations. |
16 #include "remoting/host/chromoting_lib.h" | 16 #include "remoting/host/win/chromoting_lib.h" |
17 #include "remoting/host/win/rdp_client.h" | 17 #include "remoting/host/win/rdp_client.h" |
18 | 18 |
19 namespace remoting { | 19 namespace remoting { |
20 | 20 |
21 // Implements IRdpDesktopSession interface providing a way to host RdpClient | 21 // Implements IRdpDesktopSession interface providing a way to host RdpClient |
22 // objects in a COM component. | 22 // objects in a COM component. |
23 class __declspec(uuid(RDP_DESKTOP_SESSION_CLSID)) RdpDesktopSession | 23 class __declspec(uuid(RDP_DESKTOP_SESSION_CLSID)) RdpDesktopSession |
24 : public ATL::CComObjectRootEx<ATL::CComSingleThreadModel>, | 24 : public ATL::CComObjectRootEx<ATL::CComSingleThreadModel>, |
25 public ATL::CComCoClass<RdpDesktopSession, &__uuidof(RdpDesktopSession)>, | 25 public ATL::CComCoClass<RdpDesktopSession, &__uuidof(RdpDesktopSession)>, |
26 public IRdpDesktopSession, | 26 public IRdpDesktopSession, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Holds a reference to the caller's EventHandler, through which notifications | 69 // Holds a reference to the caller's EventHandler, through which notifications |
70 // are dispatched. Released in Disconnect(), to prevent further notifications. | 70 // are dispatched. Released in Disconnect(), to prevent further notifications. |
71 base::win::ScopedComPtr<IRdpDesktopSessionEventHandler> event_handler_; | 71 base::win::ScopedComPtr<IRdpDesktopSessionEventHandler> event_handler_; |
72 | 72 |
73 DECLARE_PROTECT_FINAL_CONSTRUCT() | 73 DECLARE_PROTECT_FINAL_CONSTRUCT() |
74 }; | 74 }; |
75 | 75 |
76 } // namespace remoting | 76 } // namespace remoting |
77 | 77 |
78 #endif // REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ | 78 #endif // REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ |
OLD | NEW |