Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1145)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 11320018: Fixing guest processes to use the proper storage partition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing storage to be in-memory only. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 695 }
696 696
697 int RenderProcessHostImpl::VisibleWidgetCount() const { 697 int RenderProcessHostImpl::VisibleWidgetCount() const {
698 return visible_widgets_; 698 return visible_widgets_;
699 } 699 }
700 700
701 bool RenderProcessHostImpl::IsGuest() const { 701 bool RenderProcessHostImpl::IsGuest() const {
702 return is_guest_; 702 return is_guest_;
703 } 703 }
704 704
705 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const {
706 return storage_partition_impl_;
707 }
708
705 void RenderProcessHostImpl::AppendRendererCommandLine( 709 void RenderProcessHostImpl::AppendRendererCommandLine(
706 CommandLine* command_line) const { 710 CommandLine* command_line) const {
707 // Pass the process type first, so it shows first in process listings. 711 // Pass the process type first, so it shows first in process listings.
708 command_line->AppendSwitchASCII(switches::kProcessType, 712 command_line->AppendSwitchASCII(switches::kProcessType,
709 switches::kRendererProcess); 713 switches::kRendererProcess);
710 if (is_guest_) 714 if (is_guest_)
711 command_line->AppendSwitch(switches::kGuestRenderer); 715 command_line->AppendSwitch(switches::kGuestRenderer);
712 716
713 // Now send any options from our own command line we want to propagate. 717 // Now send any options from our own command line we want to propagate.
714 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 718 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 const gfx::Size& size, 1595 const gfx::Size& size,
1592 int32 gpu_process_host_id) { 1596 int32 gpu_process_host_id) {
1593 TRACE_EVENT0("renderer_host", 1597 TRACE_EVENT0("renderer_host",
1594 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1598 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1595 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1599 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1596 gpu_process_host_id, 1600 gpu_process_host_id,
1597 0); 1601 0);
1598 } 1602 }
1599 1603
1600 } // namespace content 1604 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698