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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // WebScheduler implementation: | 60 // WebScheduler implementation: |
61 WebTaskRunner* loadingTaskRunner() override; | 61 WebTaskRunner* loadingTaskRunner() override; |
62 WebTaskRunner* timerTaskRunner() override; | 62 WebTaskRunner* timerTaskRunner() override; |
63 void shutdown() override {} | 63 void shutdown() override {} |
64 bool shouldYieldForHighPriorityWork() override { return false; } | 64 bool shouldYieldForHighPriorityWork() override { return false; } |
65 bool canExceedIdleDeadlineIfRequired() override { return false; } | 65 bool canExceedIdleDeadlineIfRequired() override { return false; } |
66 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override {
} | 66 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override {
} |
67 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override { } | 67 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override { } |
68 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*)
override { } | 68 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*)
override { } |
69 WebPassOwnPtr<WebViewScheduler> createWebViewScheduler(blink::WebView*) over
ride { return nullptr; } | 69 std::unique_ptr<WebViewScheduler> createWebViewScheduler(blink::WebView*) ov
erride { return nullptr; } |
70 void suspendTimerQueue() override { } | 70 void suspendTimerQueue() override { } |
71 void resumeTimerQueue() override { } | 71 void resumeTimerQueue() override { } |
72 void addPendingNavigation() override { } | 72 void addPendingNavigation() override { } |
73 void removePendingNavigation() override { } | 73 void removePendingNavigation() override { } |
74 void onNavigationStarted() override { } | 74 void onNavigationStarted() override { } |
75 | 75 |
76 private: | 76 private: |
77 WTF::Deque<OwnPtr<WebTaskRunner::Task>> m_tasks; | 77 WTF::Deque<OwnPtr<WebTaskRunner::Task>> m_tasks; |
78 OwnPtr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; | 78 OwnPtr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; |
79 }; | 79 }; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 WebThread* currentThread() override; | 113 WebThread* currentThread() override; |
114 TestingPlatformMockScheduler* mockWebScheduler(); | 114 TestingPlatformMockScheduler* mockWebScheduler(); |
115 | 115 |
116 protected: | 116 protected: |
117 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; | 117 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; |
118 }; | 118 }; |
119 | 119 |
120 } // namespace blink | 120 } // namespace blink |
121 | 121 |
122 #endif // TestingPlatformSupport_h | 122 #endif // TestingPlatformSupport_h |
OLD | NEW |