| 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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 } | 704 } |
| 705 | 705 |
| 706 int RenderProcessHostImpl::VisibleWidgetCount() const { | 706 int RenderProcessHostImpl::VisibleWidgetCount() const { |
| 707 return visible_widgets_; | 707 return visible_widgets_; |
| 708 } | 708 } |
| 709 | 709 |
| 710 bool RenderProcessHostImpl::IsGuest() const { | 710 bool RenderProcessHostImpl::IsGuest() const { |
| 711 return is_guest_; | 711 return is_guest_; |
| 712 } | 712 } |
| 713 | 713 |
| 714 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { |
| 715 return storage_partition_impl_; |
| 716 } |
| 717 |
| 714 void RenderProcessHostImpl::AppendRendererCommandLine( | 718 void RenderProcessHostImpl::AppendRendererCommandLine( |
| 715 CommandLine* command_line) const { | 719 CommandLine* command_line) const { |
| 716 // Pass the process type first, so it shows first in process listings. | 720 // Pass the process type first, so it shows first in process listings. |
| 717 command_line->AppendSwitchASCII(switches::kProcessType, | 721 command_line->AppendSwitchASCII(switches::kProcessType, |
| 718 switches::kRendererProcess); | 722 switches::kRendererProcess); |
| 719 if (is_guest_) | 723 if (is_guest_) |
| 720 command_line->AppendSwitch(switches::kGuestRenderer); | 724 command_line->AppendSwitch(switches::kGuestRenderer); |
| 721 | 725 |
| 722 // Now send any options from our own command line we want to propagate. | 726 // Now send any options from our own command line we want to propagate. |
| 723 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); | 727 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1586 const gfx::Size& size, | 1590 const gfx::Size& size, |
| 1587 int32 gpu_process_host_id) { | 1591 int32 gpu_process_host_id) { |
| 1588 TRACE_EVENT0("renderer_host", | 1592 TRACE_EVENT0("renderer_host", |
| 1589 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1593 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1590 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1594 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1591 gpu_process_host_id, | 1595 gpu_process_host_id, |
| 1592 0); | 1596 0); |
| 1593 } | 1597 } |
| 1594 | 1598 |
| 1595 } // namespace content | 1599 } // namespace content |
| OLD | NEW |