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; |