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

Side by Side Diff: content/test/test_web_contents.cc

Issue 212703005: Preserve Page::openedByDOM state across process swaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 months 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
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/test/test_web_contents.h" 5 #include "content/test/test_web_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/browser_url_handler_impl.h" 9 #include "content/browser/browser_url_handler_impl.h"
10 #include "content/browser/frame_host/cross_process_frame_connector.h" 10 #include "content/browser/frame_host/cross_process_frame_connector.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 bool TestWebContents::CreateRenderViewForRenderManager( 99 bool TestWebContents::CreateRenderViewForRenderManager(
100 RenderViewHost* render_view_host, 100 RenderViewHost* render_view_host,
101 int opener_route_id, 101 int opener_route_id,
102 CrossProcessFrameConnector* frame_connector) { 102 CrossProcessFrameConnector* frame_connector) {
103 // This will go to a TestRenderViewHost. 103 // This will go to a TestRenderViewHost.
104 static_cast<RenderViewHostImpl*>( 104 static_cast<RenderViewHostImpl*>(
105 render_view_host)->CreateRenderView(base::string16(), 105 render_view_host)->CreateRenderView(base::string16(),
106 opener_route_id, 106 opener_route_id,
107 -1); 107 -1, false);
108 return true; 108 return true;
109 } 109 }
110 110
111 WebContents* TestWebContents::Clone() { 111 WebContents* TestWebContents::Clone() {
112 WebContentsImpl* contents = 112 WebContentsImpl* contents =
113 Create(GetBrowserContext(), SiteInstance::Create(GetBrowserContext())); 113 Create(GetBrowserContext(), SiteInstance::Create(GetBrowserContext()));
114 contents->GetController().CopyStateFrom(controller_); 114 contents->GetController().CopyStateFrom(controller_);
115 return contents; 115 return contents;
116 } 116 }
117 117
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 245 }
246 246
247 void TestWebContents::ShowCreatedWidget(int route_id, 247 void TestWebContents::ShowCreatedWidget(int route_id,
248 const gfx::Rect& initial_pos) { 248 const gfx::Rect& initial_pos) {
249 } 249 }
250 250
251 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 251 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
252 } 252 }
253 253
254 } // namespace content 254 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698