| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 125 } |
| 126 return GetRenderManager()->pending_frame_host() != nullptr; | 126 return GetRenderManager()->pending_frame_host() != nullptr; |
| 127 } | 127 } |
| 128 | 128 |
| 129 bool TestWebContents::CreateRenderViewForRenderManager( | 129 bool TestWebContents::CreateRenderViewForRenderManager( |
| 130 RenderViewHost* render_view_host, | 130 RenderViewHost* render_view_host, |
| 131 int opener_route_id, | 131 int opener_route_id, |
| 132 int proxy_routing_id, | 132 int proxy_routing_id, |
| 133 const FrameReplicationState& replicated_frame_state, | 133 const FrameReplicationState& replicated_frame_state, |
| 134 bool for_main_frame) { | 134 bool for_main_frame) { |
| 135 LOG(ERROR) << "TWC[" << this << "]::CreateRenderViewForRenderManager:" |
| 136 << " rvh:" << render_view_host; |
| 137 |
| 135 UpdateMaxPageIDIfNecessary(render_view_host); | 138 UpdateMaxPageIDIfNecessary(render_view_host); |
| 136 // This will go to a TestRenderViewHost. | 139 // This will go to a TestRenderViewHost. |
| 137 static_cast<RenderViewHostImpl*>( | 140 static_cast<RenderViewHostImpl*>( |
| 138 render_view_host)->CreateRenderView(base::string16(), | 141 render_view_host)->CreateRenderView(base::string16(), |
| 139 opener_route_id, | 142 opener_route_id, |
| 140 proxy_routing_id, | 143 proxy_routing_id, |
| 141 -1, | 144 -1, |
| 142 replicated_frame_state, | 145 replicated_frame_state, |
| 143 false); | 146 false); |
| 144 return true; | 147 return true; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { | 292 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { |
| 290 } | 293 } |
| 291 | 294 |
| 292 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 295 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
| 293 const Referrer& referrer, | 296 const Referrer& referrer, |
| 294 const std::string& headers) { | 297 const std::string& headers) { |
| 295 save_frame_headers_ = headers; | 298 save_frame_headers_ = headers; |
| 296 } | 299 } |
| 297 | 300 |
| 298 } // namespace content | 301 } // namespace content |
| OLD | NEW |