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

Side by Side Diff: remoting/host/desktop_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/daemon_process_win.cc ('k') | remoting/host/desktop_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_DESKTOP_PROCESS_H_ 5 #ifndef REMOTING_HOST_DESKTOP_PROCESS_H_
6 #define REMOTING_HOST_DESKTOP_PROCESS_H_ 6 #define REMOTING_HOST_DESKTOP_PROCESS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Injects Secure Attention Sequence. 48 // Injects Secure Attention Sequence.
49 void InjectSas(); 49 void InjectSas();
50 50
51 // Creates the desktop agent and required threads and IPC channels. Returns 51 // Creates the desktop agent and required threads and IPC channels. Returns
52 // true on success. 52 // true on success.
53 bool Start(scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory); 53 bool Start(scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory);
54 54
55 private: 55 private:
56 // Crashes the process in response to a daemon's request. The daemon passes 56 // Crashes the process in response to a daemon's request. The daemon passes
57 // the location of the code that detected the fatal error resulted in this 57 // the location of the code that detected the fatal error resulted in this
58 // request. See the declaration of ChromotingDaemonDesktopMsg_Crash message. 58 // request. See the declaration of ChromotingDaemonMsg_Crash message.
59 void OnCrash(const std::string& function_name, 59 void OnCrash(const std::string& function_name,
60 const std::string& file_name, 60 const std::string& file_name,
61 const int& line_number); 61 const int& line_number);
62 62
63 // Task runner on which public methods of this class should be called. 63 // Task runner on which public methods of this class should be called.
64 scoped_refptr<AutoThreadTaskRunner> caller_task_runner_; 64 scoped_refptr<AutoThreadTaskRunner> caller_task_runner_;
65 65
66 // Factory used to create integration components for use by |desktop_agent_|. 66 // Factory used to create integration components for use by |desktop_agent_|.
67 scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; 67 scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_;
68 68
69 // Name of the IPC channel connecting the desktop process with the daemon 69 // Name of the IPC channel connecting the desktop process with the daemon
70 // process. 70 // process.
71 std::string daemon_channel_name_; 71 std::string daemon_channel_name_;
72 72
73 // IPC channel connecting the desktop process with the daemon process. 73 // IPC channel connecting the desktop process with the daemon process.
74 scoped_ptr<IPC::ChannelProxy> daemon_channel_; 74 scoped_ptr<IPC::ChannelProxy> daemon_channel_;
75 75
76 // Provides screen/audio capturing and input injection services for 76 // Provides screen/audio capturing and input injection services for
77 // the network process. 77 // the network process.
78 scoped_refptr<DesktopSessionAgent> desktop_agent_; 78 scoped_refptr<DesktopSessionAgent> desktop_agent_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(DesktopProcess); 80 DISALLOW_COPY_AND_ASSIGN(DesktopProcess);
81 }; 81 };
82 82
83 } // namespace remoting 83 } // namespace remoting
84 84
85 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_ 85 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_
OLDNEW
« no previous file with comments | « remoting/host/daemon_process_win.cc ('k') | remoting/host/desktop_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698