Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(904)

Unified Diff: content/child/resource_dispatcher.h

Issue 281073002: NOT FOR REVIEW: Adding prioritized incoming task queue to renderers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prioritize input events Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/high_priority_resource_filter.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « content/child/high_priority_resource_filter.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698