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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 switches::kDisableSeccompFilterSandbox, | 1110 switches::kDisableSeccompFilterSandbox, |
1111 switches::kDisableSessionStorage, | 1111 switches::kDisableSessionStorage, |
1112 switches::kDisableSharedWorkers, | 1112 switches::kDisableSharedWorkers, |
1113 switches::kDisableThreadedCompositing, | 1113 switches::kDisableThreadedCompositing, |
1114 switches::kDisableTouchAdjustment, | 1114 switches::kDisableTouchAdjustment, |
1115 switches::kDisableTouchDragDrop, | 1115 switches::kDisableTouchDragDrop, |
1116 switches::kDisableTouchEditing, | 1116 switches::kDisableTouchEditing, |
1117 switches::kDisableV8IdleNotificationAfterCommit, | 1117 switches::kDisableV8IdleNotificationAfterCommit, |
1118 switches::kDisableZeroCopy, | 1118 switches::kDisableZeroCopy, |
1119 switches::kDomAutomationController, | 1119 switches::kDomAutomationController, |
1120 switches::kEnableBeginFrameScheduling, | |
1121 switches::kEnableBleedingEdgeRenderingFastPaths, | 1120 switches::kEnableBleedingEdgeRenderingFastPaths, |
1122 switches::kEnablePreferCompositingToLCDText, | 1121 switches::kEnablePreferCompositingToLCDText, |
1123 switches::kEnableCompositingForTransition, | 1122 switches::kEnableCompositingForTransition, |
1124 switches::kEnableDeferredImageDecoding, | 1123 switches::kEnableDeferredImageDecoding, |
1125 switches::kEnableDisplayList2dCanvas, | 1124 switches::kEnableDisplayList2dCanvas, |
1126 switches::kEnableDistanceFieldText, | 1125 switches::kEnableDistanceFieldText, |
1127 switches::kEnableEncryptedMedia, | 1126 switches::kEnableEncryptedMedia, |
1128 switches::kEnableExperimentalCanvasFeatures, | 1127 switches::kEnableExperimentalCanvasFeatures, |
1129 switches::kEnableExperimentalWebPlatformFeatures, | 1128 switches::kEnableExperimentalWebPlatformFeatures, |
1130 switches::kEnableGPUClientLogging, | 1129 switches::kEnableGPUClientLogging, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 switches::kV, | 1191 switches::kV, |
1193 switches::kVideoThreads, | 1192 switches::kVideoThreads, |
1194 switches::kVModule, | 1193 switches::kVModule, |
1195 // Please keep these in alphabetical order. Compositor switches here should | 1194 // Please keep these in alphabetical order. Compositor switches here should |
1196 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 1195 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
1197 cc::switches::kCompositeToMailbox, | 1196 cc::switches::kCompositeToMailbox, |
1198 cc::switches::kDisableCompositedAntialiasing, | 1197 cc::switches::kDisableCompositedAntialiasing, |
1199 cc::switches::kDisableMainFrameBeforeActivation, | 1198 cc::switches::kDisableMainFrameBeforeActivation, |
1200 cc::switches::kDisableMainFrameBeforeDraw, | 1199 cc::switches::kDisableMainFrameBeforeDraw, |
1201 cc::switches::kDisableThreadedAnimation, | 1200 cc::switches::kDisableThreadedAnimation, |
| 1201 cc::switches::kEnableBeginFrameScheduling, |
1202 cc::switches::kEnableGpuBenchmarking, | 1202 cc::switches::kEnableGpuBenchmarking, |
1203 cc::switches::kEnableMainFrameBeforeActivation, | 1203 cc::switches::kEnableMainFrameBeforeActivation, |
1204 cc::switches::kEnableTopControlsPositionCalculation, | 1204 cc::switches::kEnableTopControlsPositionCalculation, |
1205 cc::switches::kMaxTilesForInterestArea, | 1205 cc::switches::kMaxTilesForInterestArea, |
1206 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 1206 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
1207 cc::switches::kShowCompositedLayerBorders, | 1207 cc::switches::kShowCompositedLayerBorders, |
1208 cc::switches::kShowFPSCounter, | 1208 cc::switches::kShowFPSCounter, |
1209 cc::switches::kShowLayerAnimationBounds, | 1209 cc::switches::kShowLayerAnimationBounds, |
1210 cc::switches::kShowNonOccludingRects, | 1210 cc::switches::kShowNonOccludingRects, |
1211 cc::switches::kShowOccludingRects, | 1211 cc::switches::kShowOccludingRects, |
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2244 if (worker_ref_count_ == 0) | 2244 if (worker_ref_count_ == 0) |
2245 Cleanup(); | 2245 Cleanup(); |
2246 } | 2246 } |
2247 | 2247 |
2248 void RenderProcessHostImpl::EnsureMojoActivated() { | 2248 void RenderProcessHostImpl::EnsureMojoActivated() { |
2249 mojo_activation_required_ = true; | 2249 mojo_activation_required_ = true; |
2250 MaybeActivateMojo(); | 2250 MaybeActivateMojo(); |
2251 } | 2251 } |
2252 | 2252 |
2253 } // namespace content | 2253 } // namespace content |
OLD | NEW |