| Index: content/browser/renderer_host/render_process_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
| index 67a658cfe6a865c26a4429337d466203d7a0465e..74fdde92f3bafb30e3097ed43e15136d5006696a 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -56,7 +56,10 @@
|
| #include "content/browser/hyphenator/hyphenator_message_filter.h"
|
| #include "content/browser/in_process_webkit/indexed_db_context_impl.h"
|
| #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
|
| +#include "content/browser/loader/resource_dispatcher_host_impl.h"
|
| #include "content/browser/loader/resource_message_filter.h"
|
| +#include "content/browser/loader/resource_scheduler.h"
|
| +#include "content/browser/loader/resource_scheduler_filter.h"
|
| #include "content/browser/mime_registry_message_filter.h"
|
| #include "content/browser/plugin_service_impl.h"
|
| #include "content/browser/profiler_message_filter.h"
|
| @@ -480,6 +483,7 @@ bool RenderProcessHostImpl::Init() {
|
|
|
| void RenderProcessHostImpl::CreateMessageFilters() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + channel_->AddFilter(new ResourceSchedulerFilter(GetID()));
|
| MediaObserver* media_observer =
|
| GetContentClient()->browser()->GetMediaObserver();
|
| // Add BrowserPluginMessageFilter to ensure it gets the first stab at messages
|
| @@ -1108,6 +1112,10 @@ bool RenderProcessHostImpl::IgnoreInputEvents() const {
|
| void RenderProcessHostImpl::Attach(RenderWidgetHost* host,
|
| int routing_id) {
|
| render_widget_hosts_.AddWithID(host, routing_id);
|
| + if (ResourceDispatcherHostImpl::Get()) {
|
| + ResourceDispatcherHostImpl::Get()->scheduler()->OnCreate(
|
| + GetID(), routing_id);
|
| + }
|
| }
|
|
|
| void RenderProcessHostImpl::Release(int routing_id) {
|
| @@ -1459,6 +1467,10 @@ void RenderProcessHostImpl::ProcessDied(bool already_dead) {
|
| ViewHostMsg_RenderViewGone(iter.GetCurrentKey(),
|
| static_cast<int>(status),
|
| exit_code));
|
| + if (ResourceDispatcherHostImpl::Get()) {
|
| + ResourceDispatcherHostImpl::Get()->scheduler()->OnDestroy(
|
| + GetID(), iter.GetCurrentKey());
|
| + }
|
| iter.Advance();
|
| }
|
|
|
|
|