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

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 Brett's comment on patch set 46, and rebase. 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
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | sync/protocol/proto_value_conversions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | sync/protocol/proto_value_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698