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_render_view_host.h" | 5 #include "content/browser/renderer_host/test_render_view_host.h" |
6 | 6 |
7 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 7 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
8 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 8 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
9 #include "content/browser/renderer_host/test_backing_store.h" | 9 #include "content/browser/renderer_host/test_backing_store.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
11 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
13 #include "content/public/browser/navigation_controller.h" | 13 #include "content/public/browser/navigation_controller.h" |
14 #include "content/public/browser/storage_partition.h" | 14 #include "content/public/browser/storage_partition.h" |
15 #include "content/public/common/content_client.h" | 15 #include "content/public/common/content_client.h" |
16 #include "content/public/common/page_state.h" | 16 #include "content/public/common/page_state.h" |
17 #include "content/public/common/password_form.h" | 17 #include "content/public/common/password_form.h" |
18 #include "content/test/test_web_contents.h" | 18 #include "content/test/test_web_contents.h" |
19 #include "media/base/video_frame.h" | 19 #include "media/base/video_frame.h" |
20 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
| 21 #include "webkit/common/dom_storage/dom_storage_types.h" |
21 #include "webkit/common/webpreferences.h" | 22 #include "webkit/common/webpreferences.h" |
22 #include "webkit/dom_storage/dom_storage_types.h" | |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 | 25 |
26 namespace { | 26 namespace { |
27 // Normally this is done by the NavigationController, but we'll fake it out | 27 // Normally this is done by the NavigationController, but we'll fake it out |
28 // here for testing. | 28 // here for testing. |
29 SessionStorageNamespaceImpl* CreateSessionStorageNamespace( | 29 SessionStorageNamespaceImpl* CreateSessionStorageNamespace( |
30 SiteInstance* instance) { | 30 SiteInstance* instance) { |
31 RenderProcessHost* process_host = instance->GetProcess(); | 31 RenderProcessHost* process_host = instance->GetProcess(); |
32 DOMStorageContext* dom_storage_context = | 32 DOMStorageContext* dom_storage_context = |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 418 |
419 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 419 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
420 return static_cast<TestRenderViewHost*>(active_rvh()); | 420 return static_cast<TestRenderViewHost*>(active_rvh()); |
421 } | 421 } |
422 | 422 |
423 TestWebContents* RenderViewHostImplTestHarness::contents() { | 423 TestWebContents* RenderViewHostImplTestHarness::contents() { |
424 return static_cast<TestWebContents*>(web_contents()); | 424 return static_cast<TestWebContents*>(web_contents()); |
425 } | 425 } |
426 | 426 |
427 } // namespace content | 427 } // namespace content |
OLD | NEW |