| 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 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 } | 1392 } |
| 1393 } | 1393 } |
| 1394 | 1394 |
| 1395 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( | 1395 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
| 1396 const base::CommandLine& browser_cmd, | 1396 const base::CommandLine& browser_cmd, |
| 1397 base::CommandLine* renderer_cmd) const { | 1397 base::CommandLine* renderer_cmd) const { |
| 1398 // Propagate the following switches to the renderer command line (along | 1398 // Propagate the following switches to the renderer command line (along |
| 1399 // with any associated values) if present in the browser command line. | 1399 // with any associated values) if present in the browser command line. |
| 1400 static const char* const kSwitchNames[] = { | 1400 static const char* const kSwitchNames[] = { |
| 1401 switches::kAgcStartupMinVolume, | 1401 switches::kAgcStartupMinVolume, |
| 1402 switches::kAecRefinedAdaptiveFilter, |
| 1402 switches::kAllowLoopbackInPeerConnection, | 1403 switches::kAllowLoopbackInPeerConnection, |
| 1403 switches::kAndroidFontsPath, | 1404 switches::kAndroidFontsPath, |
| 1404 switches::kAudioBufferSize, | 1405 switches::kAudioBufferSize, |
| 1405 switches::kBlinkPlatformLogChannels, | 1406 switches::kBlinkPlatformLogChannels, |
| 1406 switches::kBlinkSettings, | 1407 switches::kBlinkSettings, |
| 1407 switches::kDefaultTileWidth, | 1408 switches::kDefaultTileWidth, |
| 1408 switches::kDefaultTileHeight, | 1409 switches::kDefaultTileHeight, |
| 1409 switches::kDisable2dCanvasImageChromium, | 1410 switches::kDisable2dCanvasImageChromium, |
| 1410 switches::kDisable3DAPIs, | 1411 switches::kDisable3DAPIs, |
| 1411 switches::kDisableAcceleratedJpegDecoding, | 1412 switches::kDisableAcceleratedJpegDecoding, |
| (...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2842 | 2843 |
| 2843 // Skip widgets in other processes. | 2844 // Skip widgets in other processes. |
| 2844 if (rvh->GetProcess()->GetID() != GetID()) | 2845 if (rvh->GetProcess()->GetID() != GetID()) |
| 2845 continue; | 2846 continue; |
| 2846 | 2847 |
| 2847 rvh->OnWebkitPreferencesChanged(); | 2848 rvh->OnWebkitPreferencesChanged(); |
| 2848 } | 2849 } |
| 2849 } | 2850 } |
| 2850 | 2851 |
| 2851 } // namespace content | 2852 } // namespace content |
| OLD | NEW |