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

Unified Diff: content/child/resource_scheduling_filter.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/resource_dispatcher.cc ('k') | content/child/resource_scheduling_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_scheduling_filter.h
diff --git a/content/child/resource_scheduling_filter.h b/content/child/resource_scheduling_filter.h
index 93d243c90238a9d2b2794a36558cbf97542ca40f..ddd7ec33a3b7405428f88170e2dff43ec6b8a8c8 100644
--- a/content/child/resource_scheduling_filter.h
+++ b/content/child/resource_scheduling_filter.h
@@ -17,10 +17,6 @@
#include "content/common/content_export.h"
#include "ipc/message_filter.h"
-namespace blink {
-class WebTaskRunner;
-}
-
namespace content {
class ResourceDispatcher;
@@ -41,7 +37,7 @@ class CONTENT_EXPORT ResourceSchedulingFilter : public IPC::MessageFilter {
// Sets the task runner associated with request messages with |id|.
void SetRequestIdTaskRunner(
int id,
- std::unique_ptr<blink::WebTaskRunner> web_task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
// Removes the task runner associated with |id|.
void ClearRequestIdTaskRunner(int id);
@@ -52,7 +48,7 @@ class CONTENT_EXPORT ResourceSchedulingFilter : public IPC::MessageFilter {
~ResourceSchedulingFilter() override;
using RequestIdToTaskRunnerMap =
- std::map<int, std::unique_ptr<blink::WebTaskRunner>>;
+ std::map<int, scoped_refptr<base::SingleThreadTaskRunner>>;
// This lock guards |request_id_to_task_runner_map_|
base::Lock request_id_to_task_runner_map_lock_;
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/resource_scheduling_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698