| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 "mojo/public/cpp/bindings/strong_binding.h" | 182 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 183 #include "net/url_request/url_request_context_getter.h" | 183 #include "net/url_request/url_request_context_getter.h" |
| 184 #include "ppapi/features/features.h" | 184 #include "ppapi/features/features.h" |
| 185 #include "services/resource_coordinator/memory/coordinator/coordinator_impl.h" | 185 #include "services/resource_coordinator/memory/coordinator/coordinator_impl.h" |
| 186 #include "services/service_manager/embedder/switches.h" |
| 186 #include "services/service_manager/public/cpp/binder_registry.h" | 187 #include "services/service_manager/public/cpp/binder_registry.h" |
| 187 #include "services/service_manager/public/cpp/connector.h" | 188 #include "services/service_manager/public/cpp/connector.h" |
| 188 #include "services/service_manager/public/cpp/interface_provider.h" | 189 #include "services/service_manager/public/cpp/interface_provider.h" |
| 189 #include "services/service_manager/runner/common/client_util.h" | 190 #include "services/service_manager/runner/common/client_util.h" |
| 190 #include "services/service_manager/runner/common/switches.h" | 191 #include "services/service_manager/runner/common/switches.h" |
| 191 #include "services/shape_detection/public/interfaces/barcodedetection.mojom.h" | 192 #include "services/shape_detection/public/interfaces/barcodedetection.mojom.h" |
| 192 #include "services/shape_detection/public/interfaces/constants.mojom.h" | 193 #include "services/shape_detection/public/interfaces/constants.mojom.h" |
| 193 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo
m.h" | 194 #include "services/shape_detection/public/interfaces/facedetection_provider.mojo
m.h" |
| 194 #include "services/shape_detection/public/interfaces/textdetection.mojom.h" | 195 #include "services/shape_detection/public/interfaces/textdetection.mojom.h" |
| 195 #include "storage/browser/fileapi/sandbox_file_system_backend.h" | 196 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
| (...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 command_line->AppendSwitchASCII(switches::kRendererClientId, | 1736 command_line->AppendSwitchASCII(switches::kRendererClientId, |
| 1736 std::to_string(GetID())); | 1737 std::to_string(GetID())); |
| 1737 } | 1738 } |
| 1738 | 1739 |
| 1739 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( | 1740 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
| 1740 const base::CommandLine& browser_cmd, | 1741 const base::CommandLine& browser_cmd, |
| 1741 base::CommandLine* renderer_cmd) { | 1742 base::CommandLine* renderer_cmd) { |
| 1742 // Propagate the following switches to the renderer command line (along | 1743 // Propagate the following switches to the renderer command line (along |
| 1743 // with any associated values) if present in the browser command line. | 1744 // with any associated values) if present in the browser command line. |
| 1744 static const char* const kSwitchNames[] = { | 1745 static const char* const kSwitchNames[] = { |
| 1746 service_manager::switches::kDisableInProcessStackTraces, |
| 1745 switches::kAgcStartupMinVolume, | 1747 switches::kAgcStartupMinVolume, |
| 1746 switches::kAecRefinedAdaptiveFilter, | 1748 switches::kAecRefinedAdaptiveFilter, |
| 1747 switches::kAllowLoopbackInPeerConnection, | 1749 switches::kAllowLoopbackInPeerConnection, |
| 1748 switches::kAndroidFontsPath, | 1750 switches::kAndroidFontsPath, |
| 1749 switches::kAudioBufferSize, | 1751 switches::kAudioBufferSize, |
| 1750 switches::kAutoplayPolicy, | 1752 switches::kAutoplayPolicy, |
| 1751 switches::kBlinkSettings, | 1753 switches::kBlinkSettings, |
| 1752 switches::kDefaultTileWidth, | 1754 switches::kDefaultTileWidth, |
| 1753 switches::kDefaultTileHeight, | 1755 switches::kDefaultTileHeight, |
| 1754 switches::kDisable2dCanvasImageChromium, | 1756 switches::kDisable2dCanvasImageChromium, |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3139 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3141 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3140 | 3142 |
| 3141 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3143 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3142 // Capture the error message in a crash key value. | 3144 // Capture the error message in a crash key value. |
| 3143 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3145 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3144 bad_message::ReceivedBadMessage(render_process_id, | 3146 bad_message::ReceivedBadMessage(render_process_id, |
| 3145 bad_message::RPH_MOJO_PROCESS_ERROR); | 3147 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3146 } | 3148 } |
| 3147 | 3149 |
| 3148 } // namespace content | 3150 } // namespace content |
| OLD | NEW |