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: services/service_manager/runner/host/child_process.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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
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 "services/shell/runner/host/child_process.h" 5 #include "services/service_manager/runner/host/child_process.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/base_switches.h" 12 #include "base/base_switches.h"
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/callback_helpers.h" 14 #include "base/callback_helpers.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/i18n/icu_util.h" 17 #include "base/i18n/icu_util.h"
18 #include "base/location.h" 18 #include "base/location.h"
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/memory/ref_counted.h" 21 #include "base/memory/ref_counted.h"
22 #include "base/message_loop/message_loop.h" 22 #include "base/message_loop/message_loop.h"
23 #include "base/single_thread_task_runner.h" 23 #include "base/single_thread_task_runner.h"
24 #include "base/synchronization/waitable_event.h" 24 #include "base/synchronization/waitable_event.h"
25 #include "base/threading/thread.h" 25 #include "base/threading/thread.h"
26 #include "base/threading/thread_checker.h" 26 #include "base/threading/thread_checker.h"
27 #include "base/threading/thread_task_runner_handle.h" 27 #include "base/threading/thread_task_runner_handle.h"
28 #include "mojo/edk/embedder/embedder.h" 28 #include "mojo/edk/embedder/embedder.h"
29 #include "mojo/edk/embedder/platform_channel_pair.h" 29 #include "mojo/edk/embedder/platform_channel_pair.h"
30 #include "mojo/edk/embedder/process_delegate.h" 30 #include "mojo/edk/embedder/process_delegate.h"
31 #include "mojo/edk/embedder/scoped_platform_handle.h" 31 #include "mojo/edk/embedder/scoped_platform_handle.h"
32 #include "mojo/public/cpp/bindings/binding.h" 32 #include "mojo/public/cpp/bindings/binding.h"
33 #include "mojo/public/cpp/system/core.h" 33 #include "mojo/public/cpp/system/core.h"
34 #include "services/shell/runner/common/switches.h" 34 #include "services/service_manager/runner/common/switches.h"
35 #include "services/shell/runner/host/child_process_base.h" 35 #include "services/service_manager/runner/host/child_process_base.h"
36 #include "services/shell/runner/host/native_library_runner.h" 36 #include "services/service_manager/runner/host/native_library_runner.h"
37 #include "services/shell/runner/init.h" 37 #include "services/service_manager/runner/init.h"
38 38
39 namespace shell { 39 namespace shell {
40 40
41 namespace { 41 namespace {
42 42
43 void RunNativeLibrary(base::NativeLibrary library, 43 void RunNativeLibrary(base::NativeLibrary library,
44 mojom::ServiceRequest service_request) { 44 mojom::ServiceRequest service_request) {
45 if (!RunServiceInNativeLibrary(library, std::move(service_request))) { 45 if (!RunServiceInNativeLibrary(library, std::move(service_request))) {
46 LOG(ERROR) << "Failure to RunServiceInNativeLibrary()"; 46 LOG(ERROR) << "Failure to RunServiceInNativeLibrary()";
47 } 47 }
(...skipping 15 matching lines...) Expand all
63 base::i18n::InitializeICU(); 63 base::i18n::InitializeICU();
64 if (library) 64 if (library)
65 CallLibraryEarlyInitialization(library); 65 CallLibraryEarlyInitialization(library);
66 66
67 ChildProcessMainWithCallback(base::Bind(&RunNativeLibrary, library)); 67 ChildProcessMainWithCallback(base::Bind(&RunNativeLibrary, library));
68 68
69 return 0; 69 return 0;
70 } 70 }
71 71
72 } // namespace shell 72 } // namespace shell
OLDNEW
« no previous file with comments | « services/service_manager/runner/host/child_process.h ('k') | services/service_manager/runner/host/child_process_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698