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/test/test_render_view_host.h" | 5 #include "content/test/test_render_view_host.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 10 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
10 #include "content/browser/site_instance_impl.h" | 11 #include "content/browser/site_instance_impl.h" |
11 #include "content/common/dom_storage/dom_storage_types.h" | 12 #include "content/common/dom_storage/dom_storage_types.h" |
12 #include "content/common/frame_messages.h" | 13 #include "content/common/frame_messages.h" |
13 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
14 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
| 16 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/navigation_controller.h" | 17 #include "content/public/browser/navigation_controller.h" |
16 #include "content/public/browser/storage_partition.h" | 18 #include "content/public/browser/storage_partition.h" |
17 #include "content/public/common/content_client.h" | 19 #include "content/public/common/content_client.h" |
18 #include "content/public/common/page_state.h" | 20 #include "content/public/common/page_state.h" |
19 #include "content/public/common/web_preferences.h" | 21 #include "content/public/common/web_preferences.h" |
20 #include "content/test/test_render_frame_host.h" | 22 #include "content/test/test_render_frame_host.h" |
21 #include "content/test/test_web_contents.h" | 23 #include "content/test/test_web_contents.h" |
22 #include "media/base/video_frame.h" | 24 #include "media/base/video_frame.h" |
23 #include "ui/gfx/rect.h" | 25 #include "ui/gfx/rect.h" |
24 | 26 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 RenderWidgetHostDelegate* widget_delegate, | 200 RenderWidgetHostDelegate* widget_delegate, |
199 int routing_id, | 201 int routing_id, |
200 int main_frame_routing_id, | 202 int main_frame_routing_id, |
201 bool swapped_out) | 203 bool swapped_out) |
202 : RenderViewHostImpl(instance, | 204 : RenderViewHostImpl(instance, |
203 delegate, | 205 delegate, |
204 widget_delegate, | 206 widget_delegate, |
205 routing_id, | 207 routing_id, |
206 main_frame_routing_id, | 208 main_frame_routing_id, |
207 swapped_out, | 209 swapped_out, |
208 false /* hidden */), | 210 false /* hidden */, |
| 211 false /* has_initialized_audio_host */), |
209 render_view_created_(false), | 212 render_view_created_(false), |
210 delete_counter_(NULL), | 213 delete_counter_(NULL), |
211 simulate_fetch_via_proxy_(false), | 214 simulate_fetch_via_proxy_(false), |
212 simulate_history_list_was_cleared_(false), | 215 simulate_history_list_was_cleared_(false), |
213 contents_mime_type_("text/html"), | 216 contents_mime_type_("text/html"), |
214 opener_route_id_(MSG_ROUTING_NONE), | 217 opener_route_id_(MSG_ROUTING_NONE), |
215 main_render_frame_host_(NULL) { | 218 main_render_frame_host_(NULL) { |
216 // TestRenderWidgetHostView installs itself into this->view_ in its | 219 // TestRenderWidgetHostView installs itself into this->view_ in its |
217 // constructor, and deletes itself when TestRenderWidgetHostView::Destroy() is | 220 // constructor, and deletes itself when TestRenderWidgetHostView::Destroy() is |
218 // called. | 221 // called. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 370 |
368 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 371 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
369 return contents()->GetMainFrame(); | 372 return contents()->GetMainFrame(); |
370 } | 373 } |
371 | 374 |
372 TestWebContents* RenderViewHostImplTestHarness::contents() { | 375 TestWebContents* RenderViewHostImplTestHarness::contents() { |
373 return static_cast<TestWebContents*>(web_contents()); | 376 return static_cast<TestWebContents*>(web_contents()); |
374 } | 377 } |
375 | 378 |
376 } // namespace content | 379 } // namespace content |
OLD | NEW |