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

Unified Diff: remoting/host/win/worker_process_launcher.h

Issue 2936603003: [Chromoting] Implement host safe-mode
Patch Set: Created 3 years, 6 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/win/unprivileged_process_delegate.cc ('k') | remoting/host/win/worker_process_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/worker_process_launcher.h
diff --git a/remoting/host/win/worker_process_launcher.h b/remoting/host/win/worker_process_launcher.h
index 6c68206a2a8e2d8ca23725ed73538308720d4e78..19a98ca49a315bb338691b5c7e7764167b3b3773 100644
--- a/remoting/host/win/worker_process_launcher.h
+++ b/remoting/host/win/worker_process_launcher.h
@@ -10,6 +10,7 @@
#include <memory>
#include "base/callback.h"
+#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -97,6 +98,9 @@ class WorkerProcessLauncher : public base::win::ObjectWatcher::Delegate {
void OnChannelConnected(int32_t peer_pid);
void OnChannelError();
+ // Appends extra command line switches to |command_line|.
+ void AppendSwitches(base::CommandLine* command_line) const;
+
private:
friend class WorkerProcessLauncherTest;
@@ -161,6 +165,9 @@ class WorkerProcessLauncher : public base::win::ObjectWatcher::Delegate {
// The handle of the worker process, if launched.
base::win::ScopedHandle worker_process_;
+ // How many times the process has been started.
+ int start_counter_ = 0;
+
SEQUENCE_CHECKER(sequence_checker_);
DISALLOW_COPY_AND_ASSIGN(WorkerProcessLauncher);
« no previous file with comments | « remoting/host/win/unprivileged_process_delegate.cc ('k') | remoting/host/win/worker_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698