| OLD | NEW |
| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 bool TestWebContents::CreateRenderViewForRenderManager( | 157 bool TestWebContents::CreateRenderViewForRenderManager( |
| 158 RenderViewHost* render_view_host, | 158 RenderViewHost* render_view_host, |
| 159 int opener_frame_routing_id, | 159 int opener_frame_routing_id, |
| 160 int proxy_routing_id, | 160 int proxy_routing_id, |
| 161 const FrameReplicationState& replicated_frame_state) { | 161 const FrameReplicationState& replicated_frame_state) { |
| 162 UpdateMaxPageIDIfNecessary(render_view_host); | 162 UpdateMaxPageIDIfNecessary(render_view_host); |
| 163 // This will go to a TestRenderViewHost. | 163 // This will go to a TestRenderViewHost. |
| 164 static_cast<RenderViewHostImpl*>(render_view_host) | 164 static_cast<RenderViewHostImpl*>(render_view_host) |
| 165 ->CreateRenderView(opener_frame_routing_id, proxy_routing_id, -1, | 165 ->CreateRenderView(opener_frame_routing_id, proxy_routing_id, -1, |
| 166 replicated_frame_state, false); | 166 replicated_frame_state, false, 0.0); |
| 167 return true; | 167 return true; |
| 168 } | 168 } |
| 169 | 169 |
| 170 WebContents* TestWebContents::Clone() { | 170 WebContents* TestWebContents::Clone() { |
| 171 WebContentsImpl* contents = | 171 WebContentsImpl* contents = |
| 172 Create(GetBrowserContext(), SiteInstance::Create(GetBrowserContext())); | 172 Create(GetBrowserContext(), SiteInstance::Create(GetBrowserContext())); |
| 173 contents->GetController().CopyStateFrom(controller_); | 173 contents->GetController().CopyStateFrom(controller_); |
| 174 return contents; | 174 return contents; |
| 175 } | 175 } |
| 176 | 176 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { | 341 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { |
| 342 } | 342 } |
| 343 | 343 |
| 344 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 344 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
| 345 const Referrer& referrer, | 345 const Referrer& referrer, |
| 346 const std::string& headers) { | 346 const std::string& headers) { |
| 347 save_frame_headers_ = headers; | 347 save_frame_headers_ = headers; |
| 348 } | 348 } |
| 349 | 349 |
| 350 } // namespace content | 350 } // namespace content |
| OLD | NEW |