| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 blink::WebServicePortProvider* createServicePortProvider( | 182 blink::WebServicePortProvider* createServicePortProvider( |
| 183 blink::WebServicePortProviderClient*) override; | 183 blink::WebServicePortProviderClient*) override; |
| 184 blink::WebPermissionClient* permissionClient() override; | 184 blink::WebPermissionClient* permissionClient() override; |
| 185 blink::WebSyncProvider* backgroundSyncProvider() override; | 185 blink::WebSyncProvider* backgroundSyncProvider() override; |
| 186 | 186 |
| 187 blink::WebString domCodeStringFromEnum(int dom_code) override; | 187 blink::WebString domCodeStringFromEnum(int dom_code) override; |
| 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 protected: |
| 193 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 194 LoadingTaskRunnerForCurrentThread(); |
| 195 |
| 192 private: | 196 private: |
| 193 void InternalInit(); | 197 void InternalInit(); |
| 194 void UpdateWebThreadTLS(blink::WebThread* thread); | 198 void UpdateWebThreadTLS(blink::WebThread* thread); |
| 195 | 199 |
| 196 bool IsMainThread() const; | 200 bool IsMainThread() const; |
| 197 | 201 |
| 198 scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread(); | |
| 199 | |
| 200 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 202 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 201 WebThemeEngineImpl native_theme_engine_; | 203 WebThemeEngineImpl native_theme_engine_; |
| 202 WebFallbackThemeEngineImpl fallback_theme_engine_; | 204 WebFallbackThemeEngineImpl fallback_theme_engine_; |
| 203 base::ThreadLocalStorage::Slot current_thread_slot_; | 205 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 204 webcrypto::WebCryptoImpl web_crypto_; | 206 webcrypto::WebCryptoImpl web_crypto_; |
| 205 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 207 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
| 206 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, | 208 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, |
| 207 scoped_ptr<WebMemoryDumpProviderAdapter>> | 209 scoped_ptr<WebMemoryDumpProviderAdapter>> |
| 208 memory_dump_providers_; | 210 memory_dump_providers_; |
| 209 | 211 |
| 210 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 212 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 211 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 213 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
| 212 scoped_refptr<PushDispatcher> push_dispatcher_; | 214 scoped_refptr<PushDispatcher> push_dispatcher_; |
| 213 scoped_ptr<PermissionDispatcher> permission_client_; | 215 scoped_ptr<PermissionDispatcher> permission_client_; |
| 214 scoped_ptr<BackgroundSyncProvider> sync_provider_; | 216 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace content | 219 } // namespace content |
| 218 | 220 |
| 219 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 221 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |