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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/browser/frame_host/frame_tree.h" | 8 #include "content/browser/frame_host/frame_tree.h" |
9 #include "content/browser/frame_host/navigation_request.h" | 9 #include "content/browser/frame_host/navigation_request.h" |
10 #include "content/browser/frame_host/navigator.h" | 10 #include "content/browser/frame_host/navigator.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 return; | 230 return; |
231 | 231 |
232 ASSERT_TRUE(request->state() == NavigationRequest::STARTED); | 232 ASSERT_TRUE(request->state() == NavigationRequest::STARTED); |
233 TestNavigationURLLoader* url_loader = | 233 TestNavigationURLLoader* url_loader = |
234 static_cast<TestNavigationURLLoader*>(request->loader_for_testing()); | 234 static_cast<TestNavigationURLLoader*>(request->loader_for_testing()); |
235 ASSERT_TRUE(url_loader); | 235 ASSERT_TRUE(url_loader); |
236 scoped_refptr<ResourceResponse> response(new ResourceResponse); | 236 scoped_refptr<ResourceResponse> response(new ResourceResponse); |
237 url_loader->CallOnResponseStarted(response, MakeEmptyStream()); | 237 url_loader->CallOnResponseStarted(response, MakeEmptyStream()); |
238 } | 238 } |
239 | 239 |
| 240 void TestRenderFrameHost::SendBeforeUnloadHandlersPresenceChanged( |
| 241 bool present) { |
| 242 OnBeforeUnloadHandlersPresenceChanged(present); |
| 243 } |
| 244 |
| 245 void TestRenderFrameHost::SendUnloadHandlersPresenceChanged(bool present) { |
| 246 OnUnloadHandlersPresenceChanged(present); |
| 247 } |
| 248 |
240 } // namespace content | 249 } // namespace content |
OLD | NEW |