| 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 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 | 959 |
| 960 bool RenderProcessHostImpl::IsGuest() const { | 960 bool RenderProcessHostImpl::IsGuest() const { |
| 961 return is_guest_; | 961 return is_guest_; |
| 962 } | 962 } |
| 963 | 963 |
| 964 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { | 964 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { |
| 965 return storage_partition_impl_; | 965 return storage_partition_impl_; |
| 966 } | 966 } |
| 967 | 967 |
| 968 static void AppendGpuCommandLineFlags(CommandLine* command_line) { | 968 static void AppendGpuCommandLineFlags(CommandLine* command_line) { |
| 969 if (IsThreadedCompositingEnabled()) | 969 if (content::IsThreadedCompositingEnabled()) |
| 970 command_line->AppendSwitch(switches::kEnableThreadedCompositing); | 970 command_line->AppendSwitch(switches::kEnableThreadedCompositing); |
| 971 | 971 |
| 972 if (IsForceCompositingModeEnabled()) | 972 if (content::IsDelegatedRendererEnabled()) |
| 973 command_line->AppendSwitch(switches::kForceCompositingMode); | |
| 974 | |
| 975 if (IsDelegatedRendererEnabled()) | |
| 976 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); | 973 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); |
| 977 | 974 |
| 978 if (IsImplSidePaintingEnabled()) | 975 if (content::IsImplSidePaintingEnabled()) |
| 979 command_line->AppendSwitch(switches::kEnableImplSidePainting); | 976 command_line->AppendSwitch(switches::kEnableImplSidePainting); |
| 980 | 977 |
| 981 // Appending disable-gpu-feature switches due to software rendering list. | 978 // Appending disable-gpu-feature switches due to software rendering list. |
| 982 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); | 979 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); |
| 983 DCHECK(gpu_data_manager); | 980 DCHECK(gpu_data_manager); |
| 984 gpu_data_manager->AppendRendererCommandLine(command_line); | 981 gpu_data_manager->AppendRendererCommandLine(command_line); |
| 985 } | 982 } |
| 986 | 983 |
| 987 void RenderProcessHostImpl::AppendRendererCommandLine( | 984 void RenderProcessHostImpl::AppendRendererCommandLine( |
| 988 CommandLine* command_line) const { | 985 CommandLine* command_line) const { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 switches::kDefaultTileHeight, | 1031 switches::kDefaultTileHeight, |
| 1035 switches::kDisable3DAPIs, | 1032 switches::kDisable3DAPIs, |
| 1036 switches::kDisableAcceleratedCompositing, | 1033 switches::kDisableAcceleratedCompositing, |
| 1037 switches::kDisableAcceleratedFixedRootBackground, | 1034 switches::kDisableAcceleratedFixedRootBackground, |
| 1038 switches::kDisableAcceleratedVideoDecode, | 1035 switches::kDisableAcceleratedVideoDecode, |
| 1039 switches::kDisableApplicationCache, | 1036 switches::kDisableApplicationCache, |
| 1040 switches::kDisableBreakpad, | 1037 switches::kDisableBreakpad, |
| 1041 switches::kDisableCompositingForFixedPosition, | 1038 switches::kDisableCompositingForFixedPosition, |
| 1042 switches::kDisableCompositingForTransition, | 1039 switches::kDisableCompositingForTransition, |
| 1043 switches::kDisableDatabases, | 1040 switches::kDisableDatabases, |
| 1041 switches::kDisableDelegatedRenderer, |
| 1044 switches::kDisableDesktopNotifications, | 1042 switches::kDisableDesktopNotifications, |
| 1045 switches::kDisableDirectNPAPIRequests, | 1043 switches::kDisableDirectNPAPIRequests, |
| 1046 switches::kDisableFastTextAutosizing, | 1044 switches::kDisableFastTextAutosizing, |
| 1047 switches::kDisableFileSystem, | 1045 switches::kDisableFileSystem, |
| 1048 switches::kDisableFiltersOverIPC, | 1046 switches::kDisableFiltersOverIPC, |
| 1049 switches::kDisableGpu, | 1047 switches::kDisableGpu, |
| 1050 switches::kDisableGpuCompositing, | 1048 switches::kDisableGpuCompositing, |
| 1051 switches::kDisableGpuRasterization, | 1049 switches::kDisableGpuRasterization, |
| 1052 switches::kDisableGpuVsync, | 1050 switches::kDisableGpuVsync, |
| 1053 switches::kDisableLowResTiling, | 1051 switches::kDisableLowResTiling, |
| 1054 switches::kDisableHistogramCustomizer, | 1052 switches::kDisableHistogramCustomizer, |
| 1053 switches::kDisableImplSidePainting, |
| 1055 switches::kDisableLCDText, | 1054 switches::kDisableLCDText, |
| 1056 switches::kDisableLayerSquashing, | 1055 switches::kDisableLayerSquashing, |
| 1057 switches::kDisableLocalStorage, | 1056 switches::kDisableLocalStorage, |
| 1058 switches::kDisableLogging, | 1057 switches::kDisableLogging, |
| 1059 switches::kDisableMapImage, | 1058 switches::kDisableMapImage, |
| 1060 switches::kDisableOverlayScrollbar, | 1059 switches::kDisableOverlayScrollbar, |
| 1061 switches::kDisablePinch, | 1060 switches::kDisablePinch, |
| 1062 switches::kDisablePrefixedEncryptedMedia, | 1061 switches::kDisablePrefixedEncryptedMedia, |
| 1063 switches::kDisableRepaintAfterLayout, | 1062 switches::kDisableRepaintAfterLayout, |
| 1064 switches::kDisableSeccompFilterSandbox, | 1063 switches::kDisableSeccompFilterSandbox, |
| 1065 switches::kDisableSessionStorage, | 1064 switches::kDisableSessionStorage, |
| 1066 switches::kDisableSharedWorkers, | 1065 switches::kDisableSharedWorkers, |
| 1067 switches::kDisableSpeechInput, | 1066 switches::kDisableSpeechInput, |
| 1067 switches::kDisableThreadedCompositing, |
| 1068 switches::kDisableTouchAdjustment, | 1068 switches::kDisableTouchAdjustment, |
| 1069 switches::kDisableTouchDragDrop, | 1069 switches::kDisableTouchDragDrop, |
| 1070 switches::kDisableTouchEditing, | 1070 switches::kDisableTouchEditing, |
| 1071 switches::kDisableUniversalAcceleratedOverflowScroll, | 1071 switches::kDisableUniversalAcceleratedOverflowScroll, |
| 1072 switches::kDisableUnprefixedMediaSource, | 1072 switches::kDisableUnprefixedMediaSource, |
| 1073 switches::kDisableWebKitMediaSource, | 1073 switches::kDisableWebKitMediaSource, |
| 1074 switches::kDomAutomationController, | 1074 switches::kDomAutomationController, |
| 1075 switches::kEnableAcceleratedFixedRootBackground, | 1075 switches::kEnableAcceleratedFixedRootBackground, |
| 1076 switches::kEnableAcceleratedOverflowScroll, | 1076 switches::kEnableAcceleratedOverflowScroll, |
| 1077 switches::kEnableAccessibilityLogging, | 1077 switches::kEnableAccessibilityLogging, |
| 1078 switches::kEnableADTSStreamParser, | 1078 switches::kEnableADTSStreamParser, |
| 1079 switches::kEnableBeginFrameScheduling, | 1079 switches::kEnableBeginFrameScheduling, |
| 1080 switches::kEnableBleedingEdgeRenderingFastPaths, | 1080 switches::kEnableBleedingEdgeRenderingFastPaths, |
| 1081 switches::kEnableBrowserPluginForAllViewTypes, | 1081 switches::kEnableBrowserPluginForAllViewTypes, |
| 1082 switches::kEnableCompositingForFixedPosition, | 1082 switches::kEnableCompositingForFixedPosition, |
| 1083 switches::kEnableCompositingForTransition, | 1083 switches::kEnableCompositingForTransition, |
| 1084 switches::kEnableDeferredImageDecoding, | 1084 switches::kEnableDeferredImageDecoding, |
| 1085 switches::kEnableDelegatedRenderer, |
| 1085 switches::kEnableEncryptedMedia, | 1086 switches::kEnableEncryptedMedia, |
| 1086 switches::kEnableExperimentalCanvasFeatures, | 1087 switches::kEnableExperimentalCanvasFeatures, |
| 1087 switches::kEnableExperimentalWebPlatformFeatures, | 1088 switches::kEnableExperimentalWebPlatformFeatures, |
| 1088 switches::kEnableExperimentalWebSocket, | 1089 switches::kEnableExperimentalWebSocket, |
| 1089 switches::kEnableFastTextAutosizing, | 1090 switches::kEnableFastTextAutosizing, |
| 1090 switches::kEnableGPUClientLogging, | 1091 switches::kEnableGPUClientLogging, |
| 1091 switches::kEnableGpuClientTracing, | 1092 switches::kEnableGpuClientTracing, |
| 1092 switches::kEnableGpuRasterization, | 1093 switches::kEnableGpuRasterization, |
| 1093 switches::kEnableGPUServiceLogging, | 1094 switches::kEnableGPUServiceLogging, |
| 1094 switches::kEnableHighDpiCompositingForFixedPosition, | 1095 switches::kEnableHighDpiCompositingForFixedPosition, |
| 1095 switches::kEnableHTMLImports, | 1096 switches::kEnableHTMLImports, |
| 1096 switches::kEnableLowResTiling, | 1097 switches::kEnableLowResTiling, |
| 1098 switches::kEnableImplSidePainting, |
| 1097 switches::kEnableInbandTextTracks, | 1099 switches::kEnableInbandTextTracks, |
| 1098 switches::kEnableLCDText, | 1100 switches::kEnableLCDText, |
| 1099 switches::kEnableLayerSquashing, | 1101 switches::kEnableLayerSquashing, |
| 1100 switches::kEnableLogging, | 1102 switches::kEnableLogging, |
| 1101 switches::kEnableMapImage, | 1103 switches::kEnableMapImage, |
| 1102 switches::kEnableMemoryBenchmarking, | 1104 switches::kEnableMemoryBenchmarking, |
| 1103 switches::kEnableOverlayFullscreenVideo, | 1105 switches::kEnableOverlayFullscreenVideo, |
| 1104 switches::kEnableOverlayScrollbar, | 1106 switches::kEnableOverlayScrollbar, |
| 1105 switches::kEnableOverscrollNotifications, | 1107 switches::kEnableOverscrollNotifications, |
| 1106 switches::kEnablePinch, | 1108 switches::kEnablePinch, |
| 1107 switches::kEnablePreparsedJsCaching, | 1109 switches::kEnablePreparsedJsCaching, |
| 1108 switches::kEnableRepaintAfterLayout, | 1110 switches::kEnableRepaintAfterLayout, |
| 1109 switches::kEnableServiceWorker, | 1111 switches::kEnableServiceWorker, |
| 1110 switches::kEnableSkiaBenchmarking, | 1112 switches::kEnableSkiaBenchmarking, |
| 1111 switches::kEnableSoftwareCompositing, | 1113 switches::kEnableSoftwareCompositing, |
| 1112 switches::kEnableSpeechSynthesis, | 1114 switches::kEnableSpeechSynthesis, |
| 1113 switches::kEnableStatsTable, | 1115 switches::kEnableStatsTable, |
| 1114 switches::kEnableStrictSiteIsolation, | 1116 switches::kEnableStrictSiteIsolation, |
| 1115 switches::kEnableTargetedStyleRecalc, | 1117 switches::kEnableTargetedStyleRecalc, |
| 1118 switches::kEnableThreadedCompositing, |
| 1116 switches::kEnableUniversalAcceleratedOverflowScroll, | 1119 switches::kEnableUniversalAcceleratedOverflowScroll, |
| 1117 switches::kEnableTouchDragDrop, | 1120 switches::kEnableTouchDragDrop, |
| 1118 switches::kEnableTouchEditing, | 1121 switches::kEnableTouchEditing, |
| 1119 switches::kEnableViewport, | 1122 switches::kEnableViewport, |
| 1120 switches::kEnableViewportMeta, | 1123 switches::kEnableViewportMeta, |
| 1121 switches::kMainFrameResizesAreOrientationChanges, | 1124 switches::kMainFrameResizesAreOrientationChanges, |
| 1122 switches::kEnableVtune, | 1125 switches::kEnableVtune, |
| 1123 switches::kEnableWebAnimationsSVG, | 1126 switches::kEnableWebAnimationsSVG, |
| 1124 switches::kEnableWebGLDraftExtensions, | 1127 switches::kEnableWebGLDraftExtensions, |
| 1125 switches::kEnableWebMIDI, | 1128 switches::kEnableWebMIDI, |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2169 child_process_launcher_->GetHandle(); | 2172 child_process_launcher_->GetHandle(); |
| 2170 base::PlatformFile client_file = | 2173 base::PlatformFile client_file = |
| 2171 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle()); | 2174 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle()); |
| 2172 Send(new MojoMsg_ChannelCreated( | 2175 Send(new MojoMsg_ChannelCreated( |
| 2173 IPC::GetFileHandleForProcess(client_file, process_handle, true))); | 2176 IPC::GetFileHandleForProcess(client_file, process_handle, true))); |
| 2174 } | 2177 } |
| 2175 } | 2178 } |
| 2176 #endif | 2179 #endif |
| 2177 | 2180 |
| 2178 } // namespace content | 2181 } // namespace content |
| OLD | NEW |