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> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 STDMETHOD(Connect)(long width, long height, BSTR terminal_id, | 42 STDMETHOD(Connect)(long width, long height, BSTR terminal_id, |
43 IRdpDesktopSessionEventHandler* event_handler); | 43 IRdpDesktopSessionEventHandler* event_handler); |
44 STDMETHOD(Disconnect)(); | 44 STDMETHOD(Disconnect)(); |
45 STDMETHOD(ChangeResolution)(long width, long height); | 45 STDMETHOD(ChangeResolution)(long width, long height); |
46 STDMETHOD(InjectSas)(); | 46 STDMETHOD(InjectSas)(); |
47 | 47 |
48 DECLARE_NO_REGISTRY() | 48 DECLARE_NO_REGISTRY() |
49 | 49 |
50 private: | 50 private: |
51 // RdpClient::EventHandler interface. | 51 // RdpClient::EventHandler interface. |
52 virtual void OnRdpConnected() OVERRIDE; | 52 virtual void OnRdpConnected() override; |
53 virtual void OnRdpClosed() OVERRIDE; | 53 virtual void OnRdpClosed() override; |
54 | 54 |
55 BEGIN_COM_MAP(RdpDesktopSession) | 55 BEGIN_COM_MAP(RdpDesktopSession) |
56 COM_INTERFACE_ENTRY(IRdpDesktopSession) | 56 COM_INTERFACE_ENTRY(IRdpDesktopSession) |
57 COM_INTERFACE_ENTRY(IUnknown) | 57 COM_INTERFACE_ENTRY(IUnknown) |
58 END_COM_MAP() | 58 END_COM_MAP() |
59 | 59 |
60 // Implements loading and instantiation of the RDP ActiveX client. | 60 // Implements loading and instantiation of the RDP ActiveX client. |
61 scoped_ptr<RdpClient> client_; | 61 scoped_ptr<RdpClient> client_; |
62 | 62 |
63 // Holds a reference to the caller's EventHandler, through which notifications | 63 // Holds a reference to the caller's EventHandler, through which notifications |
64 // are dispatched. Released in Disconnect(), to prevent further notifications. | 64 // are dispatched. Released in Disconnect(), to prevent further notifications. |
65 base::win::ScopedComPtr<IRdpDesktopSessionEventHandler> event_handler_; | 65 base::win::ScopedComPtr<IRdpDesktopSessionEventHandler> event_handler_; |
66 | 66 |
67 DECLARE_PROTECT_FINAL_CONSTRUCT() | 67 DECLARE_PROTECT_FINAL_CONSTRUCT() |
68 }; | 68 }; |
69 | 69 |
70 } // namespace remoting | 70 } // namespace remoting |
71 | 71 |
72 #endif // REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ | 72 #endif // REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ |
OLD | NEW |