| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_render_frame_host.h" | 5 #include "content/test/test_render_frame_host.h" |
| 6 | 6 |
| 7 #include "content/browser/frame_host/frame_tree.h" | 7 #include "content/browser/frame_host/frame_tree.h" |
| 8 #include "content/browser/frame_host/render_frame_host_delegate.h" | 8 #include "content/browser/frame_host/render_frame_host_delegate.h" |
| 9 #include "content/common/frame_messages.h" | 9 #include "content/common/frame_messages.h" |
| 10 #include "content/test/test_render_view_host.h" | 10 #include "content/test/test_render_view_host.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 child_creation_observer_.last_created_frame()); | 63 child_creation_observer_.last_created_frame()); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void TestRenderFrameHost::SendNavigateWithTransition( | 66 void TestRenderFrameHost::SendNavigateWithTransition( |
| 67 int page_id, | 67 int page_id, |
| 68 const GURL& url, | 68 const GURL& url, |
| 69 ui::PageTransition transition) { | 69 ui::PageTransition transition) { |
| 70 SendNavigateWithTransitionAndResponseCode(page_id, url, transition, 200); | 70 SendNavigateWithTransitionAndResponseCode(page_id, url, transition, 200); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void TestRenderFrameHost::SetContentsMimeType(const std::string& mime_type) { |
| 74 contents_mime_type_ = mime_type; |
| 75 } |
| 76 |
| 73 void TestRenderFrameHost::SendBeforeUnloadACK(bool proceed) { | 77 void TestRenderFrameHost::SendBeforeUnloadACK(bool proceed) { |
| 74 base::TimeTicks now = base::TimeTicks::Now(); | 78 base::TimeTicks now = base::TimeTicks::Now(); |
| 75 OnBeforeUnloadACK(proceed, now, now); | 79 OnBeforeUnloadACK(proceed, now, now); |
| 76 } | 80 } |
| 77 | 81 |
| 78 void TestRenderFrameHost::SimulateSwapOutACK() { | 82 void TestRenderFrameHost::SimulateSwapOutACK() { |
| 79 OnSwappedOut(); | 83 OnSwappedOut(); |
| 80 } | 84 } |
| 81 | 85 |
| 82 void TestRenderFrameHost::SendNavigate(int page_id, const GURL& url) { | 86 void TestRenderFrameHost::SendNavigate(int page_id, const GURL& url) { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 common_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault); | 189 common_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault); |
| 186 common_params.transition = ui::PAGE_TRANSITION_LINK; | 190 common_params.transition = ui::PAGE_TRANSITION_LINK; |
| 187 OnBeginNavigation(begin_params, common_params); | 191 OnBeginNavigation(begin_params, common_params); |
| 188 } | 192 } |
| 189 | 193 |
| 190 void TestRenderFrameHost::DidDisownOpener() { | 194 void TestRenderFrameHost::DidDisownOpener() { |
| 191 OnDidDisownOpener(); | 195 OnDidDisownOpener(); |
| 192 } | 196 } |
| 193 | 197 |
| 194 } // namespace content | 198 } // namespace content |
| OLD | NEW |