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