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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 cc::switches::kShowOccludingRects, | 1119 cc::switches::kShowOccludingRects, |
1120 cc::switches::kShowPropertyChangedRects, | 1120 cc::switches::kShowPropertyChangedRects, |
1121 cc::switches::kShowReplicaScreenSpaceRects, | 1121 cc::switches::kShowReplicaScreenSpaceRects, |
1122 cc::switches::kShowScreenSpaceRects, | 1122 cc::switches::kShowScreenSpaceRects, |
1123 cc::switches::kShowSurfaceDamageRects, | 1123 cc::switches::kShowSurfaceDamageRects, |
1124 cc::switches::kSlowDownRasterScaleFactor, | 1124 cc::switches::kSlowDownRasterScaleFactor, |
1125 cc::switches::kStrictLayerPropertyChangeChecking, | 1125 cc::switches::kStrictLayerPropertyChangeChecking, |
1126 cc::switches::kTopControlsHeight, | 1126 cc::switches::kTopControlsHeight, |
1127 cc::switches::kTopControlsHideThreshold, | 1127 cc::switches::kTopControlsHideThreshold, |
1128 cc::switches::kTopControlsShowThreshold, | 1128 cc::switches::kTopControlsShowThreshold, |
1129 cc::switches::kTraceOverdraw, | |
1130 #if defined(ENABLE_PLUGINS) | 1129 #if defined(ENABLE_PLUGINS) |
1131 switches::kEnablePepperTesting, | 1130 switches::kEnablePepperTesting, |
1132 #endif | 1131 #endif |
1133 #if defined(ENABLE_WEBRTC) | 1132 #if defined(ENABLE_WEBRTC) |
1134 switches::kEnableAudioTrackProcessing, | 1133 switches::kEnableAudioTrackProcessing, |
1135 switches::kDisableDeviceEnumeration, | 1134 switches::kDisableDeviceEnumeration, |
1136 switches::kDisableSCTPDataChannels, | 1135 switches::kDisableSCTPDataChannels, |
1137 switches::kDisableWebRtcHWDecoding, | 1136 switches::kDisableWebRtcHWDecoding, |
1138 switches::kDisableWebRtcHWEncoding, | 1137 switches::kDisableWebRtcHWEncoding, |
1139 switches::kEnableWebRtcAecRecordings, | 1138 switches::kEnableWebRtcAecRecordings, |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 | 2092 |
2094 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2093 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2095 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 2094 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
2096 DCHECK_GT(worker_ref_count_, 0); | 2095 DCHECK_GT(worker_ref_count_, 0); |
2097 --worker_ref_count_; | 2096 --worker_ref_count_; |
2098 if (worker_ref_count_ == 0) | 2097 if (worker_ref_count_ == 0) |
2099 Cleanup(); | 2098 Cleanup(); |
2100 } | 2099 } |
2101 | 2100 |
2102 } // namespace content | 2101 } // namespace content |
OLD | NEW |