| 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 677bc0d75f3d96eb839764aa112803d2a6fef4cb..67aee938ef4632fdd1cece3e1a9b96095386b975 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"
|
| @@ -479,6 +482,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
|
| @@ -1103,6 +1107,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) {
|
| @@ -1454,6 +1462,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();
|
| }
|
|
|
|
|