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/renderer_host/render_message_filter.h" | 5 #include "content/browser/renderer_host/render_message_filter.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "content/common/child_process_messages.h" | 44 #include "content/common/child_process_messages.h" |
45 #include "content/common/content_constants_internal.h" | 45 #include "content/common/content_constants_internal.h" |
46 #include "content/common/render_message_filter.mojom.h" | 46 #include "content/common/render_message_filter.mojom.h" |
47 #include "content/common/render_process_messages.h" | 47 #include "content/common/render_process_messages.h" |
48 #include "content/common/view_messages.h" | 48 #include "content/common/view_messages.h" |
49 #include "content/public/browser/browser_child_process_host.h" | 49 #include "content/public/browser/browser_child_process_host.h" |
50 #include "content/public/browser/browser_context.h" | 50 #include "content/public/browser/browser_context.h" |
51 #include "content/public/browser/browser_thread.h" | 51 #include "content/public/browser/browser_thread.h" |
52 #include "content/public/browser/content_browser_client.h" | 52 #include "content/public/browser/content_browser_client.h" |
53 #include "content/public/browser/resource_context.h" | 53 #include "content/public/browser/resource_context.h" |
54 #include "content/public/browser/user_metrics.h" | |
55 #include "content/public/common/content_switches.h" | 54 #include "content/public/common/content_switches.h" |
56 #include "content/public/common/context_menu_params.h" | 55 #include "content/public/common/context_menu_params.h" |
57 #include "content/public/common/url_constants.h" | 56 #include "content/public/common/url_constants.h" |
58 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" | 57 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" |
59 #include "ipc/ipc_channel_handle.h" | 58 #include "ipc/ipc_channel_handle.h" |
60 #include "ipc/ipc_platform_file.h" | 59 #include "ipc/ipc_platform_file.h" |
61 #include "media/base/media_log_event.h" | 60 #include "media/base/media_log_event.h" |
62 #include "mojo/public/cpp/system/platform_handle.h" | 61 #include "mojo/public/cpp/system/platform_handle.h" |
63 #include "net/base/io_buffer.h" | 62 #include "net/base/io_buffer.h" |
64 #include "net/base/mime_util.h" | 63 #include "net/base/mime_util.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 void RenderMessageFilter::GetGpuProcessHandlesCallback( | 409 void RenderMessageFilter::GetGpuProcessHandlesCallback( |
411 std::unique_ptr<IPC::Message> reply, | 410 std::unique_ptr<IPC::Message> reply, |
412 const std::list<base::ProcessHandle>& handles) { | 411 const std::list<base::ProcessHandle>& handles) { |
413 bool has_gpu_process = handles.size() > 0; | 412 bool has_gpu_process = handles.size() > 0; |
414 ChildProcessHostMsg_HasGpuProcess::WriteReplyParams(reply.get(), | 413 ChildProcessHostMsg_HasGpuProcess::WriteReplyParams(reply.get(), |
415 has_gpu_process); | 414 has_gpu_process); |
416 Send(reply.release()); | 415 Send(reply.release()); |
417 } | 416 } |
418 | 417 |
419 } // namespace content | 418 } // namespace content |
OLD | NEW |