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

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

Issue 992353003: Decouple Cache Storage messaging from Service Worker/Embedded Worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused public stubs Created 5 years, 9 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
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 89 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
90 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 90 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
91 #include "content/browser/renderer_host/render_message_filter.h" 91 #include "content/browser/renderer_host/render_message_filter.h"
92 #include "content/browser/renderer_host/render_view_host_delegate.h" 92 #include "content/browser/renderer_host/render_view_host_delegate.h"
93 #include "content/browser/renderer_host/render_view_host_impl.h" 93 #include "content/browser/renderer_host/render_view_host_impl.h"
94 #include "content/browser/renderer_host/render_widget_helper.h" 94 #include "content/browser/renderer_host/render_widget_helper.h"
95 #include "content/browser/renderer_host/render_widget_host_impl.h" 95 #include "content/browser/renderer_host/render_widget_host_impl.h"
96 #include "content/browser/renderer_host/text_input_client_message_filter.h" 96 #include "content/browser/renderer_host/text_input_client_message_filter.h"
97 #include "content/browser/renderer_host/websocket_dispatcher_host.h" 97 #include "content/browser/renderer_host/websocket_dispatcher_host.h"
98 #include "content/browser/resolve_proxy_msg_helper.h" 98 #include "content/browser/resolve_proxy_msg_helper.h"
99 #include "content/browser/service_worker/cache_storage_context_impl.h"
100 #include "content/browser/service_worker/cache_storage_dispatcher_host.h"
99 #include "content/browser/service_worker/service_worker_context_wrapper.h" 101 #include "content/browser/service_worker/service_worker_context_wrapper.h"
100 #include "content/browser/service_worker/service_worker_dispatcher_host.h" 102 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
101 #include "content/browser/shared_worker/shared_worker_message_filter.h" 103 #include "content/browser/shared_worker/shared_worker_message_filter.h"
102 #include "content/browser/shared_worker/worker_storage_partition.h" 104 #include "content/browser/shared_worker/worker_storage_partition.h"
103 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 105 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
104 #include "content/browser/storage_partition_impl.h" 106 #include "content/browser/storage_partition_impl.h"
105 #include "content/browser/streams/stream_context.h" 107 #include "content/browser/streams/stream_context.h"
106 #include "content/browser/tracing/trace_message_filter.h" 108 #include "content/browser/tracing/trace_message_filter.h"
107 #include "content/browser/webui/web_ui_controller_factory_registry.h" 109 #include "content/browser/webui/web_ui_controller_factory_registry.h"
108 #include "content/common/child_process_host_impl.h" 110 #include "content/common/child_process_host_impl.h"
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 media_request_context, RESOURCE_TYPE_SUB_RESOURCE)); 842 media_request_context, RESOURCE_TYPE_SUB_RESOURCE));
841 843
842 AddFilter( 844 AddFilter(
843 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback)); 845 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback));
844 846
845 message_port_message_filter_ = new MessagePortMessageFilter( 847 message_port_message_filter_ = new MessagePortMessageFilter(
846 base::Bind(&RenderWidgetHelper::GetNextRoutingID, 848 base::Bind(&RenderWidgetHelper::GetNextRoutingID,
847 base::Unretained(widget_helper_.get()))); 849 base::Unretained(widget_helper_.get())));
848 AddFilter(message_port_message_filter_.get()); 850 AddFilter(message_port_message_filter_.get());
849 851
852 scoped_refptr<CacheStorageDispatcherHost> cache_storage_filter =
853 new CacheStorageDispatcherHost();
854 cache_storage_filter->Init(storage_partition_impl_->GetCacheStorageContext());
855 AddFilter(cache_storage_filter.get());
856
850 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = 857 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter =
851 new ServiceWorkerDispatcherHost( 858 new ServiceWorkerDispatcherHost(
852 GetID(), message_port_message_filter_.get(), resource_context); 859 GetID(), message_port_message_filter_.get(), resource_context);
853 service_worker_filter->Init( 860 service_worker_filter->Init(
854 storage_partition_impl_->GetServiceWorkerContext()); 861 storage_partition_impl_->GetServiceWorkerContext());
855 AddFilter(service_worker_filter.get()); 862 AddFilter(service_worker_filter.get());
856 863
857 AddFilter(new SharedWorkerMessageFilter( 864 AddFilter(new SharedWorkerMessageFilter(
858 GetID(), 865 GetID(),
859 resource_context, 866 resource_context,
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after
2447 if (worker_ref_count_ == 0) 2454 if (worker_ref_count_ == 0)
2448 Cleanup(); 2455 Cleanup();
2449 } 2456 }
2450 2457
2451 void RenderProcessHostImpl::GetAudioOutputControllers( 2458 void RenderProcessHostImpl::GetAudioOutputControllers(
2452 const GetAudioOutputControllersCallback& callback) const { 2459 const GetAudioOutputControllersCallback& callback) const {
2453 audio_renderer_host()->GetOutputControllers(callback); 2460 audio_renderer_host()->GetOutputControllers(callback);
2454 } 2461 }
2455 2462
2456 } // namespace content 2463 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698