| 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 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 cc::switches::kSlowDownRasterScaleFactor, | 1215 cc::switches::kSlowDownRasterScaleFactor, |
| 1216 cc::switches::kStrictLayerPropertyChangeChecking, | 1216 cc::switches::kStrictLayerPropertyChangeChecking, |
| 1217 cc::switches::kTopControlsHeight, | 1217 cc::switches::kTopControlsHeight, |
| 1218 cc::switches::kTopControlsHideThreshold, | 1218 cc::switches::kTopControlsHideThreshold, |
| 1219 cc::switches::kTopControlsShowThreshold, | 1219 cc::switches::kTopControlsShowThreshold, |
| 1220 #if defined(ENABLE_PLUGINS) | 1220 #if defined(ENABLE_PLUGINS) |
| 1221 switches::kEnablePepperTesting, | 1221 switches::kEnablePepperTesting, |
| 1222 switches::kEnablePluginPowerSaver, | 1222 switches::kEnablePluginPowerSaver, |
| 1223 #endif | 1223 #endif |
| 1224 #if defined(ENABLE_WEBRTC) | 1224 #if defined(ENABLE_WEBRTC) |
| 1225 switches::kDisableAudioTrackProcessing, | |
| 1226 switches::kDisableWebRtcHWDecoding, | 1225 switches::kDisableWebRtcHWDecoding, |
| 1227 switches::kDisableWebRtcHWEncoding, | 1226 switches::kDisableWebRtcHWEncoding, |
| 1228 switches::kEnableWebRtcHWVp8Encoding, | 1227 switches::kEnableWebRtcHWVp8Encoding, |
| 1229 switches::kEnableWebRtcHWH264Encoding, | 1228 switches::kEnableWebRtcHWH264Encoding, |
| 1230 #endif | 1229 #endif |
| 1231 switches::kLowEndDeviceMode, | 1230 switches::kLowEndDeviceMode, |
| 1232 #if defined(OS_ANDROID) | 1231 #if defined(OS_ANDROID) |
| 1233 switches::kDisableGestureRequirementForMediaPlayback, | 1232 switches::kDisableGestureRequirementForMediaPlayback, |
| 1234 switches::kDisableWebRTC, | 1233 switches::kDisableWebRTC, |
| 1235 switches::kEnableSpeechRecognition, | 1234 switches::kEnableSpeechRecognition, |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2238 | 2237 |
| 2239 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2238 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2240 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2239 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2241 DCHECK_GT(worker_ref_count_, 0); | 2240 DCHECK_GT(worker_ref_count_, 0); |
| 2242 --worker_ref_count_; | 2241 --worker_ref_count_; |
| 2243 if (worker_ref_count_ == 0) | 2242 if (worker_ref_count_ == 0) |
| 2244 Cleanup(); | 2243 Cleanup(); |
| 2245 } | 2244 } |
| 2246 | 2245 |
| 2247 } // namespace content | 2246 } // namespace content |
| OLD | NEW |