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/common/child_process_host_impl.h" | 5 #include "content/common/child_process_host_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "content/common/child_process_messages.h" | 25 #include "content/common/child_process_messages.h" |
26 #include "content/public/common/child_process_host_delegate.h" | 26 #include "content/public/common/child_process_host_delegate.h" |
27 #include "content/public/common/content_paths.h" | 27 #include "content/public/common/content_paths.h" |
28 #include "content/public/common/content_switches.h" | 28 #include "content/public/common/content_switches.h" |
29 #include "ipc/ipc.mojom.h" | 29 #include "ipc/ipc.mojom.h" |
30 #include "ipc/ipc_channel.h" | 30 #include "ipc/ipc_channel.h" |
31 #include "ipc/ipc_channel_mojo.h" | 31 #include "ipc/ipc_channel_mojo.h" |
32 #include "ipc/ipc_logging.h" | 32 #include "ipc/ipc_logging.h" |
33 #include "ipc/message_filter.h" | 33 #include "ipc/message_filter.h" |
34 #include "mojo/edk/embedder/embedder.h" | 34 #include "mojo/edk/embedder/embedder.h" |
35 #include "services/resource_coordinator/public/interfaces/memory/constants.mojom
.h" | 35 #include "services/resource_coordinator/public/interfaces/memory/memory_constant
s.mojom.h" |
36 #include "services/service_manager/public/cpp/interface_provider.h" | 36 #include "services/service_manager/public/cpp/interface_provider.h" |
37 | 37 |
38 #if defined(OS_LINUX) | 38 #if defined(OS_LINUX) |
39 #include "base/linux_util.h" | 39 #include "base/linux_util.h" |
40 #elif defined(OS_WIN) | 40 #elif defined(OS_WIN) |
41 #include "content/common/font_cache_dispatcher_win.h" | 41 #include "content/common/font_cache_dispatcher_win.h" |
42 #endif // OS_LINUX | 42 #endif // OS_LINUX |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 void ChildProcessHostImpl::OnBadMessageReceived(const IPC::Message& message) { | 277 void ChildProcessHostImpl::OnBadMessageReceived(const IPC::Message& message) { |
278 delegate_->OnBadMessageReceived(message); | 278 delegate_->OnBadMessageReceived(message); |
279 } | 279 } |
280 | 280 |
281 void ChildProcessHostImpl::OnShutdownRequest() { | 281 void ChildProcessHostImpl::OnShutdownRequest() { |
282 if (delegate_->CanShutdown()) | 282 if (delegate_->CanShutdown()) |
283 Send(new ChildProcessMsg_Shutdown()); | 283 Send(new ChildProcessMsg_Shutdown()); |
284 } | 284 } |
285 | 285 |
286 } // namespace content | 286 } // namespace content |
OLD | NEW |