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

Side by Side Diff: content/browser/tab_contents/tab_contents.cc

Issue 9416031: Prerendered pages are swapped in at browser::Navigate time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Limit to origin process Created 8 years, 9 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
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/browser/tab_contents/tab_contents.h" 5 #include "content/browser/tab_contents/tab_contents.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after
2453 save_info, 2453 save_info,
2454 this); 2454 this);
2455 } 2455 }
2456 2456
2457 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2457 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2458 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2458 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2459 // Can be NULL during tests. 2459 // Can be NULL during tests.
2460 if (rwh_view) 2460 if (rwh_view)
2461 rwh_view->SetSize(GetView()->GetContainerSize()); 2461 rwh_view->SetSize(GetView()->GetContainerSize());
2462 } 2462 }
2463
2464 const GURL& TabContents::GetOpenerOrigin() const {
2465 return opener_origin_;
2466 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698