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/browser/renderer_host/test_backing_store.h" | 5 #include "content/browser/renderer_host/test_backing_store.h" |
6 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 6 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
7 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 7 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
8 #include "content/browser/renderer_host/test_render_view_host.h" | 8 #include "content/browser/renderer_host/test_render_view_host.h" |
9 #include "content/browser/site_instance_impl.h" | 9 #include "content/browser/site_instance_impl.h" |
10 #include "content/browser/web_contents/navigation_controller_impl.h" | 10 #include "content/browser/web_contents/navigation_controller_impl.h" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 void TestRenderViewHost::SendShouldCloseACK(bool proceed) { | 340 void TestRenderViewHost::SendShouldCloseACK(bool proceed) { |
341 OnMsgShouldCloseACK(proceed, base::TimeTicks(), base::TimeTicks()); | 341 OnMsgShouldCloseACK(proceed, base::TimeTicks(), base::TimeTicks()); |
342 } | 342 } |
343 | 343 |
344 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { | 344 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { |
345 contents_mime_type_ = mime_type; | 345 contents_mime_type_ = mime_type; |
346 } | 346 } |
347 | 347 |
348 void TestRenderViewHost::SimulateSwapOutACK() { | 348 void TestRenderViewHost::SimulateSwapOutACK() { |
349 OnSwapOutACK(); | 349 OnSwapOutACK(false); |
350 } | 350 } |
351 | 351 |
352 void TestRenderViewHost::SimulateWasHidden() { | 352 void TestRenderViewHost::SimulateWasHidden() { |
353 WasHidden(); | 353 WasHidden(); |
354 } | 354 } |
355 | 355 |
356 void TestRenderViewHost::SimulateWasShown() { | 356 void TestRenderViewHost::SimulateWasShown() { |
357 WasShown(); | 357 WasShown(); |
358 } | 358 } |
359 | 359 |
(...skipping 23 matching lines...) Expand all Loading... |
383 | 383 |
384 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 384 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
385 return static_cast<TestRenderViewHost*>(active_rvh()); | 385 return static_cast<TestRenderViewHost*>(active_rvh()); |
386 } | 386 } |
387 | 387 |
388 TestWebContents* RenderViewHostImplTestHarness::contents() { | 388 TestWebContents* RenderViewHostImplTestHarness::contents() { |
389 return static_cast<TestWebContents*>(web_contents()); | 389 return static_cast<TestWebContents*>(web_contents()); |
390 } | 390 } |
391 | 391 |
392 } // namespace content | 392 } // namespace content |
OLD | NEW |