OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // WebScheduler implementation: | 61 // WebScheduler implementation: |
62 WebTaskRunner* loadingTaskRunner() override; | 62 WebTaskRunner* loadingTaskRunner() override; |
63 WebTaskRunner* timerTaskRunner() override; | 63 WebTaskRunner* timerTaskRunner() override; |
64 void shutdown() override {} | 64 void shutdown() override {} |
65 bool shouldYieldForHighPriorityWork() override { return false; } | 65 bool shouldYieldForHighPriorityWork() override { return false; } |
66 bool canExceedIdleDeadlineIfRequired() override { return false; } | 66 bool canExceedIdleDeadlineIfRequired() override { return false; } |
67 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override {
} | 67 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override {
} |
68 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override { } | 68 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override { } |
69 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*)
override { } | 69 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*)
override { } |
70 std::unique_ptr<WebViewScheduler> createWebViewScheduler(blink::WebView*) ov
erride { return nullptr; } | 70 std::unique_ptr<WebViewScheduler> createWebViewScheduler(InterventionReporte
r*) override { return nullptr; } |
71 void suspendTimerQueue() override { } | 71 void suspendTimerQueue() override { } |
72 void resumeTimerQueue() override { } | 72 void resumeTimerQueue() override { } |
73 void addPendingNavigation(WebScheduler::NavigatingFrameType) override { } | 73 void addPendingNavigation(WebScheduler::NavigatingFrameType) override { } |
74 void removePendingNavigation(WebScheduler::NavigatingFrameType) override { } | 74 void removePendingNavigation(WebScheduler::NavigatingFrameType) override { } |
75 void onNavigationStarted() override { } | 75 void onNavigationStarted() override { } |
76 | 76 |
77 private: | 77 private: |
78 WTF::Deque<std::unique_ptr<WebTaskRunner::Task>> m_tasks; | 78 WTF::Deque<std::unique_ptr<WebTaskRunner::Task>> m_tasks; |
79 std::unique_ptr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; | 79 std::unique_ptr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; |
80 }; | 80 }; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 WebThread* currentThread() override; | 112 WebThread* currentThread() override; |
113 TestingPlatformMockScheduler* mockWebScheduler(); | 113 TestingPlatformMockScheduler* mockWebScheduler(); |
114 | 114 |
115 protected: | 115 protected: |
116 std::unique_ptr<TestingPlatformMockWebThread> m_mockWebThread; | 116 std::unique_ptr<TestingPlatformMockWebThread> m_mockWebThread; |
117 }; | 117 }; |
118 | 118 |
119 } // namespace blink | 119 } // namespace blink |
120 | 120 |
121 #endif // TestingPlatformSupport_h | 121 #endif // TestingPlatformSupport_h |
OLD | NEW |