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

Side by Side Diff: third_party/WebKit/public/platform/scheduler/test/fake_renderer_scheduler.h

Issue 2273703002: Force events to be non blocking if main thread is unresponsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 4 years, 1 month 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_PUBLIC_PLATFORM_SCHEDULER_TEST_FAKE_RENDERER_SCHEDULE R_H_ 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_FAKE_RENDERER_SCHEDULE R_H_
6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_FAKE_RENDERER_SCHEDULE R_H_ 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_FAKE_RENDERER_SCHEDULE R_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "public/platform/scheduler/renderer/renderer_scheduler.h" 9 #include "public/platform/scheduler/renderer/renderer_scheduler.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 53 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
54 void RemoveTaskObserver( 54 void RemoveTaskObserver(
55 base::MessageLoop::TaskObserver* task_observer) override; 55 base::MessageLoop::TaskObserver* task_observer) override;
56 void Shutdown() override; 56 void Shutdown() override;
57 void SuspendTimerQueue() override; 57 void SuspendTimerQueue() override;
58 void ResumeTimerQueue() override; 58 void ResumeTimerQueue() override;
59 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; 59 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override;
60 void SetTopLevelBlameContext( 60 void SetTopLevelBlameContext(
61 base::trace_event::BlameContext* blame_context) override; 61 base::trace_event::BlameContext* blame_context) override;
62 void SetRAILModeObserver(RAILModeObserver* observer) override; 62 void SetRAILModeObserver(RAILModeObserver* observer) override;
63 bool ShouldForceEventsNonBlockingForUnresponsiveMainThread() const override;
63 64
64 private: 65 private:
65 DISALLOW_COPY_AND_ASSIGN(FakeRendererScheduler); 66 DISALLOW_COPY_AND_ASSIGN(FakeRendererScheduler);
66 }; 67 };
67 68
68 } // namespace scheduler 69 } // namespace scheduler
69 } // namespace blink 70 } // namespace blink
70 71
71 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_FAKE_RENDERER_SCHED ULER_H_ 72 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_TEST_FAKE_RENDERER_SCHED ULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698