| 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 "base/scoped_native_library.h" | |
| 12 #include "shell/app_child_process.mojom.h" | 11 #include "shell/app_child_process.mojom.h" |
| 13 #include "shell/app_child_process_host.h" | 12 #include "shell/app_child_process_host.h" |
| 14 #include "shell/in_process_native_runner.h" | 13 #include "shell/in_process_native_runner.h" |
| 15 | 14 |
| 16 namespace mojo { | 15 namespace mojo { |
| 17 namespace shell { | 16 namespace shell { |
| 18 | 17 |
| 19 OutOfProcessNativeRunner::OutOfProcessNativeRunner(Context* context) | 18 OutOfProcessNativeRunner::OutOfProcessNativeRunner(Context* context) |
| 20 : context_(context) { | 19 : context_(context) { |
| 21 } | 20 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 scoped_ptr<NativeRunner> OutOfProcessNativeRunnerFactory::Create( | 63 scoped_ptr<NativeRunner> OutOfProcessNativeRunnerFactory::Create( |
| 65 const Options& options) { | 64 const Options& options) { |
| 66 if (options.force_in_process) | 65 if (options.force_in_process) |
| 67 return make_scoped_ptr(new InProcessNativeRunner(context_)); | 66 return make_scoped_ptr(new InProcessNativeRunner(context_)); |
| 68 | 67 |
| 69 return make_scoped_ptr(new OutOfProcessNativeRunner(context_)); | 68 return make_scoped_ptr(new OutOfProcessNativeRunner(context_)); |
| 70 } | 69 } |
| 71 | 70 |
| 72 } // namespace shell | 71 } // namespace shell |
| 73 } // namespace mojo | 72 } // namespace mojo |
| OLD | NEW |