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 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 switches::kEnablePepperTesting, | 1175 switches::kEnablePepperTesting, |
1176 #endif | 1176 #endif |
1177 #if defined(ENABLE_WEBRTC) | 1177 #if defined(ENABLE_WEBRTC) |
1178 switches::kEnableAudioTrackProcessing, | 1178 switches::kEnableAudioTrackProcessing, |
1179 switches::kDisableDeviceEnumeration, | 1179 switches::kDisableDeviceEnumeration, |
1180 switches::kDisableWebRtcHWDecoding, | 1180 switches::kDisableWebRtcHWDecoding, |
1181 switches::kDisableWebRtcHWEncoding, | 1181 switches::kDisableWebRtcHWEncoding, |
1182 switches::kEnableWebRtcHWVp8Encoding, | 1182 switches::kEnableWebRtcHWVp8Encoding, |
1183 switches::kEnableWebRtcTcpServerSocket, | 1183 switches::kEnableWebRtcTcpServerSocket, |
1184 #endif | 1184 #endif |
| 1185 switches::kDisableLowEndDeviceMode, |
| 1186 switches::kEnableLowEndDeviceMode, |
| 1187 #if !defined(OS_ANDROID) |
| 1188 switches::kDetectLowEndDevice, |
| 1189 #endif |
1185 #if defined(OS_ANDROID) | 1190 #if defined(OS_ANDROID) |
1186 switches::kDisableGestureRequirementForMediaPlayback, | 1191 switches::kDisableGestureRequirementForMediaPlayback, |
1187 switches::kDisableLowEndDeviceMode, | |
1188 switches::kDisableWebRTC, | 1192 switches::kDisableWebRTC, |
1189 switches::kEnableLowEndDeviceMode, | |
1190 switches::kEnableSpeechRecognition, | 1193 switches::kEnableSpeechRecognition, |
1191 switches::kMediaDrmEnableNonCompositing, | 1194 switches::kMediaDrmEnableNonCompositing, |
1192 switches::kNetworkCountryIso, | 1195 switches::kNetworkCountryIso, |
1193 switches::kDisableWebAudio, | 1196 switches::kDisableWebAudio, |
1194 #endif | 1197 #endif |
1195 #if defined(OS_MACOSX) | 1198 #if defined(OS_MACOSX) |
1196 // Allow this to be set when invoking the browser and relayed along. | 1199 // Allow this to be set when invoking the browser and relayed along. |
1197 switches::kEnableSandboxLogging, | 1200 switches::kEnableSandboxLogging, |
1198 #endif | 1201 #endif |
1199 #if defined(OS_WIN) | 1202 #if defined(OS_WIN) |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2078 mojo::ScopedMessagePipeHandle handle) { | 2081 mojo::ScopedMessagePipeHandle handle) { |
2079 mojo_activation_required_ = true; | 2082 mojo_activation_required_ = true; |
2080 MaybeActivateMojo(); | 2083 MaybeActivateMojo(); |
2081 | 2084 |
2082 mojo::AllocationScope scope; | 2085 mojo::AllocationScope scope; |
2083 mojo_application_host_->shell_client()->AcceptConnection(service_name, | 2086 mojo_application_host_->shell_client()->AcceptConnection(service_name, |
2084 handle.Pass()); | 2087 handle.Pass()); |
2085 } | 2088 } |
2086 | 2089 |
2087 } // namespace content | 2090 } // namespace content |
OLD | NEW |