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 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 switches::kDisableFileSystem, | 1093 switches::kDisableFileSystem, |
1094 switches::kDisableGpuCompositing, | 1094 switches::kDisableGpuCompositing, |
1095 switches::kDisableGpuVsync, | 1095 switches::kDisableGpuVsync, |
1096 switches::kDisableLowResTiling, | 1096 switches::kDisableLowResTiling, |
1097 switches::kDisableHistogramCustomizer, | 1097 switches::kDisableHistogramCustomizer, |
1098 switches::kDisableLCDText, | 1098 switches::kDisableLCDText, |
1099 switches::kDisableLayerSquashing, | 1099 switches::kDisableLayerSquashing, |
1100 switches::kDisableLocalStorage, | 1100 switches::kDisableLocalStorage, |
1101 switches::kDisableLogging, | 1101 switches::kDisableLogging, |
1102 switches::kDisableMediaSource, | 1102 switches::kDisableMediaSource, |
| 1103 switches::kDisableOneCopy, |
1103 switches::kDisableOverlayScrollbar, | 1104 switches::kDisableOverlayScrollbar, |
1104 switches::kDisablePinch, | 1105 switches::kDisablePinch, |
1105 switches::kDisablePrefixedEncryptedMedia, | 1106 switches::kDisablePrefixedEncryptedMedia, |
1106 switches::kDisableSeccompFilterSandbox, | 1107 switches::kDisableSeccompFilterSandbox, |
1107 switches::kDisableSessionStorage, | 1108 switches::kDisableSessionStorage, |
1108 switches::kDisableSharedWorkers, | 1109 switches::kDisableSharedWorkers, |
1109 switches::kDisableSVG1DOM, | 1110 switches::kDisableSVG1DOM, |
1110 switches::kDisableThreadedCompositing, | 1111 switches::kDisableThreadedCompositing, |
1111 switches::kDisableThreadedScrolling, | 1112 switches::kDisableThreadedScrolling, |
1112 switches::kDisableTouchAdjustment, | 1113 switches::kDisableTouchAdjustment, |
1113 switches::kDisableTouchDragDrop, | 1114 switches::kDisableTouchDragDrop, |
1114 switches::kDisableTouchEditing, | 1115 switches::kDisableTouchEditing, |
1115 switches::kDisableV8IdleNotificationAfterCommit, | 1116 switches::kDisableV8IdleNotificationAfterCommit, |
1116 switches::kDisableZeroCopy, | |
1117 switches::kDomAutomationController, | 1117 switches::kDomAutomationController, |
1118 switches::kEnableAcceleratedJpegDecoding, | 1118 switches::kEnableAcceleratedJpegDecoding, |
1119 switches::kEnableBeginFrameScheduling, | 1119 switches::kEnableBeginFrameScheduling, |
1120 switches::kEnableBleedingEdgeRenderingFastPaths, | 1120 switches::kEnableBleedingEdgeRenderingFastPaths, |
1121 switches::kEnableBrowserSideNavigation, | 1121 switches::kEnableBrowserSideNavigation, |
1122 switches::kEnablePreferCompositingToLCDText, | 1122 switches::kEnablePreferCompositingToLCDText, |
1123 switches::kEnableCompositingForTransition, | 1123 switches::kEnableCompositingForTransition, |
1124 switches::kEnableCredentialManagerAPI, | 1124 switches::kEnableCredentialManagerAPI, |
1125 switches::kEnableDeferredImageDecoding, | 1125 switches::kEnableDeferredImageDecoding, |
1126 switches::kEnableDisplayList2dCanvas, | 1126 switches::kEnableDisplayList2dCanvas, |
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2240 | 2240 |
2241 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2241 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2242 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2242 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2243 DCHECK_GT(worker_ref_count_, 0); | 2243 DCHECK_GT(worker_ref_count_, 0); |
2244 --worker_ref_count_; | 2244 --worker_ref_count_; |
2245 if (worker_ref_count_ == 0) | 2245 if (worker_ref_count_ == 0) |
2246 Cleanup(); | 2246 Cleanup(); |
2247 } | 2247 } |
2248 | 2248 |
2249 } // namespace content | 2249 } // namespace content |
OLD | NEW |