OLD | NEW |
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 #include "mojo/shell/out_of_process_native_runner.h" | 5 #include "mojo/runner/out_of_process_native_runner.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "mojo/shell/child_process.mojom.h" | 11 #include "mojo/runner/child_process.mojom.h" |
12 #include "mojo/shell/child_process_host.h" | 12 #include "mojo/runner/child_process_host.h" |
13 #include "mojo/shell/in_process_native_runner.h" | 13 #include "mojo/runner/in_process_native_runner.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace shell { | 16 namespace shell { |
17 | 17 |
18 OutOfProcessNativeRunner::OutOfProcessNativeRunner(Context* context) | 18 OutOfProcessNativeRunner::OutOfProcessNativeRunner(Context* context) |
19 : context_(context) { | 19 : context_(context) { |
20 } | 20 } |
21 | 21 |
22 OutOfProcessNativeRunner::~OutOfProcessNativeRunner() { | 22 OutOfProcessNativeRunner::~OutOfProcessNativeRunner() { |
23 if (child_process_host_) { | 23 if (child_process_host_) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 scoped_ptr<NativeRunner> OutOfProcessNativeRunnerFactory::Create( | 63 scoped_ptr<NativeRunner> OutOfProcessNativeRunnerFactory::Create( |
64 const Options& options) { | 64 const Options& options) { |
65 if (options.force_in_process) | 65 if (options.force_in_process) |
66 return make_scoped_ptr(new InProcessNativeRunner(context_)); | 66 return make_scoped_ptr(new InProcessNativeRunner(context_)); |
67 | 67 |
68 return make_scoped_ptr(new OutOfProcessNativeRunner(context_)); | 68 return make_scoped_ptr(new OutOfProcessNativeRunner(context_)); |
69 } | 69 } |
70 | 70 |
71 } // namespace shell | 71 } // namespace shell |
72 } // namespace mojo | 72 } // namespace mojo |
OLD | NEW |