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

Side by Side Diff: chrome/browser/tab_contents/test_tab_contents.cc

Issue 2775003: Added plumbing to transport the frame name between RenderViewHost and the Webkit layer. (Closed)
Patch Set: Final version for the record Created 10 years, 6 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/tab_contents/test_tab_contents.h" 5 #include "chrome/browser/tab_contents/test_tab_contents.h"
6 6
7 #include "chrome/browser/renderer_host/render_view_host.h" 7 #include "chrome/browser/renderer_host/render_view_host.h"
8 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 8 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
9 #include "chrome/common/notification_service.h" 9 #include "chrome/common/notification_service.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 TestRenderViewHost* TestTabContents::pending_rvh() { 44 TestRenderViewHost* TestTabContents::pending_rvh() {
45 return static_cast<TestRenderViewHost*>( 45 return static_cast<TestRenderViewHost*>(
46 render_manager_.pending_render_view_host_); 46 render_manager_.pending_render_view_host_);
47 } 47 }
48 48
49 bool TestTabContents::CreateRenderViewForRenderManager( 49 bool TestTabContents::CreateRenderViewForRenderManager(
50 RenderViewHost* render_view_host) { 50 RenderViewHost* render_view_host) {
51 // This will go to a TestRenderViewHost. 51 // This will go to a TestRenderViewHost.
52 render_view_host->CreateRenderView(profile()->GetRequestContext()); 52 render_view_host->CreateRenderView(profile()->GetRequestContext(),
53 string16());
53 return true; 54 return true;
54 } 55 }
55 56
56 TabContents* TestTabContents::Clone() { 57 TabContents* TestTabContents::Clone() {
57 TabContents* tc = new TestTabContents( 58 TabContents* tc = new TestTabContents(
58 profile(), SiteInstance::CreateSiteInstance(profile())); 59 profile(), SiteInstance::CreateSiteInstance(profile()));
59 tc->controller().CopyStateFrom(controller_); 60 tc->controller().CopyStateFrom(controller_);
60 return tc; 61 return tc;
61 } 62 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view.cc ('k') | chrome/browser/visitedlink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698