Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(729)

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
24 using webkit::forms::PasswordForm;
25
26 namespace content { 23 namespace content {
27 24
28 namespace { 25 namespace {
29 // Normally this is done by the NavigationController, but we'll fake it out 26 // Normally this is done by the NavigationController, but we'll fake it out
30 // here for testing. 27 // here for testing.
31 SessionStorageNamespaceImpl* CreateSessionStorageNamespace( 28 SessionStorageNamespaceImpl* CreateSessionStorageNamespace(
32 SiteInstance* instance) { 29 SiteInstance* instance) {
33 RenderProcessHost* process_host = instance->GetProcess(); 30 RenderProcessHost* process_host = instance->GetProcess();
34 DOMStorageContext* dom_storage_context = 31 DOMStorageContext* dom_storage_context =
35 BrowserContext::GetStoragePartition(process_host->GetBrowserContext(), 32 BrowserContext::GetStoragePartition(process_host->GetBrowserContext(),
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 380
384 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 381 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
385 return static_cast<TestRenderViewHost*>(active_rvh()); 382 return static_cast<TestRenderViewHost*>(active_rvh());
386 } 383 }
387 384
388 TestWebContents* RenderViewHostImplTestHarness::contents() { 385 TestWebContents* RenderViewHostImplTestHarness::contents() {
389 return static_cast<TestWebContents*>(web_contents()); 386 return static_cast<TestWebContents*>(web_contents());
390 } 387 }
391 388
392 } // namespace content 389 } // namespace content
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/password_generation_manager_browsertest.cc ('k') | content/browser/web_contents/test_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698