OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/desktop_session_win.h" | 5 #include "remoting/host/desktop_session_win.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <sddl.h> | 8 #include <sddl.h> |
9 | 9 |
10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 STDMETHODIMP RdpSession::EventHandler::QueryInterface(REFIID riid, void** ppv) { | 327 STDMETHODIMP RdpSession::EventHandler::QueryInterface(REFIID riid, void** ppv) { |
328 DCHECK(thread_checker_.CalledOnValidThread()); | 328 DCHECK(thread_checker_.CalledOnValidThread()); |
329 | 329 |
330 if (riid == IID_IUnknown || | 330 if (riid == IID_IUnknown || |
331 riid == IID_IRdpDesktopSessionEventHandler) { | 331 riid == IID_IRdpDesktopSessionEventHandler) { |
332 *ppv = static_cast<IRdpDesktopSessionEventHandler*>(this); | 332 *ppv = static_cast<IRdpDesktopSessionEventHandler*>(this); |
333 AddRef(); | 333 AddRef(); |
334 return S_OK; | 334 return S_OK; |
335 } | 335 } |
336 | 336 |
337 *ppv = NULL; | 337 *ppv = nullptr; |
338 return E_NOINTERFACE; | 338 return E_NOINTERFACE; |
339 } | 339 } |
340 | 340 |
341 STDMETHODIMP RdpSession::EventHandler::OnRdpConnected() { | 341 STDMETHODIMP RdpSession::EventHandler::OnRdpConnected() { |
342 DCHECK(thread_checker_.CalledOnValidThread()); | 342 DCHECK(thread_checker_.CalledOnValidThread()); |
343 | 343 |
344 if (desktop_session_) | 344 if (desktop_session_) |
345 desktop_session_->OnRdpConnected(); | 345 desktop_session_->OnRdpConnected(); |
346 | 346 |
347 return S_OK; | 347 return S_OK; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 exploded.hour, | 598 exploded.hour, |
599 exploded.minute, | 599 exploded.minute, |
600 exploded.second, | 600 exploded.second, |
601 exploded.millisecond, | 601 exploded.millisecond, |
602 passed.c_str()); | 602 passed.c_str()); |
603 | 603 |
604 last_timestamp_ = now; | 604 last_timestamp_ = now; |
605 } | 605 } |
606 | 606 |
607 } // namespace remoting | 607 } // namespace remoting |
OLD | NEW |