| 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 "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "content/browser/browser_url_handler_impl.h" | 10 #include "content/browser/browser_url_handler_impl.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 GetRenderManager()->speculative_render_frame_host_.get()) | 156 GetRenderManager()->speculative_render_frame_host_.get()) |
| 157 ->pending_commit(); | 157 ->pending_commit(); |
| 158 } | 158 } |
| 159 return GetRenderManager()->pending_frame_host() != nullptr; | 159 return GetRenderManager()->pending_frame_host() != nullptr; |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool TestWebContents::CreateRenderViewForRenderManager( | 162 bool TestWebContents::CreateRenderViewForRenderManager( |
| 163 RenderViewHost* render_view_host, | 163 RenderViewHost* render_view_host, |
| 164 int opener_frame_routing_id, | 164 int opener_frame_routing_id, |
| 165 int proxy_routing_id, | 165 int proxy_routing_id, |
| 166 const FrameReplicationState& replicated_frame_state, | 166 const FrameReplicationState& replicated_frame_state) { |
| 167 bool for_main_frame) { | |
| 168 UpdateMaxPageIDIfNecessary(render_view_host); | 167 UpdateMaxPageIDIfNecessary(render_view_host); |
| 169 // This will go to a TestRenderViewHost. | 168 // This will go to a TestRenderViewHost. |
| 170 static_cast<RenderViewHostImpl*>(render_view_host) | 169 static_cast<RenderViewHostImpl*>(render_view_host) |
| 171 ->CreateRenderView(opener_frame_routing_id, proxy_routing_id, -1, | 170 ->CreateRenderView(opener_frame_routing_id, proxy_routing_id, -1, |
| 172 replicated_frame_state, false); | 171 replicated_frame_state, false); |
| 173 return true; | 172 return true; |
| 174 } | 173 } |
| 175 | 174 |
| 176 WebContents* TestWebContents::Clone() { | 175 WebContents* TestWebContents::Clone() { |
| 177 WebContentsImpl* contents = | 176 WebContentsImpl* contents = |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { | 329 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { |
| 331 } | 330 } |
| 332 | 331 |
| 333 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 332 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
| 334 const Referrer& referrer, | 333 const Referrer& referrer, |
| 335 const std::string& headers) { | 334 const std::string& headers) { |
| 336 save_frame_headers_ = headers; | 335 save_frame_headers_ = headers; |
| 337 } | 336 } |
| 338 | 337 |
| 339 } // namespace content | 338 } // namespace content |
| OLD | NEW |