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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override { } | 84 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*)
override { } |
85 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*)
override { } | 85 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*)
override { } |
86 WebPassOwnPtr<WebViewScheduler> createWebViewScheduler(blink::WebView*) over
ride { return nullptr; } | 86 WebPassOwnPtr<WebViewScheduler> createWebViewScheduler(blink::WebView*) over
ride { return nullptr; } |
87 void suspendTimerQueue() override { } | 87 void suspendTimerQueue() override { } |
88 void resumeTimerQueue() override { } | 88 void resumeTimerQueue() override { } |
89 void addPendingNavigation() override { } | 89 void addPendingNavigation() override { } |
90 void removePendingNavigation() override { } | 90 void removePendingNavigation() override { } |
91 void onNavigationStarted() override { } | 91 void onNavigationStarted() override { } |
92 | 92 |
93 private: | 93 private: |
94 Deque<OwnPtr<WebTaskRunner::Task>> m_tasks; | 94 WTF::Deque<OwnPtr<WebTaskRunner::Task>> m_tasks; |
95 OwnPtr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; | 95 OwnPtr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; |
96 }; | 96 }; |
97 | 97 |
98 class TestingPlatformSupport : public Platform { | 98 class TestingPlatformSupport : public Platform { |
99 WTF_MAKE_NONCOPYABLE(TestingPlatformSupport); | 99 WTF_MAKE_NONCOPYABLE(TestingPlatformSupport); |
100 public: | 100 public: |
101 struct Config { | 101 struct Config { |
102 Config() | 102 Config() |
103 : hasDiscardableMemorySupport(false) | 103 : hasDiscardableMemorySupport(false) |
104 , compositorSupport(nullptr) { } | 104 , compositorSupport(nullptr) { } |
(...skipping 30 matching lines...) Expand all Loading... |
135 WebThread* currentThread() override; | 135 WebThread* currentThread() override; |
136 TestingPlatformMockScheduler* mockWebScheduler(); | 136 TestingPlatformMockScheduler* mockWebScheduler(); |
137 | 137 |
138 protected: | 138 protected: |
139 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; | 139 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; |
140 }; | 140 }; |
141 | 141 |
142 } // namespace blink | 142 } // namespace blink |
143 | 143 |
144 #endif // TestingPlatformSupport_h | 144 #endif // TestingPlatformSupport_h |
OLD | NEW |