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/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 void TestRenderViewHost::SendNavigateWithParameters( | 316 void TestRenderViewHost::SendNavigateWithParameters( |
317 int page_id, | 317 int page_id, |
318 const GURL& url, | 318 const GURL& url, |
319 PageTransition transition, | 319 PageTransition transition, |
320 const GURL& original_request_url, | 320 const GURL& original_request_url, |
321 int response_code, | 321 int response_code, |
322 const base::FilePath* file_path_for_history_item) { | 322 const base::FilePath* file_path_for_history_item) { |
323 | 323 |
324 main_render_frame_host_->SendNavigateWithParameters( | 324 main_render_frame_host_->SendNavigateWithParameters( |
325 page_id, url, transition, original_request_url, response_code, | 325 page_id, url, transition, original_request_url, response_code, |
326 file_path_for_history_item); | 326 file_path_for_history_item, std::vector<GURL>()); |
327 } | 327 } |
328 | 328 |
329 void TestRenderViewHost::SendBeforeUnloadACK(bool proceed) { | 329 void TestRenderViewHost::SendBeforeUnloadACK(bool proceed) { |
330 // TODO(creis): Move this whole method to TestRenderFrameHost. | 330 // TODO(creis): Move this whole method to TestRenderFrameHost. |
331 base::TimeTicks now = base::TimeTicks::Now(); | 331 base::TimeTicks now = base::TimeTicks::Now(); |
332 main_render_frame_host_->OnBeforeUnloadACK(proceed, now, now); | 332 main_render_frame_host_->OnBeforeUnloadACK(proceed, now, now); |
333 } | 333 } |
334 | 334 |
335 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { | 335 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { |
336 contents_mime_type_ = mime_type; | 336 contents_mime_type_ = mime_type; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 400 |
401 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 401 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
402 return static_cast<TestRenderFrameHost*>(main_rfh()); | 402 return static_cast<TestRenderFrameHost*>(main_rfh()); |
403 } | 403 } |
404 | 404 |
405 TestWebContents* RenderViewHostImplTestHarness::contents() { | 405 TestWebContents* RenderViewHostImplTestHarness::contents() { |
406 return static_cast<TestWebContents*>(web_contents()); | 406 return static_cast<TestWebContents*>(web_contents()); |
407 } | 407 } |
408 | 408 |
409 } // namespace content | 409 } // namespace content |
OLD | NEW |