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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 const blink::WebSize& cumulative_scroll); | 156 const blink::WebSize& cumulative_scroll); |
156 virtual void didStartWorkerRunLoop(); | 157 virtual void didStartWorkerRunLoop(); |
157 virtual void didStopWorkerRunLoop(); | 158 virtual void didStopWorkerRunLoop(); |
158 virtual blink::WebCrypto* crypto(); | 159 virtual blink::WebCrypto* crypto(); |
159 virtual blink::WebGeofencingProvider* geofencingProvider(); | 160 virtual blink::WebGeofencingProvider* geofencingProvider(); |
160 virtual blink::WebBluetooth* bluetooth(); | 161 virtual blink::WebBluetooth* bluetooth(); |
161 virtual blink::WebNotificationManager* notificationManager(); | 162 virtual blink::WebNotificationManager* notificationManager(); |
162 virtual blink::WebPushProvider* pushProvider(); | 163 virtual blink::WebPushProvider* pushProvider(); |
163 virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider(); | 164 virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider(); |
164 virtual blink::WebPermissionClient* permissionClient(); | 165 virtual blink::WebPermissionClient* permissionClient(); |
| 166 virtual blink::WebSyncProvider* backgroundSyncProvider(); |
165 | 167 |
166 void SuspendSharedTimer(); | 168 void SuspendSharedTimer(); |
167 void ResumeSharedTimer(); | 169 void ResumeSharedTimer(); |
168 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 170 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
169 | 171 |
170 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } | 172 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } |
171 | 173 |
172 virtual blink::WebString domCodeStringFromEnum(int dom_code); | 174 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
173 virtual int domEnumFromCodeString(const blink::WebString& codeString); | 175 virtual int domEnumFromCodeString(const blink::WebString& codeString); |
174 | 176 |
(...skipping 20 matching lines...) Expand all Loading... |
195 int shared_timer_suspended_; // counter | 197 int shared_timer_suspended_; // counter |
196 base::ThreadLocalStorage::Slot current_thread_slot_; | 198 base::ThreadLocalStorage::Slot current_thread_slot_; |
197 webcrypto::WebCryptoImpl web_crypto_; | 199 webcrypto::WebCryptoImpl web_crypto_; |
198 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 200 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
199 scoped_ptr<WebBluetoothImpl> bluetooth_; | 201 scoped_ptr<WebBluetoothImpl> bluetooth_; |
200 | 202 |
201 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 203 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
202 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 204 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
203 scoped_refptr<PushDispatcher> push_dispatcher_; | 205 scoped_refptr<PushDispatcher> push_dispatcher_; |
204 scoped_ptr<PermissionDispatcher> permission_client_; | 206 scoped_ptr<PermissionDispatcher> permission_client_; |
| 207 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
205 }; | 208 }; |
206 | 209 |
207 } // namespace content | 210 } // namespace content |
208 | 211 |
209 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 212 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |