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

Side by Side Diff: services/shell/runner/host/child_process.cc

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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 "mojo/shell/runner/host/child_process.h" 5 #include "services/shell/runner/host/child_process.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/base_switches.h" 11 #include "base/base_switches.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback_helpers.h" 13 #include "base/callback_helpers.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/debug/stack_trace.h" 15 #include "base/debug/stack_trace.h"
(...skipping 10 matching lines...) Expand all
26 #include "base/thread_task_runner_handle.h" 26 #include "base/thread_task_runner_handle.h"
27 #include "base/threading/thread.h" 27 #include "base/threading/thread.h"
28 #include "base/threading/thread_checker.h" 28 #include "base/threading/thread_checker.h"
29 #include "mojo/edk/embedder/embedder.h" 29 #include "mojo/edk/embedder/embedder.h"
30 #include "mojo/edk/embedder/platform_channel_pair.h" 30 #include "mojo/edk/embedder/platform_channel_pair.h"
31 #include "mojo/edk/embedder/process_delegate.h" 31 #include "mojo/edk/embedder/process_delegate.h"
32 #include "mojo/edk/embedder/scoped_platform_handle.h" 32 #include "mojo/edk/embedder/scoped_platform_handle.h"
33 #include "mojo/message_pump/message_pump_mojo.h" 33 #include "mojo/message_pump/message_pump_mojo.h"
34 #include "mojo/public/cpp/bindings/binding.h" 34 #include "mojo/public/cpp/bindings/binding.h"
35 #include "mojo/public/cpp/system/core.h" 35 #include "mojo/public/cpp/system/core.h"
36 #include "mojo/shell/runner/common/switches.h" 36 #include "services/shell/runner/common/switches.h"
37 #include "mojo/shell/runner/host/child_process_base.h" 37 #include "services/shell/runner/host/child_process_base.h"
38 #include "mojo/shell/runner/host/native_application_support.h" 38 #include "services/shell/runner/host/native_application_support.h"
39 #include "mojo/shell/runner/init.h" 39 #include "services/shell/runner/init.h"
40 40
41 #if defined(OS_LINUX) && !defined(OS_ANDROID) 41 #if defined(OS_LINUX) && !defined(OS_ANDROID)
42 #include "base/rand_util.h" 42 #include "base/rand_util.h"
43 #include "base/sys_info.h" 43 #include "base/sys_info.h"
44 #include "mojo/shell/runner/host/linux_sandbox.h" 44 #include "services/shell/runner/host/linux_sandbox.h"
45 #endif 45 #endif
46 46
47 #if defined(OS_MACOSX) 47 #if defined(OS_MACOSX)
48 #include "mojo/shell/runner/host/mach_broker.h" 48 #include "services/shell/runner/host/mach_broker.h"
49 #endif 49 #endif
50 50
51 namespace mojo { 51 namespace mojo {
52 namespace shell { 52 namespace shell {
53 53
54 namespace { 54 namespace {
55 55
56 #if defined(OS_LINUX) && !defined(OS_ANDROID) 56 #if defined(OS_LINUX) && !defined(OS_ANDROID)
57 scoped_ptr<mojo::shell::LinuxSandbox> InitializeSandbox() { 57 scoped_ptr<mojo::shell::LinuxSandbox> InitializeSandbox() {
58 using sandbox::syscall_broker::BrokerFilePermission; 58 using sandbox::syscall_broker::BrokerFilePermission;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 sandbox = InitializeSandbox(); 122 sandbox = InitializeSandbox();
123 #endif 123 #endif
124 124
125 ChildProcessMain(base::Bind(&RunNativeLibrary, app_library)); 125 ChildProcessMain(base::Bind(&RunNativeLibrary, app_library));
126 126
127 return 0; 127 return 0;
128 } 128 }
129 129
130 } // namespace shell 130 } // namespace shell
131 } // namespace mojo 131 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698