| 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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 } | 743 } |
| 744 | 744 |
| 745 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( | 745 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
| 746 const CommandLine& browser_cmd, | 746 const CommandLine& browser_cmd, |
| 747 CommandLine* renderer_cmd) const { | 747 CommandLine* renderer_cmd) const { |
| 748 // Propagate the following switches to the renderer command line (along | 748 // Propagate the following switches to the renderer command line (along |
| 749 // with any associated values) if present in the browser command line. | 749 // with any associated values) if present in the browser command line. |
| 750 static const char* const kSwitchNames[] = { | 750 static const char* const kSwitchNames[] = { |
| 751 // We propagate the Chrome Frame command line here as well in case the | 751 // We propagate the Chrome Frame command line here as well in case the |
| 752 // renderer is not run in the sandbox. | 752 // renderer is not run in the sandbox. |
| 753 switches::kAudioBufferSize, |
| 753 switches::kAuditAllHandles, | 754 switches::kAuditAllHandles, |
| 754 switches::kAuditHandles, | 755 switches::kAuditHandles, |
| 755 switches::kChromeFrame, | 756 switches::kChromeFrame, |
| 756 switches::kDisable3DAPIs, | 757 switches::kDisable3DAPIs, |
| 757 switches::kDisableAcceleratedCompositing, | 758 switches::kDisableAcceleratedCompositing, |
| 758 switches::kDisableAcceleratedVideoDecode, | 759 switches::kDisableAcceleratedVideoDecode, |
| 759 switches::kDisableApplicationCache, | 760 switches::kDisableApplicationCache, |
| 760 switches::kDisableAudio, | 761 switches::kDisableAudio, |
| 761 switches::kDisableAudioOutputResampler, | 762 switches::kDisableAudioOutputResampler, |
| 762 switches::kDisableBreakpad, | 763 switches::kDisableBreakpad, |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1601 int32 gpu_process_host_id) { | 1602 int32 gpu_process_host_id) { |
| 1602 TRACE_EVENT0("renderer_host", | 1603 TRACE_EVENT0("renderer_host", |
| 1603 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1604 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1604 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1605 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1605 gpu_process_host_id, | 1606 gpu_process_host_id, |
| 1606 false, | 1607 false, |
| 1607 0); | 1608 0); |
| 1608 } | 1609 } |
| 1609 | 1610 |
| 1610 } // namespace content | 1611 } // namespace content |
| OLD | NEW |