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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void runAllTasks(); | 67 void runAllTasks(); |
68 | 68 |
69 // WebScheduler implementation: | 69 // WebScheduler implementation: |
70 WebTaskRunner* loadingTaskRunner() override; | 70 WebTaskRunner* loadingTaskRunner() override; |
71 WebTaskRunner* timerTaskRunner() override; | 71 WebTaskRunner* timerTaskRunner() override; |
72 void shutdown() override {} | 72 void shutdown() override {} |
73 bool shouldYieldForHighPriorityWork() override { return false; } | 73 bool shouldYieldForHighPriorityWork() override { return false; } |
74 bool canExceedIdleDeadlineIfRequired() override { return false; } | 74 bool canExceedIdleDeadlineIfRequired() override { return false; } |
75 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override {
} | 75 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override {
} |
76 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override { } | 76 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override { } |
77 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*)
override { } | |
78 std::unique_ptr<WebViewScheduler> createWebViewScheduler(InterventionReporte
r*) override { return nullptr; } | 77 std::unique_ptr<WebViewScheduler> createWebViewScheduler(InterventionReporte
r*) override { return nullptr; } |
79 void suspendTimerQueue() override { } | 78 void suspendTimerQueue() override { } |
80 void resumeTimerQueue() override { } | 79 void resumeTimerQueue() override { } |
81 void addPendingNavigation(WebScheduler::NavigatingFrameType) override { } | 80 void addPendingNavigation(WebScheduler::NavigatingFrameType) override { } |
82 void removePendingNavigation(WebScheduler::NavigatingFrameType) override { } | 81 void removePendingNavigation(WebScheduler::NavigatingFrameType) override { } |
83 void onNavigationStarted() override { } | 82 void onNavigationStarted() override { } |
84 | 83 |
85 private: | 84 private: |
86 WTF::Deque<std::unique_ptr<WebTaskRunner::Task>> m_tasks; | 85 WTF::Deque<std::unique_ptr<WebTaskRunner::Task>> m_tasks; |
87 std::unique_ptr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; | 86 std::unique_ptr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 std::unique_ptr<base::TestDiscardableMemoryAllocator> m_discardableMemoryAll
ocator; | 134 std::unique_ptr<base::TestDiscardableMemoryAllocator> m_discardableMemoryAll
ocator; |
136 std::unique_ptr<DummyPlatform> m_platform; | 135 std::unique_ptr<DummyPlatform> m_platform; |
137 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport; | 136 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport; |
138 TestingPlatformSupport::Config m_testingPlatformConfig; | 137 TestingPlatformSupport::Config m_testingPlatformConfig; |
139 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport; | 138 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport; |
140 }; | 139 }; |
141 | 140 |
142 } // namespace blink | 141 } // namespace blink |
143 | 142 |
144 #endif // TestingPlatformSupport_h | 143 #endif // TestingPlatformSupport_h |
OLD | NEW |