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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 int domEnumFromCodeString(const blink::WebString& codeString) override; | 188 int domEnumFromCodeString(const blink::WebString& codeString) override; |
189 blink::WebString domKeyStringFromEnum(int dom_key) override; | 189 blink::WebString domKeyStringFromEnum(int dom_key) override; |
190 int domKeyEnumFromString(const blink::WebString& key_string) override; | 190 int domKeyEnumFromString(const blink::WebString& key_string) override; |
191 | 191 |
192 private: | 192 private: |
193 void InternalInit(); | 193 void InternalInit(); |
194 void UpdateWebThreadTLS(blink::WebThread* thread); | 194 void UpdateWebThreadTLS(blink::WebThread* thread); |
195 | 195 |
196 bool IsMainThread() const; | 196 bool IsMainThread() const; |
197 | 197 |
198 scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread(); | |
199 | |
200 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 198 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
201 WebThemeEngineImpl native_theme_engine_; | 199 WebThemeEngineImpl native_theme_engine_; |
202 WebFallbackThemeEngineImpl fallback_theme_engine_; | 200 WebFallbackThemeEngineImpl fallback_theme_engine_; |
203 base::ThreadLocalStorage::Slot current_thread_slot_; | 201 base::ThreadLocalStorage::Slot current_thread_slot_; |
204 webcrypto::WebCryptoImpl web_crypto_; | 202 webcrypto::WebCryptoImpl web_crypto_; |
205 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 203 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
206 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, | 204 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, |
207 scoped_ptr<WebMemoryDumpProviderAdapter>> | 205 scoped_ptr<WebMemoryDumpProviderAdapter>> |
208 memory_dump_providers_; | 206 memory_dump_providers_; |
209 | 207 |
210 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 208 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
211 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 209 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
212 scoped_refptr<PushDispatcher> push_dispatcher_; | 210 scoped_refptr<PushDispatcher> push_dispatcher_; |
213 scoped_ptr<PermissionDispatcher> permission_client_; | 211 scoped_ptr<PermissionDispatcher> permission_client_; |
214 scoped_ptr<BackgroundSyncProvider> sync_provider_; | 212 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
215 }; | 213 }; |
216 | 214 |
217 } // namespace content | 215 } // namespace content |
218 | 216 |
219 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 217 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |