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

Unified Diff: content/child/resource_dispatcher.h

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: s/WebScheduler.h/web_scheduler.h/ Created 3 years, 8 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
Index: content/child/resource_dispatcher.h
diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
index 4b20ab3dbee51405246850e4189abfad7b1a90e6..d6f2c88eeb5d00146418f2800721d8132821da17 100644
--- a/content/child/resource_dispatcher.h
+++ b/content/child/resource_dispatcher.h
@@ -60,7 +60,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
public:
ResourceDispatcher(
IPC::Sender* sender,
- scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner);
+ scoped_refptr<base::SingleThreadTaskRunner> thread_task_runner);
~ResourceDispatcher() override;
// IPC::Listener implementation.
@@ -135,9 +135,9 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
io_timestamp_ = io_timestamp;
}
- void SetMainThreadTaskRunner(
- scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
- main_thread_task_runner_ = main_thread_task_runner;
+ void SetThreadTaskRunner(
+ scoped_refptr<base::SingleThreadTaskRunner> thread_task_runner) {
+ thread_task_runner_ = thread_task_runner;
}
void SetResourceSchedulingFilter(
@@ -271,7 +271,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
// IO thread timestamp for ongoing IPC message.
base::TimeTicks io_timestamp_;
- scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> thread_task_runner_;
scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
« no previous file with comments | « content/browser/service_worker/service_worker_provider_host.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698