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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 212703005: Preserve Page::openedByDOM state across process swaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/renderer/render_view_impl.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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 #endif 1253 #endif
1254 IPC_MESSAGE_UNHANDLED(handled = false) 1254 IPC_MESSAGE_UNHANDLED(handled = false)
1255 IPC_END_MESSAGE_MAP() 1255 IPC_END_MESSAGE_MAP()
1256 return handled; 1256 return handled;
1257 } 1257 }
1258 1258
1259 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { 1259 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) {
1260 EnsureWebKitInitialized(); 1260 EnsureWebKitInitialized();
1261 // When bringing in render_view, also bring in webkit's glue and jsbindings. 1261 // When bringing in render_view, also bring in webkit's glue and jsbindings.
1262 RenderViewImpl::Create(params.opener_route_id, 1262 RenderViewImpl::Create(params.opener_route_id,
1263 params.window_was_created_with_opener,
1263 params.renderer_preferences, 1264 params.renderer_preferences,
1264 params.web_preferences, 1265 params.web_preferences,
1265 params.view_id, 1266 params.view_id,
1266 params.main_frame_routing_id, 1267 params.main_frame_routing_id,
1267 params.surface_id, 1268 params.surface_id,
1268 params.session_storage_namespace_id, 1269 params.session_storage_namespace_id,
1269 params.frame_name, 1270 params.frame_name,
1270 false, 1271 false,
1271 params.swapped_out, 1272 params.swapped_out,
1272 params.hidden, 1273 params.hidden,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1518 hidden_widget_count_--; 1519 hidden_widget_count_--;
1519 1520
1520 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1521 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1521 return; 1522 return;
1522 } 1523 }
1523 1524
1524 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1525 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1525 } 1526 }
1526 1527
1527 } // namespace content 1528 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698