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

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: 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
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(bool main_frame_navigating) override {}
Sami 2016/05/09 16:45:21 camelCase at this layer :P
alex clarke (OOO till 29th) 2016/05/09 17:08:09 I made the name shorter ;)
48 void removePendingNavigation() override {} 48 void removePendingNavigation(bool main_frame_navigating) override {}
49 void onNavigationStarted() override {} 49 void onNavigationStarted() override {}
50 50
51 private: 51 private:
52 static void runIdleTask(std::unique_ptr<blink::WebThread::IdleTask> task, 52 static void runIdleTask(std::unique_ptr<blink::WebThread::IdleTask> task,
53 base::TimeTicks deadline); 53 base::TimeTicks deadline);
54 54
55 ChildScheduler* child_scheduler_; // NOT OWNED 55 ChildScheduler* child_scheduler_; // NOT OWNED
56 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; 56 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_;
57 scoped_refptr<TaskQueue> timer_task_runner_; 57 scoped_refptr<TaskQueue> timer_task_runner_;
58 std::unique_ptr<WebTaskRunnerImpl> loading_web_task_runner_; 58 std::unique_ptr<WebTaskRunnerImpl> loading_web_task_runner_;
59 std::unique_ptr<WebTaskRunnerImpl> timer_web_task_runner_; 59 std::unique_ptr<WebTaskRunnerImpl> timer_web_task_runner_;
60 }; 60 };
61 61
62 } // namespace scheduler 62 } // namespace scheduler
63 63
64 #endif // CONTENT_CHILD_SCHEDULER_BASE_WEB_SCHEDULER_IMPL_H_ 64 #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') | third_party/WebKit/public/platform/WebScheduler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698