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

Side by Side Diff: components/scheduler/child/web_scheduler_impl.h

Issue 1962053002: Allow expensive task blocking if there is pending iframe navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use an enum Created 4 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
« no previous file with comments | « no previous file | components/scheduler/renderer/renderer_scheduler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 26 matching lines...) Expand all
37 void postNonNestableIdleTask(const blink::WebTraceLocation& location, 37 void postNonNestableIdleTask(const blink::WebTraceLocation& location,
38 blink::WebThread::IdleTask* task) override; 38 blink::WebThread::IdleTask* task) override;
39 void postIdleTaskAfterWakeup(const blink::WebTraceLocation& location, 39 void postIdleTaskAfterWakeup(const blink::WebTraceLocation& location,
40 blink::WebThread::IdleTask* task) override; 40 blink::WebThread::IdleTask* task) override;
41 blink::WebTaskRunner* loadingTaskRunner() override; 41 blink::WebTaskRunner* loadingTaskRunner() override;
42 blink::WebTaskRunner* timerTaskRunner() override; 42 blink::WebTaskRunner* timerTaskRunner() override;
43 std::unique_ptr<blink::WebViewScheduler> createWebViewScheduler( 43 std::unique_ptr<blink::WebViewScheduler> createWebViewScheduler(
44 blink::WebView*) override; 44 blink::WebView*) override;
45 void suspendTimerQueue() override {} 45 void suspendTimerQueue() override {}
46 void resumeTimerQueue() override {} 46 void resumeTimerQueue() override {}
47 void addPendingNavigation() override {} 47 void addPendingNavigation(
48 void removePendingNavigation() override {} 48 blink::WebScheduler::NavigatingFrameType type) override {}
49 void removePendingNavigation(
50 blink::WebScheduler::NavigatingFrameType type) override {}
49 void onNavigationStarted() override {} 51 void onNavigationStarted() override {}
50 52
51 private: 53 private:
52 static void runIdleTask(std::unique_ptr<blink::WebThread::IdleTask> task, 54 static void runIdleTask(std::unique_ptr<blink::WebThread::IdleTask> task,
53 base::TimeTicks deadline); 55 base::TimeTicks deadline);
54 56
55 ChildScheduler* child_scheduler_; // NOT OWNED 57 ChildScheduler* child_scheduler_; // NOT OWNED
56 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; 58 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_;
57 scoped_refptr<TaskQueue> timer_task_runner_; 59 scoped_refptr<TaskQueue> timer_task_runner_;
58 std::unique_ptr<WebTaskRunnerImpl> loading_web_task_runner_; 60 std::unique_ptr<WebTaskRunnerImpl> loading_web_task_runner_;
59 std::unique_ptr<WebTaskRunnerImpl> timer_web_task_runner_; 61 std::unique_ptr<WebTaskRunnerImpl> timer_web_task_runner_;
60 }; 62 };
61 63
62 } // namespace scheduler 64 } // namespace scheduler
63 65
64 #endif // CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_ 66 #endif // CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | components/scheduler/renderer/renderer_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698