| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1385 AppendCompositorCommandLineFlags(command_line); | 1385 AppendCompositorCommandLineFlags(command_line); |
| 1386 } | 1386 } |
| 1387 | 1387 |
| 1388 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( | 1388 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
| 1389 const base::CommandLine& browser_cmd, | 1389 const base::CommandLine& browser_cmd, |
| 1390 base::CommandLine* renderer_cmd) const { | 1390 base::CommandLine* renderer_cmd) const { |
| 1391 // Propagate the following switches to the renderer command line (along | 1391 // Propagate the following switches to the renderer command line (along |
| 1392 // with any associated values) if present in the browser command line. | 1392 // with any associated values) if present in the browser command line. |
| 1393 static const char* const kSwitchNames[] = { | 1393 static const char* const kSwitchNames[] = { |
| 1394 switches::kAgcStartupMinVolume, | 1394 switches::kAgcStartupMinVolume, |
| 1395 switches::kAecRefinedAdaptiveFilter, |
| 1395 switches::kAllowLoopbackInPeerConnection, | 1396 switches::kAllowLoopbackInPeerConnection, |
| 1396 switches::kAudioBufferSize, | 1397 switches::kAudioBufferSize, |
| 1397 switches::kBlinkPlatformLogChannels, | 1398 switches::kBlinkPlatformLogChannels, |
| 1398 switches::kBlinkSettings, | 1399 switches::kBlinkSettings, |
| 1399 switches::kDefaultTileWidth, | 1400 switches::kDefaultTileWidth, |
| 1400 switches::kDefaultTileHeight, | 1401 switches::kDefaultTileHeight, |
| 1401 switches::kDisable3DAPIs, | 1402 switches::kDisable3DAPIs, |
| 1402 switches::kDisableAcceleratedJpegDecoding, | 1403 switches::kDisableAcceleratedJpegDecoding, |
| 1403 switches::kDisableAcceleratedVideoDecode, | 1404 switches::kDisableAcceleratedVideoDecode, |
| 1404 switches::kDisableBlinkFeatures, | 1405 switches::kDisableBlinkFeatures, |
| (...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2826 | 2827 |
| 2827 // Skip widgets in other processes. | 2828 // Skip widgets in other processes. |
| 2828 if (rvh->GetProcess()->GetID() != GetID()) | 2829 if (rvh->GetProcess()->GetID() != GetID()) |
| 2829 continue; | 2830 continue; |
| 2830 | 2831 |
| 2831 rvh->OnWebkitPreferencesChanged(); | 2832 rvh->OnWebkitPreferencesChanged(); |
| 2832 } | 2833 } |
| 2833 } | 2834 } |
| 2834 | 2835 |
| 2835 } // namespace content | 2836 } // namespace content |
| OLD | NEW |