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 // 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 } | 285 } |
286 | 286 |
287 #if defined(OS_WIN) | 287 #if defined(OS_WIN) |
288 // NOTE: changes to this class need to be reviewed by the security team. | 288 // NOTE: changes to this class need to be reviewed by the security team. |
289 class RendererSandboxedProcessLauncherDelegate | 289 class RendererSandboxedProcessLauncherDelegate |
290 : public content::SandboxedProcessLauncherDelegate { | 290 : public content::SandboxedProcessLauncherDelegate { |
291 public: | 291 public: |
292 RendererSandboxedProcessLauncherDelegate() {} | 292 RendererSandboxedProcessLauncherDelegate() {} |
293 virtual ~RendererSandboxedProcessLauncherDelegate() {} | 293 virtual ~RendererSandboxedProcessLauncherDelegate() {} |
294 | 294 |
295 virtual void ShouldSandbox(bool* in_sandbox) OVERRIDE { | |
296 #if !defined (GOOGLE_CHROME_BUILD) | |
297 if (CommandLine::ForCurrentProcess()->HasSwitch( | |
298 switches::kInProcessPlugins)) { | |
299 *in_sandbox = false; | |
300 } | |
301 #endif | |
302 } | |
303 | |
304 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy, | 295 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy, |
305 bool* success) { | 296 bool* success) { |
306 AddBaseHandleClosePolicy(policy); | 297 AddBaseHandleClosePolicy(policy); |
307 GetContentClient()->browser()->PreSpawnRenderer(policy, success); | 298 GetContentClient()->browser()->PreSpawnRenderer(policy, success); |
308 } | 299 } |
309 }; | 300 }; |
310 #endif // OS_WIN | 301 #endif // OS_WIN |
311 | 302 |
312 } // namespace | 303 } // namespace |
313 | 304 |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 #if defined(ENABLE_WEBRTC) | 1122 #if defined(ENABLE_WEBRTC) |
1132 switches::kEnableAudioTrackProcessing, | 1123 switches::kEnableAudioTrackProcessing, |
1133 switches::kDisableDeviceEnumeration, | 1124 switches::kDisableDeviceEnumeration, |
1134 switches::kDisableSCTPDataChannels, | 1125 switches::kDisableSCTPDataChannels, |
1135 switches::kDisableWebRtcHWDecoding, | 1126 switches::kDisableWebRtcHWDecoding, |
1136 switches::kDisableWebRtcHWEncoding, | 1127 switches::kDisableWebRtcHWEncoding, |
1137 switches::kEnableWebRtcAecRecordings, | 1128 switches::kEnableWebRtcAecRecordings, |
1138 switches::kEnableWebRtcHWVp8Encoding, | 1129 switches::kEnableWebRtcHWVp8Encoding, |
1139 switches::kEnableWebRtcTcpServerSocket, | 1130 switches::kEnableWebRtcTcpServerSocket, |
1140 #endif | 1131 #endif |
1141 #if !defined (GOOGLE_CHROME_BUILD) | |
1142 // These are unsupported and not fully tested modes, so don't enable them | |
1143 // for official Google Chrome builds. | |
1144 switches::kInProcessPlugins, | |
1145 #endif // GOOGLE_CHROME_BUILD | |
1146 #if defined(GOOGLE_TV) | 1132 #if defined(GOOGLE_TV) |
1147 switches::kUseExternalVideoSurfaceThresholdInPixels, | 1133 switches::kUseExternalVideoSurfaceThresholdInPixels, |
1148 #endif | 1134 #endif |
1149 #if defined(OS_ANDROID) | 1135 #if defined(OS_ANDROID) |
1150 switches::kDisableGestureRequirementForMediaPlayback, | 1136 switches::kDisableGestureRequirementForMediaPlayback, |
1151 switches::kDisableLowEndDeviceMode, | 1137 switches::kDisableLowEndDeviceMode, |
1152 switches::kDisableWebRTC, | 1138 switches::kDisableWebRTC, |
1153 switches::kEnableLowEndDeviceMode, | 1139 switches::kEnableLowEndDeviceMode, |
1154 switches::kEnableSpeechRecognition, | 1140 switches::kEnableSpeechRecognition, |
1155 switches::kHideScrollbars, | 1141 switches::kHideScrollbars, |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 return; | 1963 return; |
1978 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); | 1964 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); |
1979 } | 1965 } |
1980 | 1966 |
1981 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { | 1967 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { |
1982 Send(new MediaStreamMsg_DisableAecDump()); | 1968 Send(new MediaStreamMsg_DisableAecDump()); |
1983 } | 1969 } |
1984 #endif | 1970 #endif |
1985 | 1971 |
1986 } // namespace content | 1972 } // namespace content |
OLD | NEW |