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 #include "remoting/host/win/rdp_client.h" | 5 #include "remoting/host/win/rdp_client.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void Connect(const webrtc::DesktopSize& screen_size, | 49 void Connect(const webrtc::DesktopSize& screen_size, |
50 const std::string& terminal_id); | 50 const std::string& terminal_id); |
51 | 51 |
52 // Initiates a graceful shutdown of the RDP connection. | 52 // Initiates a graceful shutdown of the RDP connection. |
53 void Disconnect(); | 53 void Disconnect(); |
54 | 54 |
55 // Sends Secure Attention Sequence to the session. | 55 // Sends Secure Attention Sequence to the session. |
56 void InjectSas(); | 56 void InjectSas(); |
57 | 57 |
58 // RdpClientWindow::EventHandler interface. | 58 // RdpClientWindow::EventHandler interface. |
59 virtual void OnConnected() OVERRIDE; | 59 virtual void OnConnected() override; |
60 virtual void OnDisconnected() OVERRIDE; | 60 virtual void OnDisconnected() override; |
61 | 61 |
62 private: | 62 private: |
63 friend class base::RefCountedThreadSafe<Core>; | 63 friend class base::RefCountedThreadSafe<Core>; |
64 virtual ~Core(); | 64 virtual ~Core(); |
65 | 65 |
66 // Helpers for the event handler's methods that make sure that OnRdpClosed() | 66 // Helpers for the event handler's methods that make sure that OnRdpClosed() |
67 // is the last notification delivered and is delevered only once. | 67 // is the last notification delivered and is delevered only once. |
68 void NotifyConnected(); | 68 void NotifyConnected(); |
69 void NotifyClosed(); | 69 void NotifyClosed(); |
70 | 70 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 225 } |
226 | 226 |
227 if (event_handler_) { | 227 if (event_handler_) { |
228 RdpClient::EventHandler* event_handler = event_handler_; | 228 RdpClient::EventHandler* event_handler = event_handler_; |
229 event_handler_ = NULL; | 229 event_handler_ = NULL; |
230 event_handler->OnRdpClosed(); | 230 event_handler->OnRdpClosed(); |
231 } | 231 } |
232 } | 232 } |
233 | 233 |
234 } // namespace remoting | 234 } // namespace remoting |
OLD | NEW |