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 // This file implements the Windows service controlling Me2Me host processes | 5 // This file implements the Windows service controlling Me2Me host processes |
6 // running within user sessions. | 6 // running within user sessions. |
7 | 7 |
8 #include "remoting/host/win/wts_session_process_delegate.h" | 8 #include "remoting/host/win/wts_session_process_delegate.h" |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void CloseChannel(); | 61 void CloseChannel(); |
62 void KillProcess(); | 62 void KillProcess(); |
63 | 63 |
64 private: | 64 private: |
65 friend class base::RefCountedThreadSafe<Core>; | 65 friend class base::RefCountedThreadSafe<Core>; |
66 virtual ~Core(); | 66 virtual ~Core(); |
67 | 67 |
68 // base::MessagePumpForIO::IOHandler implementation. | 68 // base::MessagePumpForIO::IOHandler implementation. |
69 virtual void OnIOCompleted(base::MessagePumpForIO::IOContext* context, | 69 virtual void OnIOCompleted(base::MessagePumpForIO::IOContext* context, |
70 DWORD bytes_transferred, | 70 DWORD bytes_transferred, |
71 DWORD error) OVERRIDE; | 71 DWORD error) override; |
72 | 72 |
73 // IPC::Listener implementation. | 73 // IPC::Listener implementation. |
74 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 74 virtual bool OnMessageReceived(const IPC::Message& message) override; |
75 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 75 virtual void OnChannelConnected(int32 peer_pid) override; |
76 virtual void OnChannelError() OVERRIDE; | 76 virtual void OnChannelError() override; |
77 | 77 |
78 // The actual implementation of LaunchProcess() | 78 // The actual implementation of LaunchProcess() |
79 void DoLaunchProcess(); | 79 void DoLaunchProcess(); |
80 | 80 |
81 // Drains the completion port queue to make sure that all job object | 81 // Drains the completion port queue to make sure that all job object |
82 // notifications have been received. | 82 // notifications have been received. |
83 void DrainJobNotifications(); | 83 void DrainJobNotifications(); |
84 | 84 |
85 // Notified that the completion port queue has been drained. | 85 // Notified that the completion port queue has been drained. |
86 void DrainJobNotificationsCompleted(); | 86 void DrainJobNotificationsCompleted(); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 558 |
559 void WtsSessionProcessDelegate::CloseChannel() { | 559 void WtsSessionProcessDelegate::CloseChannel() { |
560 core_->CloseChannel(); | 560 core_->CloseChannel(); |
561 } | 561 } |
562 | 562 |
563 void WtsSessionProcessDelegate::KillProcess() { | 563 void WtsSessionProcessDelegate::KillProcess() { |
564 core_->KillProcess(); | 564 core_->KillProcess(); |
565 } | 565 } |
566 | 566 |
567 } // namespace remoting | 567 } // namespace remoting |
OLD | NEW |