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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 DCHECK(gpu_data_manager); | 859 DCHECK(gpu_data_manager); |
860 gpu_data_manager->AppendRendererCommandLine(command_line); | 860 gpu_data_manager->AppendRendererCommandLine(command_line); |
861 } | 861 } |
862 | 862 |
863 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( | 863 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
864 const CommandLine& browser_cmd, | 864 const CommandLine& browser_cmd, |
865 CommandLine* renderer_cmd) const { | 865 CommandLine* renderer_cmd) const { |
866 // Propagate the following switches to the renderer command line (along | 866 // Propagate the following switches to the renderer command line (along |
867 // with any associated values) if present in the browser command line. | 867 // with any associated values) if present in the browser command line. |
868 static const char* const kSwitchNames[] = { | 868 static const char* const kSwitchNames[] = { |
| 869 switches::kAllowFiltersOverIPC, |
869 switches::kAudioBufferSize, | 870 switches::kAudioBufferSize, |
870 switches::kAuditAllHandles, | 871 switches::kAuditAllHandles, |
871 switches::kAuditHandles, | 872 switches::kAuditHandles, |
872 switches::kDisable3DAPIs, | 873 switches::kDisable3DAPIs, |
873 switches::kDisableAcceleratedCompositing, | 874 switches::kDisableAcceleratedCompositing, |
874 switches::kDisableAcceleratedVideoDecode, | 875 switches::kDisableAcceleratedVideoDecode, |
875 switches::kDisableApplicationCache, | 876 switches::kDisableApplicationCache, |
876 switches::kDisableAudio, | 877 switches::kDisableAudio, |
877 switches::kDisableBreakpad, | 878 switches::kDisableBreakpad, |
878 switches::kDisableDatabases, | 879 switches::kDisableDatabases, |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1797 // Skip widgets in other processes. | 1798 // Skip widgets in other processes. |
1798 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1799 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1799 continue; | 1800 continue; |
1800 | 1801 |
1801 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1802 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1802 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1803 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1803 } | 1804 } |
1804 } | 1805 } |
1805 | 1806 |
1806 } // namespace content | 1807 } // namespace content |
OLD | NEW |