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

Unified Diff: components/scheduler/child/task_queue.h

Issue 1314903007: Implement WebFrameScheduler and WebPageScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Responding to feedback Created 5 years, 3 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: components/scheduler/child/task_queue.h
diff --git a/components/scheduler/child/task_queue.h b/components/scheduler/child/task_queue.h
index e4ce9ee50e78a875ad183c0091d4d5dfe051a436..1bbe3005cf00295b83d6d317f33a2fd959df79f7 100644
--- a/components/scheduler/child/task_queue.h
+++ b/components/scheduler/child/task_queue.h
@@ -149,6 +149,14 @@ class SCHEDULER_EXPORT TaskQueue : public base::SingleThreadTaskRunner {
// Can be called on any thread.
virtual const char* GetName() const = 0;
+ // Sets the origin associated with the task queue (if any).
+ // NOTE this must be called on the thread this TaskQueue was created by.
+ virtual void SetOrigin(const std::string& origin) = 0;
+
+ // Gets the origin associated with the task queue (default is "").
+ // NOTE this must be called on the thread this TaskQueue was created by.
+ virtual const std::string& GetOrigin() = 0;
+
// Set the priority of the queue to |priority|. NOTE this must be called on
// the thread this TaskQueue was created by.
virtual void SetQueuePriority(QueuePriority priority) = 0;

Powered by Google App Engine
This is Rietveld 408576698