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

Side by Side Diff: shell/child_process.h

Issue 1040413003: Shell: Remove the test child stuff. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « shell/app_child_process_host_unittest.cc ('k') | shell/child_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SHELL_CHILD_PROCESS_H_ 5 #ifndef SHELL_CHILD_PROCESS_H_
6 #define SHELL_CHILD_PROCESS_H_ 6 #define SHELL_CHILD_PROCESS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/edk/embedder/scoped_platform_handle.h" 10 #include "mojo/edk/embedder/scoped_platform_handle.h"
11 11
12 namespace base { 12 namespace base {
13 class CommandLine; 13 class CommandLine;
14 } 14 }
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace shell { 17 namespace shell {
18 18
19 // A base class for child processes -- i.e., code that is actually run within 19 // A base class for child processes -- i.e., code that is actually run within
20 // the child process. (Instances are manufactured by |Create()|.) 20 // the child process. (Instances are manufactured by |Create()|.)
21 class ChildProcess { 21 class ChildProcess {
22 public: 22 public:
23 enum Type { 23 enum Type {
24 TYPE_TEST,
25 // Hosts a single app (see app_child_process(_host).*). 24 // Hosts a single app (see app_child_process(_host).*).
26 TYPE_APP 25 TYPE_APP
27 }; 26 };
28 27
29 virtual ~ChildProcess(); 28 virtual ~ChildProcess();
30 29
31 // Returns null if the command line doesn't indicate that this is a child 30 // Returns null if the command line doesn't indicate that this is a child
32 // process. |main()| should call this, and if it returns non-null it should 31 // process. |main()| should call this, and if it returns non-null it should
33 // call |Main()| (without a message loop on the current thread). 32 // call |Main()| (without a message loop on the current thread).
34 static scoped_ptr<ChildProcess> Create(const base::CommandLine& command_line); 33 static scoped_ptr<ChildProcess> Create(const base::CommandLine& command_line);
(...skipping 13 matching lines...) Expand all
48 // Available in |Main()| (after a successful |Create()|). 47 // Available in |Main()| (after a successful |Create()|).
49 embedder::ScopedPlatformHandle platform_channel_; 48 embedder::ScopedPlatformHandle platform_channel_;
50 49
51 DISALLOW_COPY_AND_ASSIGN(ChildProcess); 50 DISALLOW_COPY_AND_ASSIGN(ChildProcess);
52 }; 51 };
53 52
54 } // namespace shell 53 } // namespace shell
55 } // namespace mojo 54 } // namespace mojo
56 55
57 #endif // SHELL_CHILD_PROCESS_H_ 56 #endif // SHELL_CHILD_PROCESS_H_
OLDNEW
« no previous file with comments | « shell/app_child_process_host_unittest.cc ('k') | shell/child_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698