| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 RenderWidgetHostDelegate* widget_delegate, | 217 RenderWidgetHostDelegate* widget_delegate, |
| 216 int routing_id, | 218 int routing_id, |
| 217 int main_frame_routing_id, | 219 int main_frame_routing_id, |
| 218 bool swapped_out) | 220 bool swapped_out) |
| 219 : RenderViewHostImpl(instance, | 221 : RenderViewHostImpl(instance, |
| 220 delegate, | 222 delegate, |
| 221 widget_delegate, | 223 widget_delegate, |
| 222 routing_id, | 224 routing_id, |
| 223 main_frame_routing_id, | 225 main_frame_routing_id, |
| 224 swapped_out, | 226 swapped_out, |
| 225 false /* hidden */), | 227 false /* hidden */, |
| 228 true /* setup_for_testing */), |
| 226 render_view_created_(false), | 229 render_view_created_(false), |
| 227 delete_counter_(NULL), | 230 delete_counter_(NULL), |
| 228 simulate_fetch_via_proxy_(false), | 231 simulate_fetch_via_proxy_(false), |
| 229 simulate_history_list_was_cleared_(false), | 232 simulate_history_list_was_cleared_(false), |
| 230 contents_mime_type_("text/html"), | 233 contents_mime_type_("text/html"), |
| 231 opener_route_id_(MSG_ROUTING_NONE), | 234 opener_route_id_(MSG_ROUTING_NONE), |
| 232 main_render_frame_host_(NULL) { | 235 main_render_frame_host_(NULL) { |
| 233 // TestRenderWidgetHostView installs itself into this->view_ in its | 236 // TestRenderWidgetHostView installs itself into this->view_ in its |
| 234 // constructor, and deletes itself when TestRenderWidgetHostView::Destroy() is | 237 // constructor, and deletes itself when TestRenderWidgetHostView::Destroy() is |
| 235 // called. | 238 // called. |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 387 |
| 385 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 388 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
| 386 return contents()->GetMainFrame(); | 389 return contents()->GetMainFrame(); |
| 387 } | 390 } |
| 388 | 391 |
| 389 TestWebContents* RenderViewHostImplTestHarness::contents() { | 392 TestWebContents* RenderViewHostImplTestHarness::contents() { |
| 390 return static_cast<TestWebContents*>(web_contents()); | 393 return static_cast<TestWebContents*>(web_contents()); |
| 391 } | 394 } |
| 392 | 395 |
| 393 } // namespace content | 396 } // namespace content |
| OLD | NEW |