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

Side by Side Diff: remoting/host/desktop_session_win.cc

Issue 602763003: Remove implicit HANDLE conversions from remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/desktop_session_proxy.cc ('k') | remoting/host/ipc_util_win.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) 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 566
567 session_attach_timer_.Start( 567 session_attach_timer_.Start(
568 FROM_HERE, base::TimeDelta::FromSeconds(kSessionAttachTimeoutSeconds), 568 FROM_HERE, base::TimeDelta::FromSeconds(kSessionAttachTimeoutSeconds),
569 this, &DesktopSessionWin::OnSessionAttachTimeout); 569 this, &DesktopSessionWin::OnSessionAttachTimeout);
570 } 570 }
571 } 571 }
572 572
573 void DesktopSessionWin::OnDesktopSessionAgentAttached( 573 void DesktopSessionWin::OnDesktopSessionAgentAttached(
574 IPC::PlatformFileForTransit desktop_pipe) { 574 IPC::PlatformFileForTransit desktop_pipe) {
575 if (!daemon_process()->OnDesktopSessionAgentAttached(id(), 575 if (!daemon_process()->OnDesktopSessionAgentAttached(id(),
576 desktop_process_, 576 desktop_process_.Get(),
577 desktop_pipe)) { 577 desktop_pipe)) {
578 CrashDesktopProcess(FROM_HERE); 578 CrashDesktopProcess(FROM_HERE);
579 } 579 }
580 } 580 }
581 581
582 void DesktopSessionWin::CrashDesktopProcess( 582 void DesktopSessionWin::CrashDesktopProcess(
583 const tracked_objects::Location& location) { 583 const tracked_objects::Location& location) {
584 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 584 DCHECK(caller_task_runner_->BelongsToCurrentThread());
585 585
586 launcher_->Crash(location); 586 launcher_->Crash(location);
(...skipping 16 matching lines...) Expand all
603 exploded.hour, 603 exploded.hour,
604 exploded.minute, 604 exploded.minute,
605 exploded.second, 605 exploded.second,
606 exploded.millisecond, 606 exploded.millisecond,
607 passed.c_str()); 607 passed.c_str());
608 608
609 last_timestamp_ = now; 609 last_timestamp_ = now;
610 } 610 }
611 611
612 } // namespace remoting 612 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/ipc_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698