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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 switches::kDisableLegacyEncryptedMedia, | 926 switches::kDisableLegacyEncryptedMedia, |
927 switches::kOverrideEncryptedMediaCanPlayType, | 927 switches::kOverrideEncryptedMediaCanPlayType, |
928 switches::kEnableExperimentalWebPlatformFeatures, | 928 switches::kEnableExperimentalWebPlatformFeatures, |
929 switches::kEnableFixedLayout, | 929 switches::kEnableFixedLayout, |
930 switches::kEnableDeferredImageDecoding, | 930 switches::kEnableDeferredImageDecoding, |
931 switches::kEnableGPUServiceLogging, | 931 switches::kEnableGPUServiceLogging, |
932 switches::kEnableGPUClientLogging, | 932 switches::kEnableGPUClientLogging, |
933 switches::kEnableGpuClientTracing, | 933 switches::kEnableGpuClientTracing, |
934 switches::kEnableGpuBenchmarking, | 934 switches::kEnableGpuBenchmarking, |
935 switches::kEnableMemoryBenchmarking, | 935 switches::kEnableMemoryBenchmarking, |
936 switches::kEnableOverlayScrollbars, | |
937 switches::kEnableSkiaBenchmarking, | 936 switches::kEnableSkiaBenchmarking, |
938 switches::kEnableLogging, | 937 switches::kEnableLogging, |
939 switches::kEnableSpeechSynthesis, | 938 switches::kEnableSpeechSynthesis, |
940 switches::kEnableTouchDragDrop, | 939 switches::kEnableTouchDragDrop, |
941 switches::kEnableTouchEditing, | 940 switches::kEnableTouchEditing, |
942 #if defined(ENABLE_WEBRTC) | 941 #if defined(ENABLE_WEBRTC) |
943 switches::kEnableWebRtcAecRecordings, | 942 switches::kEnableWebRtcAecRecordings, |
944 switches::kEnableWebRtcTcpServerSocket, | 943 switches::kEnableWebRtcTcpServerSocket, |
945 switches::kEnableWebRtcHWDecoding, | 944 switches::kEnableWebRtcHWDecoding, |
946 switches::kEnableWebRtcHWEncoding, | 945 switches::kEnableWebRtcHWEncoding, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 switches::kDefaultTileHeight, | 978 switches::kDefaultTileHeight, |
980 switches::kMaxUntiledLayerWidth, | 979 switches::kMaxUntiledLayerWidth, |
981 switches::kMaxUntiledLayerHeight, | 980 switches::kMaxUntiledLayerHeight, |
982 switches::kEnableViewport, | 981 switches::kEnableViewport, |
983 switches::kEnableInbandTextTracks, | 982 switches::kEnableInbandTextTracks, |
984 switches::kEnableOpusPlayback, | 983 switches::kEnableOpusPlayback, |
985 switches::kEnableVp8AlphaPlayback, | 984 switches::kEnableVp8AlphaPlayback, |
986 switches::kEnableEac3Playback, | 985 switches::kEnableEac3Playback, |
987 switches::kForceDeviceScaleFactor, | 986 switches::kForceDeviceScaleFactor, |
988 switches::kFullMemoryCrashReport, | 987 switches::kFullMemoryCrashReport, |
989 #if defined(OS_ANDROID) | |
990 switches::kHideScrollbars, | |
991 #endif | |
992 #if !defined (GOOGLE_CHROME_BUILD) | 988 #if !defined (GOOGLE_CHROME_BUILD) |
993 // These are unsupported and not fully tested modes, so don't enable them | 989 // These are unsupported and not fully tested modes, so don't enable them |
994 // for official Google Chrome builds. | 990 // for official Google Chrome builds. |
995 switches::kInProcessPlugins, | 991 switches::kInProcessPlugins, |
996 #endif // GOOGLE_CHROME_BUILD | 992 #endif // GOOGLE_CHROME_BUILD |
997 switches::kJavaScriptFlags, | 993 switches::kJavaScriptFlags, |
998 switches::kLoggingLevel, | 994 switches::kLoggingLevel, |
999 switches::kMemoryMetrics, | 995 switches::kMemoryMetrics, |
1000 #if defined(OS_ANDROID) | 996 #if defined(OS_ANDROID) |
1001 switches::kNetworkCountryIso, | 997 switches::kNetworkCountryIso, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 switches::kDisableDeviceMotion, | 1033 switches::kDisableDeviceMotion, |
1038 #endif | 1034 #endif |
1039 // Please keep these in alphabetical order. Compositor switches here should | 1035 // Please keep these in alphabetical order. Compositor switches here should |
1040 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 1036 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
1041 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 1037 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
1042 cc::switches::kCompositeToMailbox, | 1038 cc::switches::kCompositeToMailbox, |
1043 cc::switches::kDisableCompositedAntialiasing, | 1039 cc::switches::kDisableCompositedAntialiasing, |
1044 cc::switches::kDisableImplSidePainting, | 1040 cc::switches::kDisableImplSidePainting, |
1045 cc::switches::kDisableThreadedAnimation, | 1041 cc::switches::kDisableThreadedAnimation, |
1046 cc::switches::kEnableImplSidePainting, | 1042 cc::switches::kEnableImplSidePainting, |
| 1043 cc::switches::kEnableOverlayScrollbars, |
1047 cc::switches::kEnablePartialSwap, | 1044 cc::switches::kEnablePartialSwap, |
1048 cc::switches::kEnablePerTilePainting, | 1045 cc::switches::kEnablePerTilePainting, |
1049 cc::switches::kEnablePinchVirtualViewport, | 1046 cc::switches::kEnablePinchVirtualViewport, |
1050 cc::switches::kEnableTopControlsPositionCalculation, | 1047 cc::switches::kEnableTopControlsPositionCalculation, |
1051 cc::switches::kForceDirectLayerDrawing, | 1048 cc::switches::kForceDirectLayerDrawing, |
1052 cc::switches::kLowResolutionContentsScaleFactor, | 1049 cc::switches::kLowResolutionContentsScaleFactor, |
1053 cc::switches::kMaxTilesForInterestArea, | 1050 cc::switches::kMaxTilesForInterestArea, |
1054 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 1051 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
1055 cc::switches::kNumRasterThreads, | 1052 cc::switches::kNumRasterThreads, |
1056 cc::switches::kShowCompositedLayerBorders, | 1053 cc::switches::kShowCompositedLayerBorders, |
1057 cc::switches::kShowFPSCounter, | 1054 cc::switches::kShowFPSCounter, |
1058 cc::switches::kShowNonOccludingRects, | 1055 cc::switches::kShowNonOccludingRects, |
1059 cc::switches::kShowOccludingRects, | 1056 cc::switches::kShowOccludingRects, |
1060 cc::switches::kShowPropertyChangedRects, | 1057 cc::switches::kShowPropertyChangedRects, |
1061 cc::switches::kShowReplicaScreenSpaceRects, | 1058 cc::switches::kShowReplicaScreenSpaceRects, |
1062 cc::switches::kShowScreenSpaceRects, | 1059 cc::switches::kShowScreenSpaceRects, |
1063 cc::switches::kShowSurfaceDamageRects, | 1060 cc::switches::kShowSurfaceDamageRects, |
1064 cc::switches::kSlowDownRasterScaleFactor, | 1061 cc::switches::kSlowDownRasterScaleFactor, |
| 1062 cc::switches::kSolidColorScrollbarColor, |
1065 cc::switches::kStrictLayerPropertyChangeChecking, | 1063 cc::switches::kStrictLayerPropertyChangeChecking, |
1066 cc::switches::kTopControlsHeight, | 1064 cc::switches::kTopControlsHeight, |
1067 cc::switches::kTopControlsHideThreshold, | 1065 cc::switches::kTopControlsHideThreshold, |
1068 cc::switches::kTopControlsShowThreshold, | 1066 cc::switches::kTopControlsShowThreshold, |
1069 cc::switches::kTraceOverdraw, | 1067 cc::switches::kTraceOverdraw, |
1070 cc::switches::kUseMapImage, | 1068 cc::switches::kUseMapImage, |
1071 }; | 1069 }; |
1072 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1070 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
1073 arraysize(kSwitchNames)); | 1071 arraysize(kSwitchNames)); |
1074 | 1072 |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1807 // Skip widgets in other processes. | 1805 // Skip widgets in other processes. |
1808 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1806 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1809 continue; | 1807 continue; |
1810 | 1808 |
1811 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1809 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1812 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1810 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1813 } | 1811 } |
1814 } | 1812 } |
1815 | 1813 |
1816 } // namespace content | 1814 } // namespace content |
OLD | NEW |