| 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 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1626 | 1626 |
| 1627 void RenderProcessHostImpl::BindFrameSinkProvider( | 1627 void RenderProcessHostImpl::BindFrameSinkProvider( |
| 1628 const service_manager::BindSourceInfo& source_info, | 1628 const service_manager::BindSourceInfo& source_info, |
| 1629 mojom::FrameSinkProviderRequest request) { | 1629 mojom::FrameSinkProviderRequest request) { |
| 1630 frame_sink_provider_.Bind(std::move(request)); | 1630 frame_sink_provider_.Bind(std::move(request)); |
| 1631 } | 1631 } |
| 1632 | 1632 |
| 1633 void RenderProcessHostImpl::CreateStoragePartitionService( | 1633 void RenderProcessHostImpl::CreateStoragePartitionService( |
| 1634 const service_manager::BindSourceInfo& source_info, | 1634 const service_manager::BindSourceInfo& source_info, |
| 1635 mojom::StoragePartitionServiceRequest request) { | 1635 mojom::StoragePartitionServiceRequest request) { |
| 1636 // DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW! | 1636 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1637 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1637 switches::kDisableMojoLocalStorage)) { |
| 1638 switches::kMojoLocalStorage)) { | |
| 1639 storage_partition_impl_->Bind(std::move(request)); | 1638 storage_partition_impl_->Bind(std::move(request)); |
| 1640 } | 1639 } |
| 1641 } | 1640 } |
| 1642 | 1641 |
| 1643 void RenderProcessHostImpl::CreateURLLoaderFactory( | 1642 void RenderProcessHostImpl::CreateURLLoaderFactory( |
| 1644 const service_manager::BindSourceInfo& source_info, | 1643 const service_manager::BindSourceInfo& source_info, |
| 1645 mojom::URLLoaderFactoryRequest request) { | 1644 mojom::URLLoaderFactoryRequest request) { |
| 1646 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 1645 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1647 switches::kEnableNetworkService)) { | 1646 switches::kEnableNetworkService)) { |
| 1648 NOTREACHED(); | 1647 NOTREACHED(); |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2142 switches::kIgnoreAutoplayRestrictionsForTests, | 2141 switches::kIgnoreAutoplayRestrictionsForTests, |
| 2143 switches::kInertVisualViewport, | 2142 switches::kInertVisualViewport, |
| 2144 switches::kIPCConnectionTimeout, | 2143 switches::kIPCConnectionTimeout, |
| 2145 switches::kIsolateOrigins, | 2144 switches::kIsolateOrigins, |
| 2146 switches::kIsRunningInMash, | 2145 switches::kIsRunningInMash, |
| 2147 switches::kJavaScriptFlags, | 2146 switches::kJavaScriptFlags, |
| 2148 switches::kLoggingLevel, | 2147 switches::kLoggingLevel, |
| 2149 switches::kMainFrameResizesAreOrientationChanges, | 2148 switches::kMainFrameResizesAreOrientationChanges, |
| 2150 switches::kMaxUntiledLayerWidth, | 2149 switches::kMaxUntiledLayerWidth, |
| 2151 switches::kMaxUntiledLayerHeight, | 2150 switches::kMaxUntiledLayerHeight, |
| 2152 switches::kMojoLocalStorage, | 2151 switches::kDisableMojoLocalStorage, |
| 2153 switches::kMSEAudioBufferSizeLimit, | 2152 switches::kMSEAudioBufferSizeLimit, |
| 2154 switches::kMSEVideoBufferSizeLimit, | 2153 switches::kMSEVideoBufferSizeLimit, |
| 2155 switches::kNoReferrers, | 2154 switches::kNoReferrers, |
| 2156 switches::kNoSandbox, | 2155 switches::kNoSandbox, |
| 2157 switches::kNoZygote, | 2156 switches::kNoZygote, |
| 2158 switches::kOverridePluginPowerSaverForTesting, | 2157 switches::kOverridePluginPowerSaverForTesting, |
| 2159 switches::kPassiveListenersDefault, | 2158 switches::kPassiveListenersDefault, |
| 2160 switches::kPpapiInProcess, | 2159 switches::kPpapiInProcess, |
| 2161 switches::kProfilerTiming, | 2160 switches::kProfilerTiming, |
| 2162 switches::kReducedReferrerGranularity, | 2161 switches::kReducedReferrerGranularity, |
| (...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3573 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3572 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3574 | 3573 |
| 3575 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3574 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3576 // Capture the error message in a crash key value. | 3575 // Capture the error message in a crash key value. |
| 3577 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3576 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3578 bad_message::ReceivedBadMessage(render_process_id, | 3577 bad_message::ReceivedBadMessage(render_process_id, |
| 3579 bad_message::RPH_MOJO_PROCESS_ERROR); | 3578 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3580 } | 3579 } |
| 3581 | 3580 |
| 3582 } // namespace content | 3581 } // namespace content |
| OLD | NEW |