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/renderer_host/test_render_view_host.h" | 6 #include "content/browser/renderer_host/test_render_view_host.h" |
7 #include "content/browser/site_instance_impl.h" | 7 #include "content/browser/site_instance_impl.h" |
8 #include "content/browser/tab_contents/navigation_controller_impl.h" | 8 #include "content/browser/tab_contents/navigation_controller_impl.h" |
9 #include "content/browser/tab_contents/test_web_contents.h" | 9 #include "content/browser/tab_contents/test_web_contents.h" |
10 #include "content/common/dom_storage_common.h" | |
11 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
12 #include "content/public/browser/navigation_controller.h" | 11 #include "content/public/browser/navigation_controller.h" |
13 #include "content/public/common/content_client.h" | 12 #include "content/public/common/content_client.h" |
14 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 #include "webkit/dom_storage/dom_storage_types.h" |
15 #include "webkit/forms/password_form.h" | 15 #include "webkit/forms/password_form.h" |
16 #include "webkit/glue/webkit_glue.h" | 16 #include "webkit/glue/webkit_glue.h" |
17 #include "webkit/glue/webpreferences.h" | 17 #include "webkit/glue/webpreferences.h" |
18 | 18 |
19 using webkit::forms::PasswordForm; | 19 using webkit::forms::PasswordForm; |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, | 23 void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params, |
24 int page_id, | 24 int page_id, |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 void TestRenderWidgetHostView::UnlockMouse() { | 196 void TestRenderWidgetHostView::UnlockMouse() { |
197 } | 197 } |
198 | 198 |
199 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, | 199 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, |
200 RenderViewHostDelegate* delegate, | 200 RenderViewHostDelegate* delegate, |
201 int routing_id) | 201 int routing_id) |
202 : RenderViewHostImpl(instance, | 202 : RenderViewHostImpl(instance, |
203 delegate, | 203 delegate, |
204 routing_id, | 204 routing_id, |
205 kInvalidSessionStorageNamespaceId), | 205 dom_storage::kInvalidSessionStorageNamespaceId), |
206 render_view_created_(false), | 206 render_view_created_(false), |
207 delete_counter_(NULL), | 207 delete_counter_(NULL), |
208 simulate_fetch_via_proxy_(false), | 208 simulate_fetch_via_proxy_(false), |
209 contents_mime_type_("text/html") { | 209 contents_mime_type_("text/html") { |
210 // For normal RenderViewHosts, this is freed when |Shutdown()| is | 210 // For normal RenderViewHosts, this is freed when |Shutdown()| is |
211 // called. For TestRenderViewHost, the view is explicitly | 211 // called. For TestRenderViewHost, the view is explicitly |
212 // deleted in the destructor below, because | 212 // deleted in the destructor below, because |
213 // TestRenderWidgetHostView::Destroy() doesn't |delete this|. | 213 // TestRenderWidgetHostView::Destroy() doesn't |delete this|. |
214 SetView(new TestRenderWidgetHostView(this)); | 214 SetView(new TestRenderWidgetHostView(this)); |
215 } | 215 } |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 311 |
312 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 312 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
313 return static_cast<TestRenderViewHost*>(active_rvh()); | 313 return static_cast<TestRenderViewHost*>(active_rvh()); |
314 } | 314 } |
315 | 315 |
316 TestWebContents* RenderViewHostImplTestHarness::contents() { | 316 TestWebContents* RenderViewHostImplTestHarness::contents() { |
317 return static_cast<TestWebContents*>(web_contents()); | 317 return static_cast<TestWebContents*>(web_contents()); |
318 } | 318 } |
319 | 319 |
320 } // namespace content | 320 } // namespace content |
OLD | NEW |