| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |