| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 } | 739 } |
| 740 | 740 |
| 741 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( | 741 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
| 742 const CommandLine& browser_cmd, | 742 const CommandLine& browser_cmd, |
| 743 CommandLine* renderer_cmd) const { | 743 CommandLine* renderer_cmd) const { |
| 744 // Propagate the following switches to the renderer command line (along | 744 // Propagate the following switches to the renderer command line (along |
| 745 // with any associated values) if present in the browser command line. | 745 // with any associated values) if present in the browser command line. |
| 746 static const char* const kSwitchNames[] = { | 746 static const char* const kSwitchNames[] = { |
| 747 // We propagate the Chrome Frame command line here as well in case the | 747 // We propagate the Chrome Frame command line here as well in case the |
| 748 // renderer is not run in the sandbox. | 748 // renderer is not run in the sandbox. |
| 749 switches::kAudioBufferSize, |
| 749 switches::kAuditAllHandles, | 750 switches::kAuditAllHandles, |
| 750 switches::kAuditHandles, | 751 switches::kAuditHandles, |
| 751 switches::kChromeFrame, | 752 switches::kChromeFrame, |
| 752 switches::kDisable3DAPIs, | 753 switches::kDisable3DAPIs, |
| 753 switches::kDisableAcceleratedCompositing, | 754 switches::kDisableAcceleratedCompositing, |
| 754 switches::kDisableAcceleratedVideoDecode, | 755 switches::kDisableAcceleratedVideoDecode, |
| 755 switches::kDisableApplicationCache, | 756 switches::kDisableApplicationCache, |
| 756 switches::kDisableAudio, | 757 switches::kDisableAudio, |
| 757 switches::kDisableAudioOutputResampler, | 758 switches::kDisableAudioOutputResampler, |
| 758 switches::kDisableBreakpad, | 759 switches::kDisableBreakpad, |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 const gfx::Size& size, | 1592 const gfx::Size& size, |
| 1592 int32 gpu_process_host_id) { | 1593 int32 gpu_process_host_id) { |
| 1593 TRACE_EVENT0("renderer_host", | 1594 TRACE_EVENT0("renderer_host", |
| 1594 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1595 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1595 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1596 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1596 gpu_process_host_id, | 1597 gpu_process_host_id, |
| 1597 0); | 1598 0); |
| 1598 } | 1599 } |
| 1599 | 1600 |
| 1600 } // namespace content | 1601 } // namespace content |
| OLD | NEW |