OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_ | 5 #ifndef CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_ |
6 #define CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_ | 6 #define CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 bool shouldYieldForHighPriorityWork() override; | 32 bool shouldYieldForHighPriorityWork() override; |
33 bool canExceedIdleDeadlineIfRequired() override; | 33 bool canExceedIdleDeadlineIfRequired() override; |
34 void postIdleTask(const blink::WebTraceLocation& location, | 34 void postIdleTask(const blink::WebTraceLocation& location, |
35 blink::WebThread::IdleTask* task) override; | 35 blink::WebThread::IdleTask* task) override; |
36 void postNonNestableIdleTask(const blink::WebTraceLocation& location, | 36 void postNonNestableIdleTask(const blink::WebTraceLocation& location, |
37 blink::WebThread::IdleTask* task) override; | 37 blink::WebThread::IdleTask* task) override; |
38 void postIdleTaskAfterWakeup(const blink::WebTraceLocation& location, | 38 void postIdleTaskAfterWakeup(const blink::WebTraceLocation& location, |
39 blink::WebThread::IdleTask* task) override; | 39 blink::WebThread::IdleTask* task) override; |
40 blink::WebTaskRunner* loadingTaskRunner() override; | 40 blink::WebTaskRunner* loadingTaskRunner() override; |
41 blink::WebTaskRunner* timerTaskRunner() override; | 41 blink::WebTaskRunner* timerTaskRunner() override; |
42 blink::WebPassOwnPtr<blink::WebViewScheduler> createWebViewScheduler( | 42 std::unique_ptr<blink::WebViewScheduler> createWebViewScheduler( |
43 blink::WebView*) override; | 43 blink::WebView*) override; |
44 void suspendTimerQueue() override {} | 44 void suspendTimerQueue() override {} |
45 void resumeTimerQueue() override {} | 45 void resumeTimerQueue() override {} |
46 void addPendingNavigation() override {} | 46 void addPendingNavigation() override {} |
47 void removePendingNavigation() override {} | 47 void removePendingNavigation() override {} |
48 void onNavigationStarted() override {} | 48 void onNavigationStarted() override {} |
49 | 49 |
50 private: | 50 private: |
51 static void runIdleTask(scoped_ptr<blink::WebThread::IdleTask> task, | 51 static void runIdleTask(scoped_ptr<blink::WebThread::IdleTask> task, |
52 base::TimeTicks deadline); | 52 base::TimeTicks deadline); |
53 | 53 |
54 ChildScheduler* child_scheduler_; // NOT OWNED | 54 ChildScheduler* child_scheduler_; // NOT OWNED |
55 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; | 55 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; |
56 scoped_refptr<TaskQueue> timer_task_runner_; | 56 scoped_refptr<TaskQueue> timer_task_runner_; |
57 scoped_ptr<WebTaskRunnerImpl> loading_web_task_runner_; | 57 scoped_ptr<WebTaskRunnerImpl> loading_web_task_runner_; |
58 scoped_ptr<WebTaskRunnerImpl> timer_web_task_runner_; | 58 scoped_ptr<WebTaskRunnerImpl> timer_web_task_runner_; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace scheduler | 61 } // namespace scheduler |
62 | 62 |
63 #endif // CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_ | 63 #endif // CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_ |
OLD | NEW |