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

Unified Diff: remoting/host/daemon_process.h

Issue 11234034: Crash the network process when a fatal daemon-to-network protocol error encountered. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/daemon_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/daemon_process.h
diff --git a/remoting/host/daemon_process.h b/remoting/host/daemon_process.h
index 8d973f5fb4680eb5471f92107e9254183e08cd61..897d880ce0a94a3b767a685f5850905b61ac732f 100644
--- a/remoting/host/daemon_process.h
+++ b/remoting/host/daemon_process.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "ipc/ipc_channel.h"
@@ -69,12 +70,15 @@ class DaemonProcess
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
const base::Closure& stopped_callback);
- // Reads the host configuration and launches the network process.
- void Initialize();
-
// Creates a desktop session and assigns a unique ID to it.
void CreateDesktopSession(int terminal_id);
+ // Requests the network process to crash.
+ void CrashNetworkProcess(const tracked_objects::Location& location);
+
+ // Reads the host configuration and launches the network process.
+ void Initialize();
+
// Returns true if |terminal_id| is considered to be known. I.e. it is
// less or equal to the highest ID we have seen so far.
bool IsTerminalIdKnown(int terminal_id);
@@ -89,9 +93,6 @@ class DaemonProcess
// Launches the network process and establishes an IPC channel with it.
virtual void LaunchNetworkProcess() = 0;
- // Restart the network process.
- virtual void RestartNetworkProcess() = 0;
-
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner() {
return caller_task_runner_;
}
« 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