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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 15682009: Eliminate SwapOut message parameters, keeping state in RVHM instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move pending_nav_params_ to RVHM Created 7 years, 6 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 | Annotate | Revision Log
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/browser/renderer_host/test_render_view_host.h" 5 #include "content/browser/renderer_host/test_render_view_host.h"
6 6
7 #include "content/browser/dom_storage/dom_storage_context_impl.h" 7 #include "content/browser/dom_storage/dom_storage_context_impl.h"
8 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 8 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
9 #include "content/browser/renderer_host/test_backing_store.h" 9 #include "content/browser/renderer_host/test_backing_store.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 void TestRenderViewHost::SendShouldCloseACK(bool proceed) { 358 void TestRenderViewHost::SendShouldCloseACK(bool proceed) {
359 base::TimeTicks now = base::TimeTicks::Now(); 359 base::TimeTicks now = base::TimeTicks::Now();
360 OnShouldCloseACK(proceed, now, now); 360 OnShouldCloseACK(proceed, now, now);
361 } 361 }
362 362
363 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { 363 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) {
364 contents_mime_type_ = mime_type; 364 contents_mime_type_ = mime_type;
365 } 365 }
366 366
367 void TestRenderViewHost::SimulateSwapOutACK() { 367 void TestRenderViewHost::SimulateSwapOutACK() {
368 OnSwapOutACK(false); 368 OnSwappedOut(false);
369 } 369 }
370 370
371 void TestRenderViewHost::SimulateWasHidden() { 371 void TestRenderViewHost::SimulateWasHidden() {
372 WasHidden(); 372 WasHidden();
373 } 373 }
374 374
375 void TestRenderViewHost::SimulateWasShown() { 375 void TestRenderViewHost::SimulateWasShown() {
376 WasShown(); 376 WasShown();
377 } 377 }
378 378
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 418
419 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 419 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
420 return static_cast<TestRenderViewHost*>(active_rvh()); 420 return static_cast<TestRenderViewHost*>(active_rvh());
421 } 421 }
422 422
423 TestWebContents* RenderViewHostImplTestHarness::contents() { 423 TestWebContents* RenderViewHostImplTestHarness::contents() {
424 return static_cast<TestWebContents*>(web_contents()); 424 return static_cast<TestWebContents*>(web_contents());
425 } 425 }
426 426
427 } // namespace content 427 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698