| Index: content/child/resource_dispatcher.h
|
| diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
|
| index c31d80d64ef14f8ebdb2673364e090517af8eae4..e23c6fda8591f41c5740b27d02a10a866f0cf0d9 100644
|
| --- a/content/child/resource_dispatcher.h
|
| +++ b/content/child/resource_dispatcher.h
|
| @@ -29,6 +29,7 @@ struct ResourceResponseInfo;
|
| }
|
|
|
| namespace content {
|
| +class HighPriorityResourceFilter;
|
| class RequestPeer;
|
| class ResourceDispatcherDelegate;
|
| struct RequestInfo;
|
| @@ -84,11 +85,19 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
|
| delegate_ = delegate;
|
| }
|
|
|
| + void set_high_priority_resource_filter(
|
| + HighPriorityResourceFilter* high_priority_resource_filter) {
|
| + high_priority_resource_filter_ = high_priority_resource_filter;
|
| + }
|
| +
|
| // Remembers IO thread timestamp for next resource message.
|
| void set_io_timestamp(base::TimeTicks io_timestamp) {
|
| io_timestamp_ = io_timestamp;
|
| }
|
|
|
| + // Returns true if the message passed in is a resource related message.
|
| + static bool IsResourceDispatcherMessage(const IPC::Message& message);
|
| +
|
| private:
|
| friend class ResourceDispatcherTest;
|
|
|
| @@ -180,9 +189,6 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
|
| // invocations will return current time until set_io_timestamp is called.
|
| base::TimeTicks ConsumeIOTimestamp();
|
|
|
| - // Returns true if the message passed in is a resource related message.
|
| - static bool IsResourceDispatcherMessage(const IPC::Message& message);
|
| -
|
| // ViewHostMsg_Resource_DataReceived is not POD, it has a shared memory
|
| // handle in it that we should cleanup it up nicely. This method accepts any
|
| // message and determine whether the message is
|
| @@ -203,6 +209,8 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
|
|
|
| ResourceDispatcherDelegate* delegate_;
|
|
|
| + HighPriorityResourceFilter* high_priority_resource_filter_;
|
| +
|
| // IO thread timestamp for ongoing IPC message.
|
| base::TimeTicks io_timestamp_;
|
|
|
|
|