| 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_render_view_host.h" | 5 #include "content/test/test_render_view_host.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
| 11 #include "content/common/dom_storage/dom_storage_types.h" | 11 #include "content/common/dom_storage/dom_storage_types.h" |
| 12 #include "content/common/frame_messages.h" | 12 #include "content/common/frame_messages.h" |
| 13 #include "content/common/view_messages.h" | 13 #include "content/common/view_messages.h" |
| 14 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" |
| 15 #include "content/public/browser/navigation_controller.h" | 15 #include "content/public/browser/navigation_controller.h" |
| 16 #include "content/public/browser/storage_partition.h" | 16 #include "content/public/browser/storage_partition.h" |
| 17 #include "content/public/common/content_client.h" | 17 #include "content/public/common/content_client.h" |
| 18 #include "content/public/common/page_state.h" | 18 #include "content/public/common/page_state.h" |
| 19 #include "content/public/common/webpreferences.h" |
| 19 #include "content/test/test_web_contents.h" | 20 #include "content/test/test_web_contents.h" |
| 20 #include "media/base/video_frame.h" | 21 #include "media/base/video_frame.h" |
| 21 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
| 22 #include "webkit/common/webpreferences.h" | |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 | 25 |
| 26 void InitNavigateParams(FrameHostMsg_DidCommitProvisionalLoad_Params* params, | 26 void InitNavigateParams(FrameHostMsg_DidCommitProvisionalLoad_Params* params, |
| 27 int page_id, | 27 int page_id, |
| 28 const GURL& url, | 28 const GURL& url, |
| 29 PageTransition transition) { | 29 PageTransition transition) { |
| 30 params->page_id = page_id; | 30 params->page_id = page_id; |
| 31 params->url = url; | 31 params->url = url; |
| 32 params->referrer = Referrer(); | 32 params->referrer = Referrer(); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 388 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 389 return static_cast<TestRenderFrameHost*>(main_rfh()); | 389 return static_cast<TestRenderFrameHost*>(main_rfh()); |
| 390 } | 390 } |
| 391 | 391 |
| 392 TestWebContents* RenderViewHostImplTestHarness::contents() { | 392 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 393 return static_cast<TestWebContents*>(web_contents()); | 393 return static_cast<TestWebContents*>(web_contents()); |
| 394 } | 394 } |
| 395 | 395 |
| 396 } // namespace content | 396 } // namespace content |
| OLD | NEW |