| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 #include "ipc/ipc.mojom.h" | 174 #include "ipc/ipc.mojom.h" |
| 175 #include "ipc/ipc_channel.h" | 175 #include "ipc/ipc_channel.h" |
| 176 #include "ipc/ipc_channel_mojo.h" | 176 #include "ipc/ipc_channel_mojo.h" |
| 177 #include "ipc/ipc_logging.h" | 177 #include "ipc/ipc_logging.h" |
| 178 #include "media/base/media_switches.h" | 178 #include "media/base/media_switches.h" |
| 179 #include "media/media_features.h" | 179 #include "media/media_features.h" |
| 180 #include "mojo/edk/embedder/embedder.h" | 180 #include "mojo/edk/embedder/embedder.h" |
| 181 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" | 181 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
| 182 #include "net/url_request/url_request_context_getter.h" | 182 #include "net/url_request/url_request_context_getter.h" |
| 183 #include "ppapi/features/features.h" | 183 #include "ppapi/features/features.h" |
| 184 #include "ppapi/shared_impl/ppapi_switches.h" | |
| 185 #include "services/service_manager/public/cpp/connection.h" | 184 #include "services/service_manager/public/cpp/connection.h" |
| 186 #include "services/service_manager/public/cpp/interface_provider.h" | 185 #include "services/service_manager/public/cpp/interface_provider.h" |
| 187 #include "services/service_manager/public/cpp/interface_registry.h" | 186 #include "services/service_manager/public/cpp/interface_registry.h" |
| 188 #include "services/service_manager/runner/common/client_util.h" | 187 #include "services/service_manager/runner/common/client_util.h" |
| 189 #include "services/service_manager/runner/common/switches.h" | 188 #include "services/service_manager/runner/common/switches.h" |
| 190 #include "services/shape_detection/public/interfaces/barcodedetection.mojom.h" | 189 #include "services/shape_detection/public/interfaces/barcodedetection.mojom.h" |
| 191 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo
m.h" | 190 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo
m.h" |
| 192 #include "services/shape_detection/public/interfaces/textdetection.mojom.h" | 191 #include "services/shape_detection/public/interfaces/textdetection.mojom.h" |
| 193 #include "storage/browser/fileapi/sandbox_file_system_backend.h" | 192 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
| 194 #include "third_party/WebKit/public/public_features.h" | 193 #include "third_party/WebKit/public/public_features.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 #include "content/browser/zygote_host/zygote_host_impl_linux.h" | 226 #include "content/browser/zygote_host/zygote_host_impl_linux.h" |
| 228 #include "content/public/browser/zygote_handle_linux.h" | 227 #include "content/public/browser/zygote_handle_linux.h" |
| 229 #endif // defined(OS_POSIX) | 228 #endif // defined(OS_POSIX) |
| 230 | 229 |
| 231 #if defined(USE_OZONE) | 230 #if defined(USE_OZONE) |
| 232 #include "ui/ozone/public/ozone_switches.h" | 231 #include "ui/ozone/public/ozone_switches.h" |
| 233 #endif | 232 #endif |
| 234 | 233 |
| 235 #if BUILDFLAG(ENABLE_PLUGINS) | 234 #if BUILDFLAG(ENABLE_PLUGINS) |
| 236 #include "content/browser/plugin_service_impl.h" | 235 #include "content/browser/plugin_service_impl.h" |
| 236 #include "ppapi/shared_impl/ppapi_switches.h" // nogncheck |
| 237 #endif | 237 #endif |
| 238 | 238 |
| 239 #if BUILDFLAG(ENABLE_WEBRTC) | 239 #if BUILDFLAG(ENABLE_WEBRTC) |
| 240 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" | 240 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" |
| 241 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 241 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
| 242 #include "content/browser/webrtc/webrtc_internals.h" | 242 #include "content/browser/webrtc/webrtc_internals.h" |
| 243 #include "content/common/media/aec_dump_messages.h" | 243 #include "content/common/media/aec_dump_messages.h" |
| 244 #include "content/common/media/media_stream_messages.h" | 244 #include "content/common/media/media_stream_messages.h" |
| 245 #endif | 245 #endif |
| 246 | 246 |
| (...skipping 2794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3041 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3041 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3042 | 3042 |
| 3043 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3043 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3044 // Capture the error message in a crash key value. | 3044 // Capture the error message in a crash key value. |
| 3045 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3045 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3046 bad_message::ReceivedBadMessage(render_process_id, | 3046 bad_message::ReceivedBadMessage(render_process_id, |
| 3047 bad_message::RPH_MOJO_PROCESS_ERROR); | 3047 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3048 } | 3048 } |
| 3049 | 3049 |
| 3050 } // namespace content | 3050 } // namespace content |
| OLD | NEW |