| 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 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 switches::kDisableSharedWorkers, | 1139 switches::kDisableSharedWorkers, |
| 1140 switches::kDisableSVG1DOM, | 1140 switches::kDisableSVG1DOM, |
| 1141 switches::kDisableThreadedCompositing, | 1141 switches::kDisableThreadedCompositing, |
| 1142 switches::kDisableThreadedScrolling, | 1142 switches::kDisableThreadedScrolling, |
| 1143 switches::kDisableTouchAdjustment, | 1143 switches::kDisableTouchAdjustment, |
| 1144 switches::kDisableTouchDragDrop, | 1144 switches::kDisableTouchDragDrop, |
| 1145 switches::kDisableTouchEditing, | 1145 switches::kDisableTouchEditing, |
| 1146 switches::kDisableV8IdleNotificationAfterCommit, | 1146 switches::kDisableV8IdleNotificationAfterCommit, |
| 1147 switches::kDomAutomationController, | 1147 switches::kDomAutomationController, |
| 1148 switches::kEnableAcceleratedJpegDecoding, | 1148 switches::kEnableAcceleratedJpegDecoding, |
| 1149 switches::kEnableBeginFrameScheduling, | |
| 1150 switches::kEnableBleedingEdgeRenderingFastPaths, | 1149 switches::kEnableBleedingEdgeRenderingFastPaths, |
| 1151 switches::kEnableBrowserSideNavigation, | 1150 switches::kEnableBrowserSideNavigation, |
| 1152 switches::kEnablePreferCompositingToLCDText, | 1151 switches::kEnablePreferCompositingToLCDText, |
| 1153 switches::kEnableCompositingForTransition, | 1152 switches::kEnableCompositingForTransition, |
| 1154 switches::kEnableCredentialManagerAPI, | 1153 switches::kEnableCredentialManagerAPI, |
| 1155 switches::kEnableDeferredImageDecoding, | 1154 switches::kEnableDeferredImageDecoding, |
| 1156 switches::kEnableDisplayList2dCanvas, | 1155 switches::kEnableDisplayList2dCanvas, |
| 1157 switches::kEnableDistanceFieldText, | 1156 switches::kEnableDistanceFieldText, |
| 1158 switches::kEnableEncryptedMedia, | 1157 switches::kEnableEncryptedMedia, |
| 1159 switches::kEnableExperimentalCanvasFeatures, | 1158 switches::kEnableExperimentalCanvasFeatures, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 switches::kUseMobileUserAgent, | 1225 switches::kUseMobileUserAgent, |
| 1227 switches::kV, | 1226 switches::kV, |
| 1228 switches::kVideoThreads, | 1227 switches::kVideoThreads, |
| 1229 switches::kVModule, | 1228 switches::kVModule, |
| 1230 // Please keep these in alphabetical order. Compositor switches here should | 1229 // Please keep these in alphabetical order. Compositor switches here should |
| 1231 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 1230 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
| 1232 cc::switches::kCompositeToMailbox, | 1231 cc::switches::kCompositeToMailbox, |
| 1233 cc::switches::kDisableCompositedAntialiasing, | 1232 cc::switches::kDisableCompositedAntialiasing, |
| 1234 cc::switches::kDisableMainFrameBeforeActivation, | 1233 cc::switches::kDisableMainFrameBeforeActivation, |
| 1235 cc::switches::kDisableThreadedAnimation, | 1234 cc::switches::kDisableThreadedAnimation, |
| 1235 cc::switches::kEnableBeginFrameScheduling, |
| 1236 cc::switches::kEnableGpuBenchmarking, | 1236 cc::switches::kEnableGpuBenchmarking, |
| 1237 cc::switches::kEnableMainFrameBeforeActivation, | 1237 cc::switches::kEnableMainFrameBeforeActivation, |
| 1238 cc::switches::kEnableTopControlsPositionCalculation, | 1238 cc::switches::kEnableTopControlsPositionCalculation, |
| 1239 cc::switches::kMaxTilesForInterestArea, | 1239 cc::switches::kMaxTilesForInterestArea, |
| 1240 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 1240 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
| 1241 cc::switches::kShowCompositedLayerBorders, | 1241 cc::switches::kShowCompositedLayerBorders, |
| 1242 cc::switches::kShowFPSCounter, | 1242 cc::switches::kShowFPSCounter, |
| 1243 cc::switches::kShowLayerAnimationBounds, | 1243 cc::switches::kShowLayerAnimationBounds, |
| 1244 cc::switches::kShowNonOccludingRects, | 1244 cc::switches::kShowNonOccludingRects, |
| 1245 cc::switches::kShowOccludingRects, | 1245 cc::switches::kShowOccludingRects, |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2295 | 2295 |
| 2296 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2296 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2297 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2297 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2298 DCHECK_GT(worker_ref_count_, 0); | 2298 DCHECK_GT(worker_ref_count_, 0); |
| 2299 --worker_ref_count_; | 2299 --worker_ref_count_; |
| 2300 if (worker_ref_count_ == 0) | 2300 if (worker_ref_count_ == 0) |
| 2301 Cleanup(); | 2301 Cleanup(); |
| 2302 } | 2302 } |
| 2303 | 2303 |
| 2304 } // namespace content | 2304 } // namespace content |
| OLD | NEW |