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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_
8 #include "content/public/browser/browser_message_filter.h"
12 // This class listens for incoming ViewHostMsgs that are applicable to the
13 // ResourceScheduler and invokes the appropriate notifications. It must be
14 // inserted before the RenderMessageFilter, because the ResourceScheduler runs
15 // on the IO thread and we want to see the messages before the view messages are
16 // bounced to the UI thread.
17 class ResourceSchedulerFilter : public BrowserMessageFilter {
19 explicit ResourceSchedulerFilter(int child_id);
21 // BrowserMessageFilter methods:
22 virtual bool OnMessageReceived(const IPC::Message& message,
23 bool* message_was_ok) OVERRIDE;
26 virtual ~ResourceSchedulerFilter();
31 } // namespace content
33 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_FILTER_H_