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

Side by Side Diff: remoting/host/win/rdp_client.cc

Issue 1101033002: Update {virtual,override} to follow C++11 style in remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/host_service.h ('k') | remoting/host/win/rdp_client_unittest.cc » ('j') | 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 #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
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 void OnConnected() override;
60 virtual void OnDisconnected() override; 60 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 ~Core() override;
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
71 // Task runner on which the caller expects |event_handler_| to be notified. 71 // Task runner on which the caller expects |event_handler_| to be notified.
72 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; 72 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_;
73 73
74 // Task runner on which |rdp_client_window_| is running. 74 // Task runner on which |rdp_client_window_| is running.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 227 }
228 228
229 if (event_handler_) { 229 if (event_handler_) {
230 RdpClient::EventHandler* event_handler = event_handler_; 230 RdpClient::EventHandler* event_handler = event_handler_;
231 event_handler_ = nullptr; 231 event_handler_ = nullptr;
232 event_handler->OnRdpClosed(); 232 event_handler->OnRdpClosed();
233 } 233 }
234 } 234 }
235 235
236 } // namespace remoting 236 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/host_service.h ('k') | remoting/host/win/rdp_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698