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

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

Issue 11040065: [Chromoting] Reimplemented the worker process launcher to take into account the encountered issues: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: remoting/host/win/wts_session_process_delegate.h
diff --git a/remoting/host/win/wts_session_process_delegate.h b/remoting/host/win/wts_session_process_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..53d5bda01c0f48e9708b80adc9a0b98ba8084f3d
--- /dev/null
+++ b/remoting/host/win/wts_session_process_delegate.h
@@ -0,0 +1,52 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
+#define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
+#include "remoting/host/win/worker_process_launcher.h"
+
+class FilePath;
+
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace base
+
+namespace remoting {
+
+class WtsSessionProcessDelegateImpl;
+
+// Implements logic for launching and monitoring a worker process in a different
+// session.
+class WtsSessionProcessDelegate
+ : public WorkerProcessLauncher::Delegate {
+ public:
+ WtsSessionProcessDelegate(
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
+ const FilePath& binary_path,
+ uint32 session_id,
+ bool launch_elevated);
+ ~WtsSessionProcessDelegate();
+
+ // WorkerProcessLauncher::Delegate implementation.
+ virtual DWORD GetExitCode() OVERRIDE;
+ virtual void KillProcess(DWORD exit_code) OVERRIDE;
+ virtual bool LaunchProcess(
+ const std::string& channel_name,
+ base::win::ScopedHandle* process_exit_event_out) OVERRIDE;
+
+ private:
+ // The actual implementation resides in WtsSessionProcessDelegateImpl class.
+ scoped_refptr<WtsSessionProcessDelegateImpl> impl_;
+
+ DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698