| OLD | NEW | 
|---|
| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 88 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 88 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 
| 89 #include "content/browser/renderer_host/render_message_filter.h" | 89 #include "content/browser/renderer_host/render_message_filter.h" | 
| 90 #include "content/browser/renderer_host/render_view_host_delegate.h" | 90 #include "content/browser/renderer_host/render_view_host_delegate.h" | 
| 91 #include "content/browser/renderer_host/render_view_host_impl.h" | 91 #include "content/browser/renderer_host/render_view_host_impl.h" | 
| 92 #include "content/browser/renderer_host/render_widget_helper.h" | 92 #include "content/browser/renderer_host/render_widget_helper.h" | 
| 93 #include "content/browser/renderer_host/render_widget_host_impl.h" | 93 #include "content/browser/renderer_host/render_widget_host_impl.h" | 
| 94 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 94 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 
| 95 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 95 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 
| 96 #include "content/browser/renderer_host/websocket_dispatcher_host.h" | 96 #include "content/browser/renderer_host/websocket_dispatcher_host.h" | 
| 97 #include "content/browser/resolve_proxy_msg_helper.h" | 97 #include "content/browser/resolve_proxy_msg_helper.h" | 
| 98 #include "content/browser/service_worker/service_worker_context.h" | 98 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 
| 99 #include "content/browser/service_worker/service_worker_dispatcher_host.h" | 99 #include "content/browser/service_worker/service_worker_dispatcher_host.h" | 
| 100 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | 100 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | 
| 101 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 101 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 
| 102 #include "content/browser/storage_partition_impl.h" | 102 #include "content/browser/storage_partition_impl.h" | 
| 103 #include "content/browser/streams/stream_context.h" | 103 #include "content/browser/streams/stream_context.h" | 
| 104 #include "content/browser/tracing/trace_controller_impl.h" | 104 #include "content/browser/tracing/trace_controller_impl.h" | 
| 105 #include "content/browser/tracing/trace_message_filter.h" | 105 #include "content/browser/tracing/trace_message_filter.h" | 
| 106 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 106 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 
| 107 #include "content/browser/worker_host/worker_message_filter.h" | 107 #include "content/browser/worker_host/worker_message_filter.h" | 
| 108 #include "content/browser/worker_host/worker_storage_partition.h" | 108 #include "content/browser/worker_host/worker_storage_partition.h" | 
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 606   AddFilter(new AppCacheDispatcherHost( | 606   AddFilter(new AppCacheDispatcherHost( | 
| 607       storage_partition_impl_->GetAppCacheService(), | 607       storage_partition_impl_->GetAppCacheService(), | 
| 608       GetID())); | 608       GetID())); | 
| 609   AddFilter(new ClipboardMessageFilter); | 609   AddFilter(new ClipboardMessageFilter); | 
| 610   AddFilter(new DOMStorageMessageFilter( | 610   AddFilter(new DOMStorageMessageFilter( | 
| 611       GetID(), | 611       GetID(), | 
| 612       storage_partition_impl_->GetDOMStorageContext())); | 612       storage_partition_impl_->GetDOMStorageContext())); | 
| 613   AddFilter(new IndexedDBDispatcherHost( | 613   AddFilter(new IndexedDBDispatcherHost( | 
| 614       GetID(), | 614       GetID(), | 
| 615       storage_partition_impl_->GetIndexedDBContext())); | 615       storage_partition_impl_->GetIndexedDBContext())); | 
| 616   AddFilter(new ServiceWorkerDispatcherHost( | 616 | 
| 617       GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 617   scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = | 
|  | 618       new ServiceWorkerDispatcherHost(GetID()); | 
|  | 619   service_worker_filter->Init( | 
|  | 620       storage_partition_impl_->GetServiceWorkerContext()); | 
|  | 621   AddFilter(service_worker_filter); | 
|  | 622 | 
| 618   if (IsGuest()) { | 623   if (IsGuest()) { | 
| 619     if (!g_browser_plugin_geolocation_context.Get().get()) { | 624     if (!g_browser_plugin_geolocation_context.Get().get()) { | 
| 620       g_browser_plugin_geolocation_context.Get() = | 625       g_browser_plugin_geolocation_context.Get() = | 
| 621           new BrowserPluginGeolocationPermissionContext(); | 626           new BrowserPluginGeolocationPermissionContext(); | 
| 622     } | 627     } | 
| 623     AddFilter(GeolocationDispatcherHost::New( | 628     AddFilter(GeolocationDispatcherHost::New( | 
| 624         GetID(), g_browser_plugin_geolocation_context.Get().get())); | 629         GetID(), g_browser_plugin_geolocation_context.Get().get())); | 
| 625   } else { | 630   } else { | 
| 626     AddFilter(GeolocationDispatcherHost::New( | 631     AddFilter(GeolocationDispatcherHost::New( | 
| 627         GetID(), browser_context->GetGeolocationPermissionContext())); | 632         GetID(), browser_context->GetGeolocationPermissionContext())); | 
| (...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1839     // Skip widgets in other processes. | 1844     // Skip widgets in other processes. | 
| 1840     if (widget->GetProcess()->GetID() != GetID()) | 1845     if (widget->GetProcess()->GetID() != GetID()) | 
| 1841       continue; | 1846       continue; | 
| 1842 | 1847 | 
| 1843     RenderViewHost* rvh = RenderViewHost::From(widget); | 1848     RenderViewHost* rvh = RenderViewHost::From(widget); | 
| 1844     rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1849     rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 
| 1845   } | 1850   } | 
| 1846 } | 1851 } | 
| 1847 | 1852 | 
| 1848 }  // namespace content | 1853 }  // namespace content | 
| OLD | NEW | 
|---|