OLD | NEW |
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 CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/containers/scoped_ptr_hash_map.h" | 9 #include "base/containers/scoped_ptr_hash_map.h" |
10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #elif defined(OS_MACOSX) | 25 #elif defined(OS_MACOSX) |
26 #include "content/child/webthemeengine_impl_mac.h" | 26 #include "content/child/webthemeengine_impl_mac.h" |
27 #elif defined(OS_ANDROID) | 27 #elif defined(OS_ANDROID) |
28 #include "content/child/webthemeengine_impl_android.h" | 28 #include "content/child/webthemeengine_impl_android.h" |
29 #endif | 29 #endif |
30 | 30 |
31 namespace base { | 31 namespace base { |
32 class MessageLoop; | 32 class MessageLoop; |
33 } | 33 } |
34 | 34 |
| 35 namespace scheduler { |
| 36 class WebThreadImplForWorkerScheduler; |
| 37 } |
| 38 |
35 namespace content { | 39 namespace content { |
36 class BackgroundSyncProvider; | 40 class BackgroundSyncProvider; |
37 class FlingCurveConfiguration; | 41 class FlingCurveConfiguration; |
38 class NotificationDispatcher; | 42 class NotificationDispatcher; |
39 class PermissionDispatcher; | 43 class PermissionDispatcher; |
40 class PushDispatcher; | 44 class PushDispatcher; |
41 class ThreadSafeSender; | 45 class ThreadSafeSender; |
42 class WebCryptoImpl; | 46 class WebCryptoImpl; |
43 class WebGeofencingProviderImpl; | 47 class WebGeofencingProviderImpl; |
44 class WebMemoryDumpProviderAdapter; | 48 class WebMemoryDumpProviderAdapter; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 blink::WebURLLoader* createURLLoader() override; | 88 blink::WebURLLoader* createURLLoader() override; |
85 blink::WebSocketHandle* createWebSocketHandle() override; | 89 blink::WebSocketHandle* createWebSocketHandle() override; |
86 blink::WebString userAgent() override; | 90 blink::WebString userAgent() override; |
87 blink::WebData parseDataURL(const blink::WebURL& url, | 91 blink::WebData parseDataURL(const blink::WebURL& url, |
88 blink::WebString& mimetype, | 92 blink::WebString& mimetype, |
89 blink::WebString& charset) override; | 93 blink::WebString& charset) override; |
90 blink::WebURLError cancelledError(const blink::WebURL& url) const override; | 94 blink::WebURLError cancelledError(const blink::WebURL& url) const override; |
91 bool isReservedIPAddress(const blink::WebString& host) const override; | 95 bool isReservedIPAddress(const blink::WebString& host) const override; |
92 bool portAllowed(const blink::WebURL& url) const override; | 96 bool portAllowed(const blink::WebURL& url) const override; |
93 blink::WebThread* createThread(const char* name) override; | 97 blink::WebThread* createThread(const char* name) override; |
| 98 blink::WebThread* createThreadForCompositor(const char* name); |
94 blink::WebThread* currentThread() override; | 99 blink::WebThread* currentThread() override; |
95 void yieldCurrentThread() override; | 100 void yieldCurrentThread() override; |
96 blink::WebWaitableEvent* createWaitableEvent( | 101 blink::WebWaitableEvent* createWaitableEvent( |
97 blink::WebWaitableEvent::ResetPolicy policy, | 102 blink::WebWaitableEvent::ResetPolicy policy, |
98 blink::WebWaitableEvent::InitialState state) override; | 103 blink::WebWaitableEvent::InitialState state) override; |
99 blink::WebWaitableEvent* waitMultipleEvents( | 104 blink::WebWaitableEvent* waitMultipleEvents( |
100 const blink::WebVector<blink::WebWaitableEvent*>& events) override; | 105 const blink::WebVector<blink::WebWaitableEvent*>& events) override; |
101 void decrementStatsCounter(const char* name) override; | 106 void decrementStatsCounter(const char* name) override; |
102 void incrementStatsCounter(const char* name) override; | 107 void incrementStatsCounter(const char* name) override; |
103 void histogramCustomCounts(const char* name, | 108 void histogramCustomCounts(const char* name, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 blink::WebString queryLocalizedString( | 165 blink::WebString queryLocalizedString( |
161 blink::WebLocalizedString::Name name, | 166 blink::WebLocalizedString::Name name, |
162 const blink::WebString& value1, | 167 const blink::WebString& value1, |
163 const blink::WebString& value2) override; | 168 const blink::WebString& value2) override; |
164 void suddenTerminationChanged(bool enabled) override {} | 169 void suddenTerminationChanged(bool enabled) override {} |
165 double currentTimeSeconds() override; | 170 double currentTimeSeconds() override; |
166 double monotonicallyIncreasingTimeSeconds() override; | 171 double monotonicallyIncreasingTimeSeconds() override; |
167 double systemTraceTime() override; | 172 double systemTraceTime() override; |
168 void cryptographicallyRandomValues(unsigned char* buffer, | 173 void cryptographicallyRandomValues(unsigned char* buffer, |
169 size_t length) override; | 174 size_t length) override; |
| 175 blink::WebThread* compositorThread() const override; |
170 blink::WebGestureCurve* createFlingAnimationCurve( | 176 blink::WebGestureCurve* createFlingAnimationCurve( |
171 blink::WebGestureDevice device_source, | 177 blink::WebGestureDevice device_source, |
172 const blink::WebFloatPoint& velocity, | 178 const blink::WebFloatPoint& velocity, |
173 const blink::WebSize& cumulative_scroll) override; | 179 const blink::WebSize& cumulative_scroll) override; |
174 void didStartWorkerRunLoop() override; | 180 void didStartWorkerRunLoop() override; |
175 void didStopWorkerRunLoop() override; | 181 void didStopWorkerRunLoop() override; |
176 blink::WebCrypto* crypto() override; | 182 blink::WebCrypto* crypto() override; |
177 blink::WebGeofencingProvider* geofencingProvider() override; | 183 blink::WebGeofencingProvider* geofencingProvider() override; |
178 blink::WebNotificationManager* notificationManager() override; | 184 blink::WebNotificationManager* notificationManager() override; |
179 blink::WebPushProvider* pushProvider() override; | 185 blink::WebPushProvider* pushProvider() override; |
(...skipping 21 matching lines...) Expand all Loading... |
201 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 207 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
202 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, | 208 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, |
203 scoped_ptr<WebMemoryDumpProviderAdapter>> | 209 scoped_ptr<WebMemoryDumpProviderAdapter>> |
204 memory_dump_providers_; | 210 memory_dump_providers_; |
205 | 211 |
206 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 212 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
207 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 213 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
208 scoped_refptr<PushDispatcher> push_dispatcher_; | 214 scoped_refptr<PushDispatcher> push_dispatcher_; |
209 scoped_ptr<PermissionDispatcher> permission_client_; | 215 scoped_ptr<PermissionDispatcher> permission_client_; |
210 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; | 216 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; |
| 217 |
| 218 scheduler::WebThreadImplForWorkerScheduler* compositor_thread_; |
211 }; | 219 }; |
212 | 220 |
213 } // namespace content | 221 } // namespace content |
214 | 222 |
215 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 223 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |