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/web_contents/navigation_controller_impl.h" | 8 #include "content/browser/web_contents/navigation_controller_impl.h" |
9 #include "content/browser/web_contents/test_web_contents.h" | 9 #include "content/browser/web_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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 void TestRenderWidgetHostView::UnlockMouse() { | 203 void TestRenderWidgetHostView::UnlockMouse() { |
204 } | 204 } |
205 | 205 |
206 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, | 206 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, |
207 RenderViewHostDelegate* delegate, | 207 RenderViewHostDelegate* delegate, |
208 int routing_id) | 208 int routing_id) |
209 : RenderViewHostImpl(instance, | 209 : RenderViewHostImpl(instance, |
210 delegate, | 210 delegate, |
211 routing_id, | 211 routing_id, |
212 kInvalidSessionStorageNamespaceId), | 212 dom_storage::kInvalidSessionStorageNamespaceId), |
213 render_view_created_(false), | 213 render_view_created_(false), |
214 delete_counter_(NULL), | 214 delete_counter_(NULL), |
215 simulate_fetch_via_proxy_(false), | 215 simulate_fetch_via_proxy_(false), |
216 contents_mime_type_("text/html") { | 216 contents_mime_type_("text/html") { |
217 // For normal RenderViewHosts, this is freed when |Shutdown()| is | 217 // For normal RenderViewHosts, this is freed when |Shutdown()| is |
218 // called. For TestRenderViewHost, the view is explicitly | 218 // called. For TestRenderViewHost, the view is explicitly |
219 // deleted in the destructor below, because | 219 // deleted in the destructor below, because |
220 // TestRenderWidgetHostView::Destroy() doesn't |delete this|. | 220 // TestRenderWidgetHostView::Destroy() doesn't |delete this|. |
221 SetView(new TestRenderWidgetHostView(this)); | 221 SetView(new TestRenderWidgetHostView(this)); |
222 } | 222 } |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 319 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
320 return static_cast<TestRenderViewHost*>(active_rvh()); | 320 return static_cast<TestRenderViewHost*>(active_rvh()); |
321 } | 321 } |
322 | 322 |
323 TestWebContents* RenderViewHostImplTestHarness::contents() { | 323 TestWebContents* RenderViewHostImplTestHarness::contents() { |
324 return static_cast<TestWebContents*>(web_contents()); | 324 return static_cast<TestWebContents*>(web_contents()); |
325 } | 325 } |
326 | 326 |
327 } // namespace content | 327 } // namespace content |
OLD | NEW |