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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 365 |
366 void TestWebContents::SetNavigationData( | 366 void TestWebContents::SetNavigationData( |
367 NavigationHandle* navigation_handle, | 367 NavigationHandle* navigation_handle, |
368 std::unique_ptr<NavigationData> navigation_data) { | 368 std::unique_ptr<NavigationData> navigation_data) { |
369 static_cast<NavigationHandleImpl*>(navigation_handle) | 369 static_cast<NavigationHandleImpl*>(navigation_handle) |
370 ->set_navigation_data(std::move(navigation_data)); | 370 ->set_navigation_data(std::move(navigation_data)); |
371 } | 371 } |
372 | 372 |
373 void TestWebContents::CreateNewWindow( | 373 void TestWebContents::CreateNewWindow( |
374 SiteInstance* source_site_instance, | 374 SiteInstance* source_site_instance, |
| 375 RenderFrameHost* opener, |
375 int32_t route_id, | 376 int32_t route_id, |
376 int32_t main_frame_route_id, | 377 int32_t main_frame_route_id, |
377 int32_t main_frame_widget_route_id, | 378 int32_t main_frame_widget_route_id, |
378 const mojom::CreateNewWindowParams& params, | 379 const mojom::CreateNewWindowParams& params, |
379 SessionStorageNamespace* session_storage_namespace) {} | 380 SessionStorageNamespace* session_storage_namespace) {} |
380 | 381 |
381 void TestWebContents::CreateNewWidget(int32_t render_process_id, | 382 void TestWebContents::CreateNewWidget(int32_t render_process_id, |
382 int32_t route_id, | 383 int32_t route_id, |
383 blink::WebPopupType popup_type) {} | 384 blink::WebPopupType popup_type) {} |
384 | 385 |
(...skipping 16 matching lines...) Expand all Loading... |
401 int route_id) { | 402 int route_id) { |
402 } | 403 } |
403 | 404 |
404 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 405 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
405 const Referrer& referrer, | 406 const Referrer& referrer, |
406 const std::string& headers) { | 407 const std::string& headers) { |
407 save_frame_headers_ = headers; | 408 save_frame_headers_ = headers; |
408 } | 409 } |
409 | 410 |
410 } // namespace content | 411 } // namespace content |
OLD | NEW |