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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |