Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: remoting/host/win/rdp_desktop_session.h

Issue 1115773002: Apply automated fixits for Chrome clang plugin to remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/host/win/rdp_client_window.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 21 matching lines...) Expand all
32 // By default ATL generates locking class factories (by wrapping them in 32 // By default ATL generates locking class factories (by wrapping them in
33 // ATL::CComObjectCached) for classes hosted in a DLL. This class is compiled 33 // ATL::CComObjectCached) for classes hosted in a DLL. This class is compiled
34 // into a DLL but it is registered as an out-of-process class, so its class 34 // into a DLL but it is registered as an out-of-process class, so its class
35 // factory should not use locking. 35 // factory should not use locking.
36 typedef ATL::CComCreator<ATL::CComObjectNoLock<ATL::CComClassFactory> > 36 typedef ATL::CComCreator<ATL::CComObjectNoLock<ATL::CComClassFactory> >
37 _ClassFactoryCreatorClass; 37 _ClassFactoryCreatorClass;
38 38
39 RdpDesktopSession(); 39 RdpDesktopSession();
40 40
41 // IRdpDesktopSession implementation. 41 // IRdpDesktopSession implementation.
42 STDMETHOD(Connect)(long width, long height, BSTR terminal_id, 42 STDMETHOD(Connect)(long width,
43 IRdpDesktopSessionEventHandler* event_handler); 43 long height,
44 STDMETHOD(Disconnect)(); 44 BSTR terminal_id,
45 STDMETHOD(ChangeResolution)(long width, long height); 45 IRdpDesktopSessionEventHandler* event_handler) override;
46 STDMETHOD(InjectSas)(); 46 STDMETHOD(Disconnect)() override;
47 STDMETHOD(ChangeResolution)(long width, long height) override;
48 STDMETHOD(InjectSas)() override;
47 49
48 DECLARE_NO_REGISTRY() 50 DECLARE_NO_REGISTRY()
49 51
50 private: 52 private:
51 // RdpClient::EventHandler interface. 53 // RdpClient::EventHandler interface.
52 void OnRdpConnected() override; 54 void OnRdpConnected() override;
53 void OnRdpClosed() override; 55 void OnRdpClosed() override;
54 56
55 BEGIN_COM_MAP(RdpDesktopSession) 57 BEGIN_COM_MAP(RdpDesktopSession)
56 COM_INTERFACE_ENTRY(IRdpDesktopSession) 58 COM_INTERFACE_ENTRY(IRdpDesktopSession)
57 COM_INTERFACE_ENTRY(IUnknown) 59 COM_INTERFACE_ENTRY(IUnknown)
58 END_COM_MAP() 60 END_COM_MAP()
59 61
60 // Implements loading and instantiation of the RDP ActiveX client. 62 // Implements loading and instantiation of the RDP ActiveX client.
61 scoped_ptr<RdpClient> client_; 63 scoped_ptr<RdpClient> client_;
62 64
63 // Holds a reference to the caller's EventHandler, through which notifications 65 // Holds a reference to the caller's EventHandler, through which notifications
64 // are dispatched. Released in Disconnect(), to prevent further notifications. 66 // are dispatched. Released in Disconnect(), to prevent further notifications.
65 base::win::ScopedComPtr<IRdpDesktopSessionEventHandler> event_handler_; 67 base::win::ScopedComPtr<IRdpDesktopSessionEventHandler> event_handler_;
66 68
67 DECLARE_PROTECT_FINAL_CONSTRUCT() 69 DECLARE_PROTECT_FINAL_CONSTRUCT()
68 }; 70 };
69 71
70 } // namespace remoting 72 } // namespace remoting
71 73
72 #endif // REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_ 74 #endif // REMOTING_HOST_WIN_RDP_DESKTOP_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/win/rdp_client_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698