OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/utility_process_host_impl.h" | 5 #include "content/browser/utility_process_host_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "content/public/common/content_switches.h" | 36 #include "content/public/common/content_switches.h" |
37 #include "content/public/common/mojo_channel_switches.h" | 37 #include "content/public/common/mojo_channel_switches.h" |
38 #include "content/public/common/mojo_shell_connection.h" | 38 #include "content/public/common/mojo_shell_connection.h" |
39 #include "content/public/common/process_type.h" | 39 #include "content/public/common/process_type.h" |
40 #include "content/public/common/sandbox_type.h" | 40 #include "content/public/common/sandbox_type.h" |
41 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 41 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
42 #include "ipc/ipc_switches.h" | 42 #include "ipc/ipc_switches.h" |
43 #include "mojo/edk/embedder/embedder.h" | 43 #include "mojo/edk/embedder/embedder.h" |
44 #include "services/shell/public/cpp/connection.h" | 44 #include "services/shell/public/cpp/connection.h" |
45 #include "services/shell/public/cpp/interface_provider.h" | 45 #include "services/shell/public/cpp/interface_provider.h" |
46 #include "services/shell/public/cpp/interface_registry.h" | |
47 #include "ui/base/ui_base_switches.h" | 46 #include "ui/base/ui_base_switches.h" |
48 | 47 |
49 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 48 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
50 #include "content/public/browser/zygote_handle_linux.h" | 49 #include "content/public/browser/zygote_handle_linux.h" |
51 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 50 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
52 | 51 |
53 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
54 #include "sandbox/win/src/sandbox_policy.h" | 53 #include "sandbox/win/src/sandbox_policy.h" |
55 #include "sandbox/win/src/sandbox_types.h" | 54 #include "sandbox/win/src/sandbox_types.h" |
56 #endif | 55 #endif |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 base::WeakPtr<UtilityProcessHostImpl> host, | 419 base::WeakPtr<UtilityProcessHostImpl> host, |
421 int error_code) { | 420 int error_code) { |
422 if (!host) | 421 if (!host) |
423 return; | 422 return; |
424 | 423 |
425 host->OnProcessLaunchFailed(error_code); | 424 host->OnProcessLaunchFailed(error_code); |
426 delete host.get(); | 425 delete host.get(); |
427 } | 426 } |
428 | 427 |
429 } // namespace content | 428 } // namespace content |
OLD | NEW |