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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 | 944 |
945 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( | 945 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
946 const CommandLine& browser_cmd, | 946 const CommandLine& browser_cmd, |
947 CommandLine* renderer_cmd) const { | 947 CommandLine* renderer_cmd) const { |
948 // Propagate the following switches to the renderer command line (along | 948 // Propagate the following switches to the renderer command line (along |
949 // with any associated values) if present in the browser command line. | 949 // with any associated values) if present in the browser command line. |
950 static const char* const kSwitchNames[] = { | 950 static const char* const kSwitchNames[] = { |
951 switches::kAudioBufferSize, | 951 switches::kAudioBufferSize, |
952 switches::kAuditAllHandles, | 952 switches::kAuditAllHandles, |
953 switches::kAuditHandles, | 953 switches::kAuditHandles, |
| 954 switches::kBlinkPlatformLogChannels, |
954 switches::kBlockCrossSiteDocuments, | 955 switches::kBlockCrossSiteDocuments, |
955 switches::kDefaultTileWidth, | 956 switches::kDefaultTileWidth, |
956 switches::kDefaultTileHeight, | 957 switches::kDefaultTileHeight, |
957 switches::kDisable3DAPIs, | 958 switches::kDisable3DAPIs, |
958 switches::kDisableAcceleratedCompositing, | 959 switches::kDisableAcceleratedCompositing, |
959 switches::kDisableAcceleratedFixedRootBackground, | 960 switches::kDisableAcceleratedFixedRootBackground, |
960 switches::kDisableAcceleratedScrollableFrames, | 961 switches::kDisableAcceleratedScrollableFrames, |
961 switches::kDisableAcceleratedVideoDecode, | 962 switches::kDisableAcceleratedVideoDecode, |
962 switches::kDisableApplicationCache, | 963 switches::kDisableApplicationCache, |
963 switches::kDisableAudio, | 964 switches::kDisableAudio, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 switches::kTraceToConsole, | 1082 switches::kTraceToConsole, |
1082 switches::kUseDiscardableMemory, | 1083 switches::kUseDiscardableMemory, |
1083 // This flag needs to be propagated to the renderer process for | 1084 // This flag needs to be propagated to the renderer process for |
1084 // --in-process-webgl. | 1085 // --in-process-webgl. |
1085 switches::kUseGL, | 1086 switches::kUseGL, |
1086 switches::kUseMobileUserAgent, | 1087 switches::kUseMobileUserAgent, |
1087 switches::kUserAgent, | 1088 switches::kUserAgent, |
1088 switches::kV, | 1089 switches::kV, |
1089 switches::kVideoThreads, | 1090 switches::kVideoThreads, |
1090 switches::kVModule, | 1091 switches::kVModule, |
1091 switches::kWebCoreLogChannels, | |
1092 switches::kWebGLCommandBufferSizeKb, | 1092 switches::kWebGLCommandBufferSizeKb, |
1093 // Please keep these in alphabetical order. Compositor switches here should | 1093 // Please keep these in alphabetical order. Compositor switches here should |
1094 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 1094 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
1095 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 1095 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
1096 cc::switches::kCompositeToMailbox, | 1096 cc::switches::kCompositeToMailbox, |
1097 cc::switches::kDisableCompositedAntialiasing, | 1097 cc::switches::kDisableCompositedAntialiasing, |
1098 cc::switches::kDisableCompositorTouchHitTesting, | 1098 cc::switches::kDisableCompositorTouchHitTesting, |
1099 cc::switches::kDisableGPURasterization, | 1099 cc::switches::kDisableGPURasterization, |
1100 cc::switches::kDisableImplSidePainting, | 1100 cc::switches::kDisableImplSidePainting, |
1101 cc::switches::kDisableLCDText, | 1101 cc::switches::kDisableLCDText, |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2036 return; | 2036 return; |
2037 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); | 2037 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); |
2038 } | 2038 } |
2039 | 2039 |
2040 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { | 2040 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { |
2041 Send(new MediaStreamMsg_DisableAecDump()); | 2041 Send(new MediaStreamMsg_DisableAecDump()); |
2042 } | 2042 } |
2043 #endif | 2043 #endif |
2044 | 2044 |
2045 } // namespace content | 2045 } // namespace content |
OLD | NEW |