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

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

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac win compile fixes Created 8 years, 4 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/render_message_filter.h" 5 #include "content/browser/renderer_host/render_message_filter.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 render_process_id_, 431 render_process_id_,
432 &no_javascript_access); 432 &no_javascript_access);
433 433
434 if (!can_create_window) { 434 if (!can_create_window) {
435 *route_id = MSG_ROUTING_NONE; 435 *route_id = MSG_ROUTING_NONE;
436 *surface_id = 0; 436 *surface_id = 0;
437 return; 437 return;
438 } 438 }
439 439
440 // This will clone the sessionStorage for namespace_id_to_clone. 440 // This will clone the sessionStorage for namespace_id_to_clone.
441 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace = 441 scoped_refptr<SessionStorageNamespaceImpl> cloned_namespace =
442 new SessionStorageNamespaceImpl(dom_storage_context_, 442 new SessionStorageNamespaceImpl(dom_storage_context_,
443 params.session_storage_namespace_id); 443 params.session_storage_namespace_id);
444 *cloned_session_storage_namespace_id = session_storage_namespace->id(); 444 *cloned_session_storage_namespace_id = cloned_namespace->id();
445 445
446 render_widget_helper_->CreateNewWindow(params, 446 render_widget_helper_->CreateNewWindow(params,
447 no_javascript_access, 447 no_javascript_access,
448 peer_handle(), 448 peer_handle(),
449 route_id, 449 route_id,
450 surface_id, 450 surface_id,
451 session_storage_namespace.get()); 451 cloned_namespace);
452 } 452 }
453 453
454 void RenderMessageFilter::OnMsgCreateWidget(int opener_id, 454 void RenderMessageFilter::OnMsgCreateWidget(int opener_id,
455 WebKit::WebPopupType popup_type, 455 WebKit::WebPopupType popup_type,
456 int* route_id, 456 int* route_id,
457 int* surface_id) { 457 int* surface_id) {
458 render_widget_helper_->CreateNewWidget( 458 render_widget_helper_->CreateNewWidget(
459 opener_id, popup_type, route_id, surface_id); 459 opener_id, popup_type, route_id, surface_id);
460 } 460 }
461 461
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 // are going to switch to accelerated compositing, the GPU process may need 976 // are going to switch to accelerated compositing, the GPU process may need
977 // round-trips to the UI thread before finishing the frame, causing deadlocks 977 // round-trips to the UI thread before finishing the frame, causing deadlocks
978 // if we delay the UpdateRect until we receive the OnSwapBuffersComplete. So 978 // if we delay the UpdateRect until we receive the OnSwapBuffersComplete. So
979 // the renderer sent us this message, so that we can unblock the UI thread. 979 // the renderer sent us this message, so that we can unblock the UI thread.
980 // We will simply re-use the UpdateRect unblock mechanism, just with a 980 // We will simply re-use the UpdateRect unblock mechanism, just with a
981 // different message. 981 // different message.
982 render_widget_helper_->DidReceiveBackingStoreMsg(msg); 982 render_widget_helper_->DidReceiveBackingStoreMsg(msg);
983 } 983 }
984 984
985 } // namespace content 985 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698