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

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

Issue 281663002: Create RenderFrameProxyHost at time of swap-out instead of commit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/render_view_host/GetRenderViewHost/ Created 6 years, 7 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/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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 false, // window_was_created_with_opener 188 false, // window_was_created_with_opener
189 RendererPreferences(), 189 RendererPreferences(),
190 WebPreferences(), 190 WebPreferences(),
191 kRouteId, 191 kRouteId,
192 kMainFrameRouteId, 192 kMainFrameRouteId,
193 kSurfaceId, 193 kSurfaceId,
194 kInvalidSessionStorageNamespaceId, 194 kInvalidSessionStorageNamespaceId,
195 base::string16(), 195 base::string16(),
196 false, // is_renderer_created 196 false, // is_renderer_created
197 false, // swapped_out 197 false, // swapped_out
198 MSG_ROUTING_NONE, // proxy_routing_id
198 false, // hidden 199 false, // hidden
199 false, // never_visible 200 false, // never_visible
200 1, // next_page_id 201 1, // next_page_id
201 blink::WebScreenInfo(), 202 blink::WebScreenInfo(),
202 AccessibilityModeOff); 203 AccessibilityModeOff);
203 view->AddRef(); 204 view->AddRef();
204 view_ = view; 205 view_ = view;
205 } 206 }
206 207
207 void RenderViewTest::TearDown() { 208 void RenderViewTest::TearDown() {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 FrameMsg_Navigate navigate_message(impl->main_render_frame()->GetRoutingID(), 423 FrameMsg_Navigate navigate_message(impl->main_render_frame()->GetRoutingID(),
423 navigate_params); 424 navigate_params);
424 impl->main_render_frame()->OnMessageReceived(navigate_message); 425 impl->main_render_frame()->OnMessageReceived(navigate_message);
425 426
426 // The load actually happens asynchronously, so we pump messages to process 427 // The load actually happens asynchronously, so we pump messages to process
427 // the pending continuation. 428 // the pending continuation.
428 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait(); 429 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait();
429 } 430 }
430 431
431 } // namespace content 432 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698