| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 #include "content/browser/streams/stream_context.h" | 123 #include "content/browser/streams/stream_context.h" |
| 124 #include "content/browser/tracing/trace_message_filter.h" | 124 #include "content/browser/tracing/trace_message_filter.h" |
| 125 #include "content/browser/websockets/websocket_manager.h" | 125 #include "content/browser/websockets/websocket_manager.h" |
| 126 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 126 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| 127 #include "content/common/child_process_host_impl.h" | 127 #include "content/common/child_process_host_impl.h" |
| 128 #include "content/common/child_process_messages.h" | 128 #include "content/common/child_process_messages.h" |
| 129 #include "content/common/content_switches_internal.h" | 129 #include "content/common/content_switches_internal.h" |
| 130 #include "content/common/frame_messages.h" | 130 #include "content/common/frame_messages.h" |
| 131 #include "content/common/gpu_host_messages.h" | 131 #include "content/common/gpu_host_messages.h" |
| 132 #include "content/common/in_process_child_thread_params.h" | 132 #include "content/common/in_process_child_thread_params.h" |
| 133 #include "content/common/mojo/constants.h" |
| 133 #include "content/common/mojo/mojo_child_connection.h" | 134 #include "content/common/mojo/mojo_child_connection.h" |
| 134 #include "content/common/mojo/mojo_shell_connection_impl.h" | 135 #include "content/common/mojo/mojo_shell_connection_impl.h" |
| 135 #include "content/common/render_process_messages.h" | 136 #include "content/common/render_process_messages.h" |
| 136 #include "content/common/resource_messages.h" | 137 #include "content/common/resource_messages.h" |
| 137 #include "content/common/site_isolation_policy.h" | 138 #include "content/common/site_isolation_policy.h" |
| 138 #include "content/common/view_messages.h" | 139 #include "content/common/view_messages.h" |
| 139 #include "content/public/browser/browser_context.h" | 140 #include "content/public/browser/browser_context.h" |
| 140 #include "content/public/browser/browser_thread.h" | 141 #include "content/public/browser/browser_thread.h" |
| 141 #include "content/public/browser/content_browser_client.h" | 142 #include "content/public/browser/content_browser_client.h" |
| 142 #include "content/public/browser/notification_service.h" | 143 #include "content/public/browser/notification_service.h" |
| 143 #include "content/public/browser/notification_types.h" | 144 #include "content/public/browser/notification_types.h" |
| 144 #include "content/public/browser/render_process_host_factory.h" | 145 #include "content/public/browser/render_process_host_factory.h" |
| 145 #include "content/public/browser/render_process_host_observer.h" | 146 #include "content/public/browser/render_process_host_observer.h" |
| 146 #include "content/public/browser/render_widget_host.h" | 147 #include "content/public/browser/render_widget_host.h" |
| 147 #include "content/public/browser/render_widget_host_iterator.h" | 148 #include "content/public/browser/render_widget_host_iterator.h" |
| 148 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 149 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
| 149 #include "content/public/browser/resource_context.h" | 150 #include "content/public/browser/resource_context.h" |
| 150 #include "content/public/browser/user_metrics.h" | 151 #include "content/public/browser/user_metrics.h" |
| 151 #include "content/public/browser/worker_service.h" | 152 #include "content/public/browser/worker_service.h" |
| 152 #include "content/public/common/child_process_host.h" | 153 #include "content/public/common/child_process_host.h" |
| 153 #include "content/public/common/connection_filter.h" | 154 #include "content/public/common/connection_filter.h" |
| 154 #include "content/public/common/content_constants.h" | 155 #include "content/public/common/content_constants.h" |
| 155 #include "content/public/common/content_features.h" | 156 #include "content/public/common/content_features.h" |
| 156 #include "content/public/common/content_switches.h" | 157 #include "content/public/common/content_switches.h" |
| 157 #include "content/public/common/mojo_channel_switches.h" | 158 #include "content/public/common/mojo_channel_switches.h" |
| 158 #include "content/public/common/process_type.h" | 159 #include "content/public/common/process_type.h" |
| 159 #include "content/public/common/resource_type.h" | 160 #include "content/public/common/resource_type.h" |
| 160 #include "content/public/common/result_codes.h" | 161 #include "content/public/common/result_codes.h" |
| 161 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 162 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
| 162 #include "content/public/common/service_names.h" | |
| 163 #include "content/public/common/url_constants.h" | 163 #include "content/public/common/url_constants.h" |
| 164 #include "device/battery/battery_monitor_impl.h" | 164 #include "device/battery/battery_monitor_impl.h" |
| 165 #include "gpu/GLES2/gl2extchromium.h" | 165 #include "gpu/GLES2/gl2extchromium.h" |
| 166 #include "gpu/command_buffer/client/gpu_switches.h" | 166 #include "gpu/command_buffer/client/gpu_switches.h" |
| 167 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 167 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 168 #include "gpu/command_buffer/service/gpu_switches.h" | 168 #include "gpu/command_buffer/service/gpu_switches.h" |
| 169 #include "ipc/attachment_broker.h" | 169 #include "ipc/attachment_broker.h" |
| 170 #include "ipc/attachment_broker_privileged.h" | 170 #include "ipc/attachment_broker_privileged.h" |
| 171 #include "ipc/ipc.mojom.h" | 171 #include "ipc/ipc.mojom.h" |
| 172 #include "ipc/ipc_channel.h" | 172 #include "ipc/ipc_channel.h" |
| (...skipping 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2940 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2940 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2941 | 2941 |
| 2942 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2942 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2943 // enough information here so that we can determine what the bad message was. | 2943 // enough information here so that we can determine what the bad message was. |
| 2944 base::debug::Alias(&error); | 2944 base::debug::Alias(&error); |
| 2945 bad_message::ReceivedBadMessage(process.get(), | 2945 bad_message::ReceivedBadMessage(process.get(), |
| 2946 bad_message::RPH_MOJO_PROCESS_ERROR); | 2946 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2947 } | 2947 } |
| 2948 | 2948 |
| 2949 } // namespace content | 2949 } // namespace content |
| OLD | NEW |