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

Side by Side Diff: remoting/host/daemon_process.h

Issue 12545006: The worker process launcher can now ask the worker to crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/daemon_process.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 #ifndef REMOTING_HOST_DAEMON_PROCESS_H_ 5 #ifndef REMOTING_HOST_DAEMON_PROCESS_H_
6 #define REMOTING_HOST_DAEMON_PROCESS_H_ 6 #define REMOTING_HOST_DAEMON_PROCESS_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/location.h"
13 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
16 #include "base/observer_list.h" 15 #include "base/observer_list.h"
17 #include "base/process.h" 16 #include "base/process.h"
18 #include "ipc/ipc_channel.h" 17 #include "ipc/ipc_channel.h"
19 #include "ipc/ipc_channel_proxy.h" 18 #include "ipc/ipc_channel_proxy.h"
20 #include "ipc/ipc_platform_file.h" 19 #include "ipc/ipc_platform_file.h"
21 #include "remoting/base/stoppable.h" 20 #include "remoting/base/stoppable.h"
22 #include "remoting/host/config_file_watcher.h" 21 #include "remoting/host/config_file_watcher.h"
23 #include "remoting/host/host_status_monitor.h" 22 #include "remoting/host/host_status_monitor.h"
24 #include "remoting/host/worker_process_ipc_delegate.h" 23 #include "remoting/host/worker_process_ipc_delegate.h"
25 24
26 struct SerializedTransportRoute; 25 struct SerializedTransportRoute;
27 26
27 namespace tracked_objects {
28 class Location;
29 } // namespace tracked_objects
30
28 namespace remoting { 31 namespace remoting {
29 32
30 class AutoThreadTaskRunner; 33 class AutoThreadTaskRunner;
31 class DesktopSession; 34 class DesktopSession;
32 struct DesktopSessionParams; 35 struct DesktopSessionParams;
33 class HostEventLogger; 36 class HostEventLogger;
34 class HostStatusObserver; 37 class HostStatusObserver;
35 38
36 // This class implements core of the daemon process. It manages the networking 39 // This class implements core of the daemon process. It manages the networking
37 // process running at lower privileges and maintains the list of desktop 40 // process running at lower privileges and maintains the list of desktop
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Stoppable implementation. 122 // Stoppable implementation.
120 virtual void DoStop() OVERRIDE; 123 virtual void DoStop() OVERRIDE;
121 124
122 // Creates a platform-specific desktop session and assigns a unique ID to it. 125 // Creates a platform-specific desktop session and assigns a unique ID to it.
123 // An implementation should validate |params| as they are received via IPC. 126 // An implementation should validate |params| as they are received via IPC.
124 virtual scoped_ptr<DesktopSession> DoCreateDesktopSession( 127 virtual scoped_ptr<DesktopSession> DoCreateDesktopSession(
125 int terminal_id, 128 int terminal_id,
126 const DesktopSessionParams& params, 129 const DesktopSessionParams& params,
127 bool virtual_terminal) = 0; 130 bool virtual_terminal) = 0;
128 131
132 // Requests the network process to crash.
133 virtual void DoCrashNetworkProcess(
134 const tracked_objects::Location& location) = 0;
135
129 // Launches the network process and establishes an IPC channel with it. 136 // Launches the network process and establishes an IPC channel with it.
130 virtual void LaunchNetworkProcess() = 0; 137 virtual void LaunchNetworkProcess() = 0;
131 138
132 scoped_refptr<AutoThreadTaskRunner> caller_task_runner() { 139 scoped_refptr<AutoThreadTaskRunner> caller_task_runner() {
133 return caller_task_runner_; 140 return caller_task_runner_;
134 } 141 }
135 142
136 scoped_refptr<AutoThreadTaskRunner> io_task_runner() { 143 scoped_refptr<AutoThreadTaskRunner> io_task_runner() {
137 return io_task_runner_; 144 return io_task_runner_;
138 } 145 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 scoped_ptr<HostEventLogger> host_event_logger_; 178 scoped_ptr<HostEventLogger> host_event_logger_;
172 179
173 base::WeakPtrFactory<DaemonProcess> weak_factory_; 180 base::WeakPtrFactory<DaemonProcess> weak_factory_;
174 181
175 DISALLOW_COPY_AND_ASSIGN(DaemonProcess); 182 DISALLOW_COPY_AND_ASSIGN(DaemonProcess);
176 }; 183 };
177 184
178 } // namespace remoting 185 } // namespace remoting
179 186
180 #endif // REMOTING_HOST_DAEMON_PROCESS_H_ 187 #endif // REMOTING_HOST_DAEMON_PROCESS_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/daemon_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698