| 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" |
| 11 #include "content/browser/frame_host/navigation_entry_impl.h" | 11 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 12 #include "content/browser/frame_host/navigation_handle_impl.h" | 12 #include "content/browser/frame_host/navigation_handle_impl.h" |
| 13 #include "content/browser/frame_host/navigator.h" | 13 #include "content/browser/frame_host/navigator.h" |
| 14 #include "content/browser/frame_host/navigator_impl.h" | 14 #include "content/browser/frame_host/navigator_impl.h" |
| 15 #include "content/browser/renderer_host/render_view_host_impl.h" | 15 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 16 #include "content/browser/site_instance_impl.h" | 16 #include "content/browser/site_instance_impl.h" |
| 17 #include "content/common/frame_messages.h" | 17 #include "content/common/frame_messages.h" |
| 18 #include "content/common/render_message_filter.mojom.h" |
| 18 #include "content/common/view_messages.h" | 19 #include "content/common/view_messages.h" |
| 19 #include "content/public/browser/navigation_data.h" | 20 #include "content/public/browser/navigation_data.h" |
| 20 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 21 #include "content/public/browser/notification_source.h" | 22 #include "content/public/browser/notification_source.h" |
| 22 #include "content/public/browser/notification_types.h" | 23 #include "content/public/browser/notification_types.h" |
| 23 #include "content/public/common/browser_side_navigation_policy.h" | 24 #include "content/public/common/browser_side_navigation_policy.h" |
| 24 #include "content/public/common/page_state.h" | 25 #include "content/public/common/page_state.h" |
| 25 #include "content/public/test/browser_side_navigation_test_utils.h" | 26 #include "content/public/test/browser_side_navigation_test_utils.h" |
| 26 #include "content/public/test/mock_render_process_host.h" | 27 #include "content/public/test/mock_render_process_host.h" |
| 27 #include "content/test/test_render_view_host.h" | 28 #include "content/test/test_render_view_host.h" |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 std::unique_ptr<NavigationData> navigation_data) { | 319 std::unique_ptr<NavigationData> navigation_data) { |
| 319 static_cast<NavigationHandleImpl*>(navigation_handle) | 320 static_cast<NavigationHandleImpl*>(navigation_handle) |
| 320 ->set_navigation_data(std::move(navigation_data)); | 321 ->set_navigation_data(std::move(navigation_data)); |
| 321 } | 322 } |
| 322 | 323 |
| 323 void TestWebContents::CreateNewWindow( | 324 void TestWebContents::CreateNewWindow( |
| 324 SiteInstance* source_site_instance, | 325 SiteInstance* source_site_instance, |
| 325 int32_t route_id, | 326 int32_t route_id, |
| 326 int32_t main_frame_route_id, | 327 int32_t main_frame_route_id, |
| 327 int32_t main_frame_widget_route_id, | 328 int32_t main_frame_widget_route_id, |
| 328 const ViewHostMsg_CreateWindow_Params& params, | 329 const mojom::CreateNewWindowParams& params, |
| 329 SessionStorageNamespace* session_storage_namespace) {} | 330 SessionStorageNamespace* session_storage_namespace) {} |
| 330 | 331 |
| 331 void TestWebContents::CreateNewWidget(int32_t render_process_id, | 332 void TestWebContents::CreateNewWidget(int32_t render_process_id, |
| 332 int32_t route_id, | 333 int32_t route_id, |
| 333 blink::WebPopupType popup_type) {} | 334 blink::WebPopupType popup_type) {} |
| 334 | 335 |
| 335 void TestWebContents::CreateNewFullscreenWidget(int32_t render_process_id, | 336 void TestWebContents::CreateNewFullscreenWidget(int32_t render_process_id, |
| 336 int32_t route_id) {} | 337 int32_t route_id) {} |
| 337 | 338 |
| 338 void TestWebContents::ShowCreatedWindow(int process_id, | 339 void TestWebContents::ShowCreatedWindow(int process_id, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 351 int route_id) { | 352 int route_id) { |
| 352 } | 353 } |
| 353 | 354 |
| 354 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 355 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
| 355 const Referrer& referrer, | 356 const Referrer& referrer, |
| 356 const std::string& headers) { | 357 const std::string& headers) { |
| 357 save_frame_headers_ = headers; | 358 save_frame_headers_ = headers; |
| 358 } | 359 } |
| 359 | 360 |
| 360 } // namespace content | 361 } // namespace content |
| OLD | NEW |