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/threading/thread_local_storage.h" | 9 #include "base/threading/thread_local_storage.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "content/child/webthemeengine_impl_mac.h" | 25 #include "content/child/webthemeengine_impl_mac.h" |
26 #elif defined(OS_ANDROID) | 26 #elif defined(OS_ANDROID) |
27 #include "content/child/webthemeengine_impl_android.h" | 27 #include "content/child/webthemeengine_impl_android.h" |
28 #endif | 28 #endif |
29 | 29 |
30 namespace base { | 30 namespace base { |
31 class MessageLoop; | 31 class MessageLoop; |
32 } | 32 } |
33 | 33 |
34 namespace content { | 34 namespace content { |
| 35 class BackgroundSyncProvider; |
35 class FlingCurveConfiguration; | 36 class FlingCurveConfiguration; |
36 class NotificationDispatcher; | 37 class NotificationDispatcher; |
37 class PermissionDispatcher; | 38 class PermissionDispatcher; |
38 class PushDispatcher; | 39 class PushDispatcher; |
39 class ThreadSafeSender; | 40 class ThreadSafeSender; |
40 class WebBluetoothImpl; | 41 class WebBluetoothImpl; |
41 class WebCryptoImpl; | 42 class WebCryptoImpl; |
42 class WebGeofencingProviderImpl; | 43 class WebGeofencingProviderImpl; |
43 | 44 |
44 class CONTENT_EXPORT BlinkPlatformImpl | 45 class CONTENT_EXPORT BlinkPlatformImpl |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 const blink::WebSize& cumulative_scroll); | 157 const blink::WebSize& cumulative_scroll); |
157 virtual void didStartWorkerRunLoop(); | 158 virtual void didStartWorkerRunLoop(); |
158 virtual void didStopWorkerRunLoop(); | 159 virtual void didStopWorkerRunLoop(); |
159 virtual blink::WebCrypto* crypto(); | 160 virtual blink::WebCrypto* crypto(); |
160 virtual blink::WebGeofencingProvider* geofencingProvider(); | 161 virtual blink::WebGeofencingProvider* geofencingProvider(); |
161 virtual blink::WebBluetooth* bluetooth(); | 162 virtual blink::WebBluetooth* bluetooth(); |
162 virtual blink::WebNotificationManager* notificationManager(); | 163 virtual blink::WebNotificationManager* notificationManager(); |
163 virtual blink::WebPushProvider* pushProvider(); | 164 virtual blink::WebPushProvider* pushProvider(); |
164 virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider(); | 165 virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider(); |
165 virtual blink::WebPermissionClient* permissionClient(); | 166 virtual blink::WebPermissionClient* permissionClient(); |
| 167 virtual blink::WebSyncProvider* backgroundSyncProvider(); |
166 | 168 |
167 void SuspendSharedTimer(); | 169 void SuspendSharedTimer(); |
168 void ResumeSharedTimer(); | 170 void ResumeSharedTimer(); |
169 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 171 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
170 | 172 |
171 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } | 173 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } |
172 | 174 |
173 virtual blink::WebString domCodeStringFromEnum(int dom_code); | 175 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
174 virtual int domEnumFromCodeString(const blink::WebString& codeString); | 176 virtual int domEnumFromCodeString(const blink::WebString& codeString); |
175 | 177 |
(...skipping 20 matching lines...) Expand all Loading... |
196 int shared_timer_suspended_; // counter | 198 int shared_timer_suspended_; // counter |
197 base::ThreadLocalStorage::Slot current_thread_slot_; | 199 base::ThreadLocalStorage::Slot current_thread_slot_; |
198 webcrypto::WebCryptoImpl web_crypto_; | 200 webcrypto::WebCryptoImpl web_crypto_; |
199 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 201 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
200 scoped_ptr<WebBluetoothImpl> bluetooth_; | 202 scoped_ptr<WebBluetoothImpl> bluetooth_; |
201 | 203 |
202 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 204 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
203 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 205 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
204 scoped_refptr<PushDispatcher> push_dispatcher_; | 206 scoped_refptr<PushDispatcher> push_dispatcher_; |
205 scoped_ptr<PermissionDispatcher> permission_client_; | 207 scoped_ptr<PermissionDispatcher> permission_client_; |
| 208 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
206 }; | 209 }; |
207 | 210 |
208 } // namespace content | 211 } // namespace content |
209 | 212 |
210 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 213 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |