| Index: chrome/browser/renderer_host/resource_message_filter.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/resource_message_filter.cc (revision 69012)
|
| +++ chrome/browser/renderer_host/resource_message_filter.cc (working copy)
|
| @@ -25,7 +25,6 @@
|
| #include "chrome/browser/geolocation/geolocation_permission_context.h"
|
| #include "chrome/browser/gpu_process_host.h"
|
| #include "chrome/browser/host_zoom_map.h"
|
| -#include "chrome/browser/in_process_webkit/dom_storage_dispatcher_host.h"
|
| #include "chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h"
|
| #include "chrome/browser/metrics/histogram_synchronizer.h"
|
| #include "chrome/browser/nacl_host/nacl_process_host.h"
|
| @@ -248,8 +247,6 @@
|
| media_request_context_(profile->GetRequestContextForMedia()),
|
| extensions_request_context_(profile->GetRequestContextForExtensions()),
|
| render_widget_helper_(render_widget_helper),
|
| - ALLOW_THIS_IN_INITIALIZER_LIST(dom_storage_dispatcher_host_(
|
| - new DOMStorageDispatcherHost(this, profile->GetWebKitContext()))),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(indexed_db_dispatcher_host_(
|
| new IndexedDBDispatcherHost(this, profile))),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(db_dispatcher_host_(
|
| @@ -263,11 +260,11 @@
|
| render_widget_helper, &RenderWidgetHelper::GetNextRoutingID)),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(geolocation_dispatcher_host_(
|
| GeolocationDispatcherHostOld::New(
|
| - this->id(), profile->GetGeolocationPermissionContext()))) {
|
| + this->id(), profile->GetGeolocationPermissionContext()))),
|
| + webkit_context_(profile->GetWebKitContext()) {
|
| request_context_ = profile_->GetRequestContext();
|
| DCHECK(request_context_);
|
| DCHECK(media_request_context_);
|
| - DCHECK(dom_storage_dispatcher_host_.get());
|
|
|
| render_widget_helper_->Init(id(), resource_dispatcher_host_);
|
| #if defined(OS_CHROMEOS)
|
| @@ -282,9 +279,6 @@
|
| // This function should be called on the IO thread.
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
|
|
| - // Tell the DOM Storage dispatcher host to stop sending messages via us.
|
| - dom_storage_dispatcher_host_->Shutdown();
|
| -
|
| // Tell the Indexed DB dispatcher host to stop sending messages via us.
|
| indexed_db_dispatcher_host_->Shutdown();
|
|
|
| @@ -318,7 +312,6 @@
|
| set_handle(peer_handle);
|
|
|
| WorkerService::GetInstance()->Initialize(resource_dispatcher_host_);
|
| - dom_storage_dispatcher_host_->Init(id(), handle());
|
| indexed_db_dispatcher_host_->Init(id(), handle());
|
| db_dispatcher_host_->Init(handle());
|
| }
|
| @@ -345,7 +338,6 @@
|
| bool msg_is_ok = true;
|
| bool handled =
|
| resource_dispatcher_host_->OnMessageReceived(msg, this, &msg_is_ok) ||
|
| - dom_storage_dispatcher_host_->OnMessageReceived(msg, &msg_is_ok) ||
|
| indexed_db_dispatcher_host_->OnMessageReceived(msg) ||
|
| db_dispatcher_host_->OnMessageReceived(msg, &msg_is_ok) ||
|
| mp_dispatcher->OnMessageReceived(
|
| @@ -573,8 +565,9 @@
|
| void ResourceMessageFilter::OnMsgCreateWindow(
|
| const ViewHostMsg_CreateWindow_Params& params,
|
| int* route_id, int64* cloned_session_storage_namespace_id) {
|
| - *cloned_session_storage_namespace_id = dom_storage_dispatcher_host_->
|
| - CloneSessionStorage(params.session_storage_namespace_id);
|
| + *cloned_session_storage_namespace_id =
|
| + webkit_context_->dom_storage_context()->CloneSessionStorage(
|
| + params.session_storage_namespace_id);
|
| render_widget_helper_->CreateNewWindow(params.opener_id,
|
| params.user_gesture,
|
| params.window_container_type,
|
|
|