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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 virtual blink::WebNotificationManager* notificationManager(); | 167 virtual blink::WebNotificationManager* notificationManager(); |
168 virtual blink::WebPushProvider* pushProvider(); | 168 virtual blink::WebPushProvider* pushProvider(); |
169 virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider(); | 169 virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider(); |
170 virtual blink::WebPermissionClient* permissionClient(); | 170 virtual blink::WebPermissionClient* permissionClient(); |
171 virtual blink::WebSyncProvider* backgroundSyncProvider(); | 171 virtual blink::WebSyncProvider* backgroundSyncProvider(); |
172 | 172 |
173 void SuspendSharedTimer(); | 173 void SuspendSharedTimer(); |
174 void ResumeSharedTimer(); | 174 void ResumeSharedTimer(); |
175 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 175 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
176 | 176 |
| 177 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } |
| 178 |
177 virtual blink::WebString domCodeStringFromEnum(int dom_code); | 179 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
178 virtual int domEnumFromCodeString(const blink::WebString& codeString); | 180 virtual int domEnumFromCodeString(const blink::WebString& codeString); |
179 | 181 |
180 private: | 182 private: |
181 void DoTimeout() { | 183 void DoTimeout() { |
182 if (shared_timer_func_ && !shared_timer_suspended_) | 184 if (shared_timer_func_ && !shared_timer_suspended_) |
183 shared_timer_func_(); | 185 shared_timer_func_(); |
184 } | 186 } |
185 | 187 |
186 void InternalInit(); | 188 void InternalInit(); |
(...skipping 22 matching lines...) Expand all Loading... |
209 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 211 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
210 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 212 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
211 scoped_refptr<PushDispatcher> push_dispatcher_; | 213 scoped_refptr<PushDispatcher> push_dispatcher_; |
212 scoped_ptr<PermissionDispatcher> permission_client_; | 214 scoped_ptr<PermissionDispatcher> permission_client_; |
213 scoped_ptr<BackgroundSyncProvider> sync_provider_; | 215 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
214 }; | 216 }; |
215 | 217 |
216 } // namespace content | 218 } // namespace content |
217 | 219 |
218 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 220 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |