| 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/renderer_host/render_view_host_impl.h" | 12 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 13 #include "content/browser/site_instance_impl.h" | 13 #include "content/browser/site_instance_impl.h" |
| 14 #include "content/common/frame_messages.h" |
| 14 #include "content/common/view_messages.h" | 15 #include "content/common/view_messages.h" |
| 15 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 16 #include "content/public/browser/notification_source.h" | 17 #include "content/public/browser/notification_source.h" |
| 17 #include "content/public/browser/notification_types.h" | 18 #include "content/public/browser/notification_types.h" |
| 18 #include "content/public/common/page_state.h" | 19 #include "content/public/common/page_state.h" |
| 19 #include "content/public/common/page_transition_types.h" | 20 #include "content/public/common/page_transition_types.h" |
| 20 #include "content/public/test/mock_render_process_host.h" | 21 #include "content/public/test/mock_render_process_host.h" |
| 21 #include "content/test/test_render_view_host.h" | 22 #include "content/test/test_render_view_host.h" |
| 22 | 23 |
| 23 namespace content { | 24 namespace content { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 Referrer(), | 62 Referrer(), |
| 62 transition); | 63 transition); |
| 63 } | 64 } |
| 64 | 65 |
| 65 void TestWebContents::TestDidNavigateWithReferrer( | 66 void TestWebContents::TestDidNavigateWithReferrer( |
| 66 RenderViewHost* render_view_host, | 67 RenderViewHost* render_view_host, |
| 67 int page_id, | 68 int page_id, |
| 68 const GURL& url, | 69 const GURL& url, |
| 69 const Referrer& referrer, | 70 const Referrer& referrer, |
| 70 PageTransition transition) { | 71 PageTransition transition) { |
| 71 ViewHostMsg_FrameNavigate_Params params; | 72 FrameHostMsg_DidCommitProvisionalLoad_Params params; |
| 72 | 73 |
| 73 params.page_id = page_id; | 74 params.page_id = page_id; |
| 74 params.url = url; | 75 params.url = url; |
| 75 params.referrer = referrer; | 76 params.referrer = referrer; |
| 76 params.transition = transition; | 77 params.transition = transition; |
| 77 params.redirects = std::vector<GURL>(); | 78 params.redirects = std::vector<GURL>(); |
| 78 params.should_update_history = false; | 79 params.should_update_history = false; |
| 79 params.searchable_form_url = GURL(); | 80 params.searchable_form_url = GURL(); |
| 80 params.searchable_form_encoding = std::string(); | 81 params.searchable_form_encoding = std::string(); |
| 81 params.security_info = std::string(); | 82 params.security_info = std::string(); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 } | 246 } |
| 246 | 247 |
| 247 void TestWebContents::ShowCreatedWidget(int route_id, | 248 void TestWebContents::ShowCreatedWidget(int route_id, |
| 248 const gfx::Rect& initial_pos) { | 249 const gfx::Rect& initial_pos) { |
| 249 } | 250 } |
| 250 | 251 |
| 251 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { | 252 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { |
| 252 } | 253 } |
| 253 | 254 |
| 254 } // namespace content | 255 } // namespace content |
| OLD | NEW |