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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 switches::kDisableDatabases, | 1137 switches::kDisableDatabases, |
1138 switches::kDisableDirectNPAPIRequests, | 1138 switches::kDisableDirectNPAPIRequests, |
1139 switches::kDisableDisplayList2dCanvas, | 1139 switches::kDisableDisplayList2dCanvas, |
1140 switches::kDisableDistanceFieldText, | 1140 switches::kDisableDistanceFieldText, |
1141 switches::kDisableFileSystem, | 1141 switches::kDisableFileSystem, |
1142 switches::kDisableGpuCompositing, | 1142 switches::kDisableGpuCompositing, |
1143 switches::kDisableGpuVsync, | 1143 switches::kDisableGpuVsync, |
1144 switches::kDisableLowResTiling, | 1144 switches::kDisableLowResTiling, |
1145 switches::kDisableHistogramCustomizer, | 1145 switches::kDisableHistogramCustomizer, |
1146 switches::kDisableLCDText, | 1146 switches::kDisableLCDText, |
1147 switches::kDisableLayerSquashing, | |
1148 switches::kDisableLocalStorage, | 1147 switches::kDisableLocalStorage, |
1149 switches::kDisableLogging, | 1148 switches::kDisableLogging, |
1150 switches::kDisableMediaSource, | 1149 switches::kDisableMediaSource, |
1151 switches::kDisableOneCopy, | 1150 switches::kDisableOneCopy, |
1152 switches::kDisableOverlayScrollbar, | 1151 switches::kDisableOverlayScrollbar, |
1153 switches::kDisablePinch, | 1152 switches::kDisablePinch, |
1154 switches::kDisablePrefixedEncryptedMedia, | 1153 switches::kDisablePrefixedEncryptedMedia, |
1155 switches::kDisableSeccompFilterSandbox, | 1154 switches::kDisableSeccompFilterSandbox, |
1156 switches::kDisableSessionStorage, | 1155 switches::kDisableSessionStorage, |
1157 switches::kDisableSharedWorkers, | 1156 switches::kDisableSharedWorkers, |
(...skipping 18 matching lines...) Expand all Loading... |
1176 switches::kEnableEncryptedMedia, | 1175 switches::kEnableEncryptedMedia, |
1177 switches::kEnableExperimentalCanvasFeatures, | 1176 switches::kEnableExperimentalCanvasFeatures, |
1178 switches::kEnableExperimentalWebPlatformFeatures, | 1177 switches::kEnableExperimentalWebPlatformFeatures, |
1179 switches::kEnableGPUClientLogging, | 1178 switches::kEnableGPUClientLogging, |
1180 switches::kEnableGpuClientTracing, | 1179 switches::kEnableGpuClientTracing, |
1181 switches::kEnableGPUServiceLogging, | 1180 switches::kEnableGPUServiceLogging, |
1182 switches::kEnableLinkDisambiguationPopup, | 1181 switches::kEnableLinkDisambiguationPopup, |
1183 switches::kEnableLowResTiling, | 1182 switches::kEnableLowResTiling, |
1184 switches::kEnableInbandTextTracks, | 1183 switches::kEnableInbandTextTracks, |
1185 switches::kEnableLCDText, | 1184 switches::kEnableLCDText, |
1186 switches::kEnableLayerSquashing, | |
1187 switches::kEnableLogging, | 1185 switches::kEnableLogging, |
1188 switches::kEnableMemoryBenchmarking, | 1186 switches::kEnableMemoryBenchmarking, |
1189 switches::kEnableNetworkInformation, | 1187 switches::kEnableNetworkInformation, |
1190 switches::kEnableOneCopy, | 1188 switches::kEnableOneCopy, |
1191 switches::kEnableOverlayFullscreenVideo, | 1189 switches::kEnableOverlayFullscreenVideo, |
1192 switches::kEnableOverlayScrollbar, | 1190 switches::kEnableOverlayScrollbar, |
1193 switches::kEnablePinch, | 1191 switches::kEnablePinch, |
1194 switches::kEnablePreciseMemoryInfo, | 1192 switches::kEnablePreciseMemoryInfo, |
1195 switches::kEnableRendererMojoChannel, | 1193 switches::kEnableRendererMojoChannel, |
1196 switches::kEnableSeccompFilterSandbox, | 1194 switches::kEnableSeccompFilterSandbox, |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2313 | 2311 |
2314 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2312 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2315 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2313 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2316 DCHECK_GT(worker_ref_count_, 0); | 2314 DCHECK_GT(worker_ref_count_, 0); |
2317 --worker_ref_count_; | 2315 --worker_ref_count_; |
2318 if (worker_ref_count_ == 0) | 2316 if (worker_ref_count_ == 0) |
2319 Cleanup(); | 2317 Cleanup(); |
2320 } | 2318 } |
2321 | 2319 |
2322 } // namespace content | 2320 } // namespace content |
OLD | NEW |