| 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" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/hash.h" | 12 #include "base/hash.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 16 #include "base/numerics/safe_math.h" | 16 #include "base/numerics/safe_math.h" |
| 17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 18 #include "base/process/process_metrics.h" | 18 #include "base/process/process_metrics.h" |
| 19 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
| 20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
| 22 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 22 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 23 #include "content/common/child_process_messages.h" | 23 #include "content/common/child_process_messages.h" |
| 24 #include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h" | 24 #include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h" |
| 25 #include "content/public/common/child_process_host_delegate.h" | 25 #include "content/public/common/child_process_host_delegate.h" |
| 26 #include "content/public/common/content_paths.h" | 26 #include "content/public/common/content_paths.h" |
| 27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
| 28 #include "ipc/attachment_broker.h" |
| 28 #include "ipc/ipc_channel.h" | 29 #include "ipc/ipc_channel.h" |
| 29 #include "ipc/ipc_logging.h" | 30 #include "ipc/ipc_logging.h" |
| 30 #include "ipc/message_filter.h" | 31 #include "ipc/message_filter.h" |
| 31 | 32 |
| 32 #if defined(OS_LINUX) | 33 #if defined(OS_LINUX) |
| 33 #include "base/linux_util.h" | 34 #include "base/linux_util.h" |
| 34 #elif defined(OS_WIN) | 35 #elif defined(OS_WIN) |
| 35 #include "content/common/font_cache_dispatcher_win.h" | 36 #include "content/common/font_cache_dispatcher_win.h" |
| 36 #endif // OS_LINUX | 37 #endif // OS_LINUX |
| 37 | 38 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 336 } |
| 336 | 337 |
| 337 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( | 338 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( |
| 338 gfx::GpuMemoryBufferId id, | 339 gfx::GpuMemoryBufferId id, |
| 339 uint32 sync_point) { | 340 uint32 sync_point) { |
| 340 // Note: Nothing to do here as ownership of shared memory backed | 341 // Note: Nothing to do here as ownership of shared memory backed |
| 341 // GpuMemoryBuffers is passed with IPC. | 342 // GpuMemoryBuffers is passed with IPC. |
| 342 } | 343 } |
| 343 | 344 |
| 344 } // namespace content | 345 } // namespace content |
| OLD | NEW |