| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 virtual blink::WebNotificationManager* notificationManager(); | 182 virtual blink::WebNotificationManager* notificationManager(); |
| 183 virtual blink::WebPushProvider* pushProvider(); | 183 virtual blink::WebPushProvider* pushProvider(); |
| 184 virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider(); | 184 virtual blink::WebNavigatorConnectProvider* navigatorConnectProvider(); |
| 185 | 185 |
| 186 void SuspendSharedTimer(); | 186 void SuspendSharedTimer(); |
| 187 void ResumeSharedTimer(); | 187 void ResumeSharedTimer(); |
| 188 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 188 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
| 189 | 189 |
| 190 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } | 190 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } |
| 191 | 191 |
| 192 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
| 193 virtual int domEnumFromCodeString(const blink::WebString& codeString); |
| 194 |
| 192 private: | 195 private: |
| 193 static void DestroyCurrentThread(void*); | 196 static void DestroyCurrentThread(void*); |
| 194 | 197 |
| 195 void DoTimeout() { | 198 void DoTimeout() { |
| 196 if (shared_timer_func_ && !shared_timer_suspended_) | 199 if (shared_timer_func_ && !shared_timer_suspended_) |
| 197 shared_timer_func_(); | 200 shared_timer_func_(); |
| 198 } | 201 } |
| 199 | 202 |
| 200 void InternalInit(); | 203 void InternalInit(); |
| 201 | 204 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 215 scoped_ptr<WebBluetoothImpl> bluetooth_; | 218 scoped_ptr<WebBluetoothImpl> bluetooth_; |
| 216 | 219 |
| 217 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 220 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 218 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 221 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
| 219 scoped_refptr<PushDispatcher> push_dispatcher_; | 222 scoped_refptr<PushDispatcher> push_dispatcher_; |
| 220 }; | 223 }; |
| 221 | 224 |
| 222 } // namespace content | 225 } // namespace content |
| 223 | 226 |
| 224 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 227 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |