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 | |
179 virtual blink::WebString domCodeStringFromEnum(int dom_code); | 177 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
180 virtual int domEnumFromCodeString(const blink::WebString& codeString); | 178 virtual int domEnumFromCodeString(const blink::WebString& codeString); |
181 | 179 |
182 private: | 180 private: |
183 void DoTimeout() { | 181 void DoTimeout() { |
184 if (shared_timer_func_ && !shared_timer_suspended_) | 182 if (shared_timer_func_ && !shared_timer_suspended_) |
185 shared_timer_func_(); | 183 shared_timer_func_(); |
186 } | 184 } |
187 | 185 |
188 void InternalInit(); | 186 void InternalInit(); |
(...skipping 22 matching lines...) Expand all Loading... |
211 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 209 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
212 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 210 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
213 scoped_refptr<PushDispatcher> push_dispatcher_; | 211 scoped_refptr<PushDispatcher> push_dispatcher_; |
214 scoped_ptr<PermissionDispatcher> permission_client_; | 212 scoped_ptr<PermissionDispatcher> permission_client_; |
215 scoped_ptr<BackgroundSyncProvider> sync_provider_; | 213 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
216 }; | 214 }; |
217 | 215 |
218 } // namespace content | 216 } // namespace content |
219 | 217 |
220 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 218 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |