| 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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 cc::switches::kStrictLayerPropertyChangeChecking, | 1304 cc::switches::kStrictLayerPropertyChangeChecking, |
| 1305 cc::switches::kTopControlsHideThreshold, | 1305 cc::switches::kTopControlsHideThreshold, |
| 1306 cc::switches::kTopControlsShowThreshold, | 1306 cc::switches::kTopControlsShowThreshold, |
| 1307 #if defined(ENABLE_PLUGINS) | 1307 #if defined(ENABLE_PLUGINS) |
| 1308 switches::kEnablePepperTesting, | 1308 switches::kEnablePepperTesting, |
| 1309 switches::kEnablePluginPowerSaver, | 1309 switches::kEnablePluginPowerSaver, |
| 1310 #endif | 1310 #endif |
| 1311 #if defined(ENABLE_WEBRTC) | 1311 #if defined(ENABLE_WEBRTC) |
| 1312 switches::kDisableWebRtcHWDecoding, | 1312 switches::kDisableWebRtcHWDecoding, |
| 1313 switches::kDisableWebRtcHWEncoding, | 1313 switches::kDisableWebRtcHWEncoding, |
| 1314 switches::kEnableWebRtcHWVp8Encoding, | |
| 1315 switches::kEnableWebRtcHWH264Encoding, | 1314 switches::kEnableWebRtcHWH264Encoding, |
| 1316 switches::kWebRtcMaxCaptureFramerate, | 1315 switches::kWebRtcMaxCaptureFramerate, |
| 1317 #endif | 1316 #endif |
| 1318 switches::kEnableLowEndDeviceMode, | 1317 switches::kEnableLowEndDeviceMode, |
| 1319 switches::kDisableLowEndDeviceMode, | 1318 switches::kDisableLowEndDeviceMode, |
| 1320 #if defined(OS_ANDROID) | 1319 #if defined(OS_ANDROID) |
| 1321 switches::kDisableGestureRequirementForMediaPlayback, | 1320 switches::kDisableGestureRequirementForMediaPlayback, |
| 1322 switches::kDisableWebRTC, | 1321 switches::kDisableWebRTC, |
| 1323 switches::kEnableSpeechRecognition, | 1322 switches::kEnableSpeechRecognition, |
| 1324 switches::kMediaDrmEnableNonCompositing, | 1323 switches::kMediaDrmEnableNonCompositing, |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2350 | 2349 |
| 2351 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2350 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2352 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2351 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2353 DCHECK_GT(worker_ref_count_, 0); | 2352 DCHECK_GT(worker_ref_count_, 0); |
| 2354 --worker_ref_count_; | 2353 --worker_ref_count_; |
| 2355 if (worker_ref_count_ == 0) | 2354 if (worker_ref_count_ == 0) |
| 2356 Cleanup(); | 2355 Cleanup(); |
| 2357 } | 2356 } |
| 2358 | 2357 |
| 2359 } // namespace content | 2358 } // namespace content |
| OLD | NEW |