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

Side by Side Diff: content/public/test/render_view_test.cc

Issue 694963003: Revert of Clean up the page state saving mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/public/test/layouttest_support.h ('k') | content/renderer/render_frame_impl.cc » ('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/public/test/render_view_test.h" 5 #include "content/public/test/render_view_test.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "content/common/dom_storage/dom_storage_types.h" 8 #include "content/common/dom_storage/dom_storage_types.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/common/input_messages.h" 10 #include "content/common/input_messages.h"
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 item.initialize(); 373 item.initialize();
374 impl->GetMainRenderFrame()->didNavigateWithinPage( 374 impl->GetMainRenderFrame()->didNavigateWithinPage(
375 frame, 375 frame,
376 item, 376 item,
377 is_new_navigation ? blink::WebStandardCommit 377 is_new_navigation ? blink::WebStandardCommit
378 : blink::WebHistoryInertCommit); 378 : blink::WebHistoryInertCommit);
379 } 379 }
380 380
381 void RenderViewTest::SendContentStateImmediately() { 381 void RenderViewTest::SendContentStateImmediately() {
382 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 382 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
383 impl->set_page_state_sent_immediately(true); 383 impl->set_send_content_state_immediately(true);
384 } 384 }
385 385
386 blink::WebWidget* RenderViewTest::GetWebWidget() { 386 blink::WebWidget* RenderViewTest::GetWebWidget() {
387 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 387 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
388 return impl->webwidget(); 388 return impl->webwidget();
389 } 389 }
390 390
391 391
392 ContentClient* RenderViewTest::CreateContentClient() { 392 ContentClient* RenderViewTest::CreateContentClient() {
393 return new TestContentClient; 393 return new TestContentClient;
(...skipping 28 matching lines...) Expand all
422 FrameMsg_Navigate navigate_message(impl->GetMainRenderFrame()->GetRoutingID(), 422 FrameMsg_Navigate navigate_message(impl->GetMainRenderFrame()->GetRoutingID(),
423 navigate_params); 423 navigate_params);
424 impl->GetMainRenderFrame()->OnMessageReceived(navigate_message); 424 impl->GetMainRenderFrame()->OnMessageReceived(navigate_message);
425 425
426 // The load actually happens asynchronously, so we pump messages to process 426 // The load actually happens asynchronously, so we pump messages to process
427 // the pending continuation. 427 // the pending continuation.
428 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait(); 428 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait();
429 } 429 }
430 430
431 } // namespace content 431 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698