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 "shell/out_of_process_native_runner.h" | 5 #include "shell/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 "shell/app_child_process.mojom.h" | 11 #include "shell/child_controller.mojom.h" |
12 #include "shell/child_process_host.h" | 12 #include "shell/child_process_host.h" |
13 #include "shell/in_process_native_runner.h" | 13 #include "shell/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 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 scoped_ptr<NativeRunner> OutOfProcessNativeRunnerFactory::Create( | 62 scoped_ptr<NativeRunner> OutOfProcessNativeRunnerFactory::Create( |
63 const Options& options) { | 63 const Options& options) { |
64 if (options.force_in_process) | 64 if (options.force_in_process) |
65 return make_scoped_ptr(new InProcessNativeRunner(context_)); | 65 return make_scoped_ptr(new InProcessNativeRunner(context_)); |
66 | 66 |
67 return make_scoped_ptr(new OutOfProcessNativeRunner(context_)); | 67 return make_scoped_ptr(new OutOfProcessNativeRunner(context_)); |
68 } | 68 } |
69 | 69 |
70 } // namespace shell | 70 } // namespace shell |
71 } // namespace mojo | 71 } // namespace mojo |
OLD | NEW |