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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: still need to check MessageLoop::current() in Mojo's RunLoopNestingObserver::GetForThread() Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // SchedulerHelper::Observer implementation: 128 // SchedulerHelper::Observer implementation:
129 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; 129 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override;
130 void OnTriedToExecuteBlockedTask(const TaskQueue& queue, 130 void OnTriedToExecuteBlockedTask(const TaskQueue& queue,
131 const base::PendingTask& task) override; 131 const base::PendingTask& task) override;
132 132
133 // TaskTimeObserver implementation: 133 // TaskTimeObserver implementation:
134 void WillProcessTask(TaskQueue* task_queue, double start_time) override; 134 void WillProcessTask(TaskQueue* task_queue, double start_time) override;
135 void DidProcessTask(TaskQueue* task_queue, 135 void DidProcessTask(TaskQueue* task_queue,
136 double start_time, 136 double start_time,
137 double end_time) override; 137 double end_time) override;
138 void OnBeginNestedMessageLoop() override; 138 void OnBeginNestedRunLoop() override;
139 139
140 // QueueingTimeEstimator::Client implementation: 140 // QueueingTimeEstimator::Client implementation:
141 void OnQueueingTimeForWindowEstimated(base::TimeDelta queueing_time) override; 141 void OnQueueingTimeForWindowEstimated(base::TimeDelta queueing_time) override;
142 142
143 scoped_refptr<TaskQueue> DefaultTaskQueue(); 143 scoped_refptr<TaskQueue> DefaultTaskQueue();
144 scoped_refptr<TaskQueue> CompositorTaskQueue(); 144 scoped_refptr<TaskQueue> CompositorTaskQueue();
145 scoped_refptr<TaskQueue> LoadingTaskQueue(); 145 scoped_refptr<TaskQueue> LoadingTaskQueue();
146 scoped_refptr<TaskQueue> TimerTaskQueue(); 146 scoped_refptr<TaskQueue> TimerTaskQueue();
147 147
148 // Returns a new loading task queue. This queue is intended for tasks related 148 // Returns a new loading task queue. This queue is intended for tasks related
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 550
551 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 551 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
552 552
553 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 553 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
554 }; 554 };
555 555
556 } // namespace scheduler 556 } // namespace scheduler
557 } // namespace blink 557 } // namespace blink
558 558
559 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_ 559 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698