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" |
11 #include "content/browser/web_contents/test_web_contents.h" | 11 #include "content/browser/web_contents/test_web_contents.h" |
12 #include "content/common/view_messages.h" | 12 #include "content/common/view_messages.h" |
13 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
14 #include "content/public/browser/navigation_controller.h" | 14 #include "content/public/browser/navigation_controller.h" |
15 #include "content/public/browser/storage_partition.h" | 15 #include "content/public/browser/storage_partition.h" |
16 #include "content/public/common/content_client.h" | 16 #include "content/public/common/content_client.h" |
17 #include "content/public/common/password_form.h" | |
17 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
18 #include "webkit/dom_storage/dom_storage_types.h" | 19 #include "webkit/dom_storage/dom_storage_types.h" |
19 #include "webkit/forms/password_form.h" | |
20 #include "webkit/glue/webkit_glue.h" | 20 #include "webkit/glue/webkit_glue.h" |
21 #include "webkit/glue/webpreferences.h" | 21 #include "webkit/glue/webpreferences.h" |
22 | 22 |
23 using content::NativeWebKeyboardEvent; | 23 using content::NativeWebKeyboardEvent; |
24 using webkit::forms::PasswordForm; | 24 using content::PasswordForm; |
jam
2012/10/04 06:18:12
nit: not needed (can also take the one above out)
blundell
2012/10/04 16:23:22
Done.
| |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 | 27 |
28 namespace { | 28 namespace { |
29 // Normally this is done by the NavigationController, but we'll fake it out | 29 // Normally this is done by the NavigationController, but we'll fake it out |
30 // here for testing. | 30 // here for testing. |
31 SessionStorageNamespaceImpl* CreateSessionStorageNamespace( | 31 SessionStorageNamespaceImpl* CreateSessionStorageNamespace( |
32 SiteInstance* instance) { | 32 SiteInstance* instance) { |
33 RenderProcessHost* process_host = instance->GetProcess(); | 33 RenderProcessHost* process_host = instance->GetProcess(); |
34 DOMStorageContext* dom_storage_context = | 34 DOMStorageContext* dom_storage_context = |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |