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

Side by Side Diff: shell/out_of_process_native_runner.cc

Issue 961053005: More shell cleanup: Move NativeRunner(Factory) to native_runner.h. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 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
« no previous file with comments | « shell/out_of_process_native_runner.h ('k') | no next file » | 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 #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
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
OLDNEW
« no previous file with comments | « shell/out_of_process_native_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698