| 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 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 switches::kEnableLowResTiling, | 1140 switches::kEnableLowResTiling, |
| 1141 switches::kEnableInbandTextTracks, | 1141 switches::kEnableInbandTextTracks, |
| 1142 switches::kEnableLCDText, | 1142 switches::kEnableLCDText, |
| 1143 switches::kEnableLayerSquashing, | 1143 switches::kEnableLayerSquashing, |
| 1144 switches::kEnableLogging, | 1144 switches::kEnableLogging, |
| 1145 switches::kEnableMemoryBenchmarking, | 1145 switches::kEnableMemoryBenchmarking, |
| 1146 switches::kEnableNetworkInformation, | 1146 switches::kEnableNetworkInformation, |
| 1147 switches::kEnableOneCopy, | 1147 switches::kEnableOneCopy, |
| 1148 switches::kEnableOverlayFullscreenVideo, | 1148 switches::kEnableOverlayFullscreenVideo, |
| 1149 switches::kEnableOverlayScrollbar, | 1149 switches::kEnableOverlayScrollbar, |
| 1150 switches::kEnableOverscrollNotifications, | |
| 1151 switches::kEnablePinch, | 1150 switches::kEnablePinch, |
| 1152 switches::kEnablePreciseMemoryInfo, | 1151 switches::kEnablePreciseMemoryInfo, |
| 1153 switches::kEnableRendererMojoChannel, | 1152 switches::kEnableRendererMojoChannel, |
| 1154 switches::kEnableSeccompFilterSandbox, | 1153 switches::kEnableSeccompFilterSandbox, |
| 1155 switches::kEnableSkiaBenchmarking, | 1154 switches::kEnableSkiaBenchmarking, |
| 1156 switches::kEnableSmoothScrolling, | 1155 switches::kEnableSmoothScrolling, |
| 1157 switches::kEnableStatsTable, | 1156 switches::kEnableStatsTable, |
| 1158 switches::kEnableStrictSiteIsolation, | 1157 switches::kEnableStrictSiteIsolation, |
| 1159 switches::kEnableThreadedCompositing, | 1158 switches::kEnableThreadedCompositing, |
| 1160 switches::kEnableTouchDragDrop, | 1159 switches::kEnableTouchDragDrop, |
| (...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2247 | 2246 |
| 2248 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2247 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2249 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2248 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2250 DCHECK_GT(worker_ref_count_, 0); | 2249 DCHECK_GT(worker_ref_count_, 0); |
| 2251 --worker_ref_count_; | 2250 --worker_ref_count_; |
| 2252 if (worker_ref_count_ == 0) | 2251 if (worker_ref_count_ == 0) |
| 2253 Cleanup(); | 2252 Cleanup(); |
| 2254 } | 2253 } |
| 2255 | 2254 |
| 2256 } // namespace content | 2255 } // namespace content |
| OLD | NEW |