Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: content/test/test_render_view_host.cc

Issue 101573003: Add the navigation redirect-chain to Sync sessions proto for offline analysis. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from creis on patch set 43. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 void TestRenderViewHost::SendNavigateWithParameters( 321 void TestRenderViewHost::SendNavigateWithParameters(
322 int page_id, 322 int page_id,
323 const GURL& url, 323 const GURL& url,
324 PageTransition transition, 324 PageTransition transition,
325 const GURL& original_request_url, 325 const GURL& original_request_url,
326 int response_code, 326 int response_code,
327 const base::FilePath* file_path_for_history_item) { 327 const base::FilePath* file_path_for_history_item) {
328 328
329 main_render_frame_host_->SendNavigateWithParameters( 329 main_render_frame_host_->SendNavigateWithParameters(
330 page_id, url, transition, original_request_url, response_code, 330 page_id, url, transition, original_request_url, response_code,
331 file_path_for_history_item); 331 file_path_for_history_item, std::vector<GURL>());
332 } 332 }
333 333
334 void TestRenderViewHost::SendShouldCloseACK(bool proceed) { 334 void TestRenderViewHost::SendShouldCloseACK(bool proceed) {
335 base::TimeTicks now = base::TimeTicks::Now(); 335 base::TimeTicks now = base::TimeTicks::Now();
336 OnShouldCloseACK(proceed, now, now); 336 OnShouldCloseACK(proceed, now, now);
337 } 337 }
338 338
339 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { 339 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) {
340 contents_mime_type_ = mime_type; 340 contents_mime_type_ = mime_type;
341 main_render_frame_host_->set_contents_mime_type(mime_type); 341 main_render_frame_host_->set_contents_mime_type(mime_type);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 405 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
406 return static_cast<TestRenderFrameHost*>(main_rfh()); 406 return static_cast<TestRenderFrameHost*>(main_rfh());
407 } 407 }
408 408
409 TestWebContents* RenderViewHostImplTestHarness::contents() { 409 TestWebContents* RenderViewHostImplTestHarness::contents() {
410 return static_cast<TestWebContents*>(web_contents()); 410 return static_cast<TestWebContents*>(web_contents());
411 } 411 }
412 412
413 } // namespace content 413 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698