| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace scheduler { | 40 namespace scheduler { |
| 41 class WebThreadBase; | 41 class WebThreadBase; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace content { | 44 namespace content { |
| 45 class BackgroundSyncProvider; | 45 class BackgroundSyncProvider; |
| 46 class FlingCurveConfiguration; | 46 class FlingCurveConfiguration; |
| 47 class NotificationDispatcher; | 47 class NotificationDispatcher; |
| 48 class PermissionDispatcher; | |
| 49 class PushDispatcher; | 48 class PushDispatcher; |
| 50 class ThreadSafeSender; | 49 class ThreadSafeSender; |
| 51 class TraceLogObserverAdapter; | 50 class TraceLogObserverAdapter; |
| 52 class WebCryptoImpl; | 51 class WebCryptoImpl; |
| 53 | 52 |
| 54 class CONTENT_EXPORT BlinkPlatformImpl | 53 class CONTENT_EXPORT BlinkPlatformImpl |
| 55 : NON_EXPORTED_BASE(public blink::Platform) { | 54 : NON_EXPORTED_BASE(public blink::Platform) { |
| 56 public: | 55 public: |
| 57 BlinkPlatformImpl(); | 56 BlinkPlatformImpl(); |
| 58 explicit BlinkPlatformImpl( | 57 explicit BlinkPlatformImpl( |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 blink::WebGestureDevice device_source, | 119 blink::WebGestureDevice device_source, |
| 121 const blink::WebFloatPoint& velocity, | 120 const blink::WebFloatPoint& velocity, |
| 122 const blink::WebSize& cumulative_scroll) override; | 121 const blink::WebSize& cumulative_scroll) override; |
| 123 void didStartWorkerThread() override; | 122 void didStartWorkerThread() override; |
| 124 void willStopWorkerThread() override; | 123 void willStopWorkerThread() override; |
| 125 bool allowScriptExtensionForServiceWorker( | 124 bool allowScriptExtensionForServiceWorker( |
| 126 const blink::WebURL& script_url) override; | 125 const blink::WebURL& script_url) override; |
| 127 blink::WebCrypto* crypto() override; | 126 blink::WebCrypto* crypto() override; |
| 128 blink::WebNotificationManager* notificationManager() override; | 127 blink::WebNotificationManager* notificationManager() override; |
| 129 blink::WebPushProvider* pushProvider() override; | 128 blink::WebPushProvider* pushProvider() override; |
| 130 blink::WebPermissionClient* permissionClient() override; | |
| 131 blink::WebSyncProvider* backgroundSyncProvider() override; | 129 blink::WebSyncProvider* backgroundSyncProvider() override; |
| 132 | 130 |
| 133 blink::WebString domCodeStringFromEnum(int dom_code) override; | 131 blink::WebString domCodeStringFromEnum(int dom_code) override; |
| 134 int domEnumFromCodeString(const blink::WebString& codeString) override; | 132 int domEnumFromCodeString(const blink::WebString& codeString) override; |
| 135 blink::WebString domKeyStringFromEnum(int dom_key) override; | 133 blink::WebString domKeyStringFromEnum(int dom_key) override; |
| 136 int domKeyEnumFromString(const blink::WebString& key_string) override; | 134 int domKeyEnumFromString(const blink::WebString& key_string) override; |
| 137 | 135 |
| 138 // This class does *not* own the compositor thread. It is the responsibility | 136 // This class does *not* own the compositor thread. It is the responsibility |
| 139 // of the caller to ensure that the compositor thread is cleared before it is | 137 // of the caller to ensure that the compositor thread is cleared before it is |
| 140 // destructed. | 138 // destructed. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 152 WebFallbackThemeEngineImpl fallback_theme_engine_; | 150 WebFallbackThemeEngineImpl fallback_theme_engine_; |
| 153 base::ThreadLocalStorage::Slot current_thread_slot_; | 151 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 154 webcrypto::WebCryptoImpl web_crypto_; | 152 webcrypto::WebCryptoImpl web_crypto_; |
| 155 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, | 153 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, |
| 156 std::unique_ptr<TraceLogObserverAdapter>> | 154 std::unique_ptr<TraceLogObserverAdapter>> |
| 157 trace_log_observers_; | 155 trace_log_observers_; |
| 158 | 156 |
| 159 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 157 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 160 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 158 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
| 161 scoped_refptr<PushDispatcher> push_dispatcher_; | 159 scoped_refptr<PushDispatcher> push_dispatcher_; |
| 162 std::unique_ptr<PermissionDispatcher> permission_client_; | |
| 163 std::unique_ptr<BackgroundSyncProvider> main_thread_sync_provider_; | 160 std::unique_ptr<BackgroundSyncProvider> main_thread_sync_provider_; |
| 164 | 161 |
| 165 scheduler::WebThreadBase* compositor_thread_; | 162 scheduler::WebThreadBase* compositor_thread_; |
| 166 }; | 163 }; |
| 167 | 164 |
| 168 } // namespace content | 165 } // namespace content |
| 169 | 166 |
| 170 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 167 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |