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

Side by Side Diff: content/browser/utility_process_host_impl.cc

Issue 2346593002: Revert of Enforce capability spec renderer <--> browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 (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"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/process/process_handle.h" 17 #include "base/process/process_handle.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/sequenced_task_runner.h" 19 #include "base/sequenced_task_runner.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "base/synchronization/lock.h" 21 #include "base/synchronization/lock.h"
22 #include "base/synchronization/waitable_event.h" 22 #include "base/synchronization/waitable_event.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "content/browser/browser_child_process_host_impl.h" 24 #include "content/browser/browser_child_process_host_impl.h"
25 #include "content/browser/mojo/mojo_shell_context.h" 25 #include "content/browser/mojo/mojo_shell_context.h"
26 #include "content/browser/renderer_host/render_process_host_impl.h" 26 #include "content/browser/renderer_host/render_process_host_impl.h"
27 #include "content/common/child_process_host_impl.h" 27 #include "content/common/child_process_host_impl.h"
28 #include "content/common/in_process_child_thread_params.h" 28 #include "content/common/in_process_child_thread_params.h"
29 #include "content/common/mojo/constants.h"
29 #include "content/common/mojo/mojo_child_connection.h" 30 #include "content/common/mojo/mojo_child_connection.h"
30 #include "content/common/utility_messages.h" 31 #include "content/common/utility_messages.h"
31 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
32 #include "content/public/browser/content_browser_client.h" 33 #include "content/public/browser/content_browser_client.h"
33 #include "content/public/browser/utility_process_host_client.h" 34 #include "content/public/browser/utility_process_host_client.h"
34 #include "content/public/common/content_switches.h" 35 #include "content/public/common/content_switches.h"
35 #include "content/public/common/mojo_channel_switches.h" 36 #include "content/public/common/mojo_channel_switches.h"
36 #include "content/public/common/mojo_shell_connection.h" 37 #include "content/public/common/mojo_shell_connection.h"
37 #include "content/public/common/process_type.h" 38 #include "content/public/common/process_type.h"
38 #include "content/public/common/sandbox_type.h" 39 #include "content/public/common/sandbox_type.h"
39 #include "content/public/common/sandboxed_process_launcher_delegate.h" 40 #include "content/public/common/sandboxed_process_launcher_delegate.h"
40 #include "content/public/common/service_names.h"
41 #include "ipc/ipc_switches.h" 41 #include "ipc/ipc_switches.h"
42 #include "mojo/edk/embedder/embedder.h" 42 #include "mojo/edk/embedder/embedder.h"
43 #include "services/shell/public/cpp/connection.h" 43 #include "services/shell/public/cpp/connection.h"
44 #include "services/shell/public/cpp/interface_provider.h" 44 #include "services/shell/public/cpp/interface_provider.h"
45 #include "ui/base/ui_base_switches.h" 45 #include "ui/base/ui_base_switches.h"
46 46
47 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 47 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
48 #include "content/public/browser/zygote_handle_linux.h" 48 #include "content/public/browser/zygote_handle_linux.h"
49 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 49 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
50 50
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 base::WeakPtr<UtilityProcessHostImpl> host, 401 base::WeakPtr<UtilityProcessHostImpl> host,
402 int error_code) { 402 int error_code) {
403 if (!host) 403 if (!host)
404 return; 404 return;
405 405
406 host->OnProcessLaunchFailed(error_code); 406 host->OnProcessLaunchFailed(error_code);
407 delete host.get(); 407 delete host.get();
408 } 408 }
409 409
410 } // namespace content 410 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698