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::WebCrypto* crypto(); | 167 virtual blink::WebCrypto* crypto(); |
168 virtual blink::WebGeofencingProvider* geofencingProvider(); | 168 virtual blink::WebGeofencingProvider* geofencingProvider(); |
169 virtual blink::WebNotificationManager* notificationManager(); | 169 virtual blink::WebNotificationManager* notificationManager(); |
170 virtual blink::WebPushProvider* pushProvider(); | 170 virtual blink::WebPushProvider* pushProvider(); |
171 virtual blink::WebServicePortProvider* createServicePortProvider( | 171 virtual blink::WebServicePortProvider* createServicePortProvider( |
172 blink::WebServicePortProviderClient*); | 172 blink::WebServicePortProviderClient*); |
173 virtual blink::WebPermissionClient* permissionClient(); | 173 virtual blink::WebPermissionClient* permissionClient(); |
174 virtual blink::WebSyncProvider* backgroundSyncProvider(); | 174 virtual blink::WebSyncProvider* backgroundSyncProvider(); |
175 | 175 |
176 virtual blink::WebString domCodeStringFromEnum(int dom_code); | 176 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
177 virtual int domEnumFromCodeString(const blink::WebString& codeString); | 177 virtual int domEnumFromCodeString(const blink::WebString& code_string); |
| 178 |
| 179 virtual blink::WebString domKeyStringFromEnum(int dom_key); |
| 180 virtual int domKeyEnumFromString(const blink::WebString& key_string); |
178 | 181 |
179 private: | 182 private: |
180 void InternalInit(); | 183 void InternalInit(); |
181 void UpdateWebThreadTLS(blink::WebThread* thread); | 184 void UpdateWebThreadTLS(blink::WebThread* thread); |
182 | 185 |
183 bool IsMainThread() const; | 186 bool IsMainThread() const; |
184 | 187 |
185 scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread(); | 188 scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread(); |
186 | 189 |
187 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 190 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
188 WebThemeEngineImpl native_theme_engine_; | 191 WebThemeEngineImpl native_theme_engine_; |
189 WebFallbackThemeEngineImpl fallback_theme_engine_; | 192 WebFallbackThemeEngineImpl fallback_theme_engine_; |
190 base::ThreadLocalStorage::Slot current_thread_slot_; | 193 base::ThreadLocalStorage::Slot current_thread_slot_; |
191 webcrypto::WebCryptoImpl web_crypto_; | 194 webcrypto::WebCryptoImpl web_crypto_; |
192 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 195 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
193 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, | 196 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, |
194 scoped_ptr<WebMemoryDumpProviderAdapter>> | 197 scoped_ptr<WebMemoryDumpProviderAdapter>> |
195 memory_dump_providers_; | 198 memory_dump_providers_; |
196 | 199 |
197 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 200 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
198 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 201 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
199 scoped_refptr<PushDispatcher> push_dispatcher_; | 202 scoped_refptr<PushDispatcher> push_dispatcher_; |
200 scoped_ptr<PermissionDispatcher> permission_client_; | 203 scoped_ptr<PermissionDispatcher> permission_client_; |
201 scoped_ptr<BackgroundSyncProvider> sync_provider_; | 204 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
202 }; | 205 }; |
203 | 206 |
204 } // namespace content | 207 } // namespace content |
205 | 208 |
206 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 209 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |