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

Side by Side Diff: remoting/host/win/wts_session_process_delegate.h

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/win/unprivileged_process_delegate.h ('k') | skia/ext/image_operations_bench.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_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 5 #ifndef REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
13 #include "remoting/host/win/worker_process_launcher.h" 13 #include "remoting/host/win/worker_process_launcher.h"
14 14
15 namespace base {
15 class CommandLine; 16 class CommandLine;
16
17 namespace base {
18 class SingleThreadTaskRunner; 17 class SingleThreadTaskRunner;
19 } // namespace base 18 } // namespace base
20 19
21 namespace IPC { 20 namespace IPC {
22 class Message; 21 class Message;
23 } // namespace base 22 } // namespace base
24 23
25 namespace remoting { 24 namespace remoting {
26 25
27 // Implements logic for launching and monitoring a worker process in a different 26 // Implements logic for launching and monitoring a worker process in a different
28 // session. 27 // session.
29 class WtsSessionProcessDelegate 28 class WtsSessionProcessDelegate
30 : public base::NonThreadSafe, 29 : public base::NonThreadSafe,
31 public WorkerProcessLauncher::Delegate { 30 public WorkerProcessLauncher::Delegate {
32 public: 31 public:
33 WtsSessionProcessDelegate( 32 WtsSessionProcessDelegate(
34 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 33 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
35 scoped_ptr<CommandLine> target, 34 scoped_ptr<base::CommandLine> target,
36 bool launch_elevated, 35 bool launch_elevated,
37 const std::string& channel_security); 36 const std::string& channel_security);
38 ~WtsSessionProcessDelegate(); 37 ~WtsSessionProcessDelegate();
39 38
40 // Initializes the object returning true on success. 39 // Initializes the object returning true on success.
41 bool Initialize(uint32 session_id); 40 bool Initialize(uint32 session_id);
42 41
43 // WorkerProcessLauncher::Delegate implementation. 42 // WorkerProcessLauncher::Delegate implementation.
44 virtual void LaunchProcess(WorkerProcessLauncher* event_handler) OVERRIDE; 43 virtual void LaunchProcess(WorkerProcessLauncher* event_handler) OVERRIDE;
45 virtual void Send(IPC::Message* message) OVERRIDE; 44 virtual void Send(IPC::Message* message) OVERRIDE;
46 virtual void CloseChannel() OVERRIDE; 45 virtual void CloseChannel() OVERRIDE;
47 virtual void KillProcess() OVERRIDE; 46 virtual void KillProcess() OVERRIDE;
48 47
49 private: 48 private:
50 // The actual implementation resides in WtsSessionProcessDelegate::Core class. 49 // The actual implementation resides in WtsSessionProcessDelegate::Core class.
51 class Core; 50 class Core;
52 scoped_refptr<Core> core_; 51 scoped_refptr<Core> core_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); 53 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate);
55 }; 54 };
56 55
57 } // namespace remoting 56 } // namespace remoting
58 57
59 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 58 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/host/win/unprivileged_process_delegate.h ('k') | skia/ext/image_operations_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698