| 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 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 switches::kDisableOverlayScrollbar, | 1084 switches::kDisableOverlayScrollbar, |
| 1085 switches::kDisablePinch, | 1085 switches::kDisablePinch, |
| 1086 switches::kDisablePrefixedEncryptedMedia, | 1086 switches::kDisablePrefixedEncryptedMedia, |
| 1087 switches::kDisableSeccompFilterSandbox, | 1087 switches::kDisableSeccompFilterSandbox, |
| 1088 switches::kDisableSessionStorage, | 1088 switches::kDisableSessionStorage, |
| 1089 switches::kDisableSharedWorkers, | 1089 switches::kDisableSharedWorkers, |
| 1090 switches::kDisableThreadedCompositing, | 1090 switches::kDisableThreadedCompositing, |
| 1091 switches::kDisableTouchAdjustment, | 1091 switches::kDisableTouchAdjustment, |
| 1092 switches::kDisableTouchDragDrop, | 1092 switches::kDisableTouchDragDrop, |
| 1093 switches::kDisableTouchEditing, | 1093 switches::kDisableTouchEditing, |
| 1094 switches::kDisableV8IdleNotificationAfterCommit, | |
| 1095 switches::kDisableZeroCopy, | 1094 switches::kDisableZeroCopy, |
| 1096 switches::kDomAutomationController, | 1095 switches::kDomAutomationController, |
| 1097 switches::kEnableBeginFrameScheduling, | 1096 switches::kEnableBeginFrameScheduling, |
| 1098 switches::kEnableBleedingEdgeRenderingFastPaths, | 1097 switches::kEnableBleedingEdgeRenderingFastPaths, |
| 1099 switches::kEnablePreferCompositingToLCDText, | 1098 switches::kEnablePreferCompositingToLCDText, |
| 1100 switches::kEnableCompositingForTransition, | 1099 switches::kEnableCompositingForTransition, |
| 1101 switches::kEnableDeferredImageDecoding, | 1100 switches::kEnableDeferredImageDecoding, |
| 1102 switches::kEnableDisplayList2dCanvas, | 1101 switches::kEnableDisplayList2dCanvas, |
| 1103 switches::kEnableDistanceFieldText, | 1102 switches::kEnableDistanceFieldText, |
| 1104 switches::kEnableEncryptedMedia, | 1103 switches::kEnableEncryptedMedia, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1122 switches::kEnablePreciseMemoryInfo, | 1121 switches::kEnablePreciseMemoryInfo, |
| 1123 switches::kEnableRendererMojoChannel, | 1122 switches::kEnableRendererMojoChannel, |
| 1124 switches::kEnableSeccompFilterSandbox, | 1123 switches::kEnableSeccompFilterSandbox, |
| 1125 switches::kEnableSkiaBenchmarking, | 1124 switches::kEnableSkiaBenchmarking, |
| 1126 switches::kEnableSmoothScrolling, | 1125 switches::kEnableSmoothScrolling, |
| 1127 switches::kEnableStatsTable, | 1126 switches::kEnableStatsTable, |
| 1128 switches::kEnableStrictSiteIsolation, | 1127 switches::kEnableStrictSiteIsolation, |
| 1129 switches::kEnableThreadedCompositing, | 1128 switches::kEnableThreadedCompositing, |
| 1130 switches::kEnableTouchDragDrop, | 1129 switches::kEnableTouchDragDrop, |
| 1131 switches::kEnableTouchEditing, | 1130 switches::kEnableTouchEditing, |
| 1132 switches::kEnableV8IdleNotificationAfterCommit, | |
| 1133 switches::kEnableViewport, | 1131 switches::kEnableViewport, |
| 1134 switches::kEnableViewportMeta, | 1132 switches::kEnableViewportMeta, |
| 1135 switches::kEnableVtune, | 1133 switches::kEnableVtune, |
| 1136 switches::kEnableWebGLDraftExtensions, | 1134 switches::kEnableWebGLDraftExtensions, |
| 1137 switches::kEnableWebGLImageChromium, | 1135 switches::kEnableWebGLImageChromium, |
| 1138 switches::kEnableWebMIDI, | 1136 switches::kEnableWebMIDI, |
| 1139 switches::kEnableZeroCopy, | 1137 switches::kEnableZeroCopy, |
| 1140 switches::kForceDeviceScaleFactor, | 1138 switches::kForceDeviceScaleFactor, |
| 1141 switches::kFullMemoryCrashReport, | 1139 switches::kFullMemoryCrashReport, |
| 1142 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 1140 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
| 1143 switches::kIPCConnectionTimeout, | 1141 switches::kIPCConnectionTimeout, |
| 1144 switches::kJavaScriptFlags, | 1142 switches::kJavaScriptFlags, |
| 1145 switches::kLoggingLevel, | 1143 switches::kLoggingLevel, |
| 1146 switches::kMainFrameResizesAreOrientationChanges, | 1144 switches::kMainFrameResizesAreOrientationChanges, |
| 1147 switches::kMaxUntiledLayerWidth, | 1145 switches::kMaxUntiledLayerWidth, |
| 1148 switches::kMaxUntiledLayerHeight, | 1146 switches::kMaxUntiledLayerHeight, |
| 1149 switches::kMemoryMetrics, | 1147 switches::kMemoryMetrics, |
| 1150 switches::kNoReferrers, | 1148 switches::kNoReferrers, |
| 1151 switches::kNoSandbox, | 1149 switches::kNoSandbox, |
| 1152 switches::kPpapiInProcess, | 1150 switches::kPpapiInProcess, |
| 1153 switches::kProfilerTiming, | 1151 switches::kProfilerTiming, |
| 1154 switches::kReduceSecurityForTesting, | 1152 switches::kReduceSecurityForTesting, |
| 1155 switches::kRegisterPepperPlugins, | 1153 switches::kRegisterPepperPlugins, |
| 1156 switches::kRendererAssertTest, | 1154 switches::kRendererAssertTest, |
| 1157 switches::kRendererStartupDialog, | 1155 switches::kRendererStartupDialog, |
| 1156 switches::kSendV8IdleNotificationAfterCommit, |
| 1158 switches::kShowPaintRects, | 1157 switches::kShowPaintRects, |
| 1159 switches::kSitePerProcess, | 1158 switches::kSitePerProcess, |
| 1160 switches::kStatsCollectionController, | 1159 switches::kStatsCollectionController, |
| 1161 switches::kTestType, | 1160 switches::kTestType, |
| 1162 switches::kTouchEvents, | 1161 switches::kTouchEvents, |
| 1163 switches::kTraceToConsole, | 1162 switches::kTraceToConsole, |
| 1164 switches::kUseDiscardableMemory, | 1163 switches::kUseDiscardableMemory, |
| 1165 // This flag needs to be propagated to the renderer process for | 1164 // This flag needs to be propagated to the renderer process for |
| 1166 // --in-process-webgl. | 1165 // --in-process-webgl. |
| 1167 switches::kUseGL, | 1166 switches::kUseGL, |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2212 | 2211 |
| 2213 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2212 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2214 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2213 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2215 DCHECK_GT(worker_ref_count_, 0); | 2214 DCHECK_GT(worker_ref_count_, 0); |
| 2216 --worker_ref_count_; | 2215 --worker_ref_count_; |
| 2217 if (worker_ref_count_ == 0) | 2216 if (worker_ref_count_ == 0) |
| 2218 Cleanup(); | 2217 Cleanup(); |
| 2219 } | 2218 } |
| 2220 | 2219 |
| 2221 } // namespace content | 2220 } // namespace content |
| OLD | NEW |