| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 namespace content { | 45 namespace content { |
| 46 class BackgroundSyncProvider; | 46 class BackgroundSyncProvider; |
| 47 class FlingCurveConfiguration; | 47 class FlingCurveConfiguration; |
| 48 class NotificationDispatcher; | 48 class NotificationDispatcher; |
| 49 class PermissionDispatcher; | 49 class PermissionDispatcher; |
| 50 class PushDispatcher; | 50 class PushDispatcher; |
| 51 class ThreadSafeSender; | 51 class ThreadSafeSender; |
| 52 class TraceLogObserverAdapter; | 52 class TraceLogObserverAdapter; |
| 53 class WebCryptoImpl; | 53 class WebCryptoImpl; |
| 54 class WebGeofencingProviderImpl; | 54 class WebGeofencingProviderImpl; |
| 55 class WebMemoryDumpProviderAdapter; | |
| 56 | 55 |
| 57 class CONTENT_EXPORT BlinkPlatformImpl | 56 class CONTENT_EXPORT BlinkPlatformImpl |
| 58 : NON_EXPORTED_BASE(public blink::Platform) { | 57 : NON_EXPORTED_BASE(public blink::Platform) { |
| 59 public: | 58 public: |
| 60 BlinkPlatformImpl(); | 59 BlinkPlatformImpl(); |
| 61 explicit BlinkPlatformImpl( | 60 explicit BlinkPlatformImpl( |
| 62 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); | 61 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); |
| 63 ~BlinkPlatformImpl() override; | 62 ~BlinkPlatformImpl() override; |
| 64 | 63 |
| 65 // Platform methods (partial implementation): | 64 // Platform methods (partial implementation): |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 int min, | 113 int min, |
| 115 int max, | 114 int max, |
| 116 int bucket_count) override; | 115 int bucket_count) override; |
| 117 void histogramEnumeration(const char* name, | 116 void histogramEnumeration(const char* name, |
| 118 int sample, | 117 int sample, |
| 119 int boundary_value) override; | 118 int boundary_value) override; |
| 120 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider* wmdp, | 119 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider* wmdp, |
| 121 const char* name) override; | 120 const char* name) override; |
| 122 void unregisterMemoryDumpProvider( | 121 void unregisterMemoryDumpProvider( |
| 123 blink::WebMemoryDumpProvider* wmdp) override; | 122 blink::WebMemoryDumpProvider* wmdp) override; |
| 124 blink::WebProcessMemoryDump* createProcessMemoryDump() override; | |
| 125 blink::Platform::WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid( | 123 blink::Platform::WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid( |
| 126 const blink::WebString& guidStr) override; | 124 const blink::WebString& guidStr) override; |
| 127 void addTraceLogEnabledStateObserver( | 125 void addTraceLogEnabledStateObserver( |
| 128 blink::Platform::TraceLogEnabledStateObserver* observer) override; | 126 blink::Platform::TraceLogEnabledStateObserver* observer) override; |
| 129 void removeTraceLogEnabledStateObserver( | 127 void removeTraceLogEnabledStateObserver( |
| 130 blink::Platform::TraceLogEnabledStateObserver* observer) override; | 128 blink::Platform::TraceLogEnabledStateObserver* observer) override; |
| 131 | 129 |
| 132 blink::WebData loadResource(const char* name) override; | 130 blink::WebData loadResource(const char* name) override; |
| 133 blink::WebString queryLocalizedString( | 131 blink::WebString queryLocalizedString( |
| 134 blink::WebLocalizedString::Name name) override; | 132 blink::WebLocalizedString::Name name) override; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event); | 175 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event); |
| 178 | 176 |
| 179 bool IsMainThread() const; | 177 bool IsMainThread() const; |
| 180 | 178 |
| 181 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 179 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 182 WebThemeEngineImpl native_theme_engine_; | 180 WebThemeEngineImpl native_theme_engine_; |
| 183 WebFallbackThemeEngineImpl fallback_theme_engine_; | 181 WebFallbackThemeEngineImpl fallback_theme_engine_; |
| 184 base::ThreadLocalStorage::Slot current_thread_slot_; | 182 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 185 webcrypto::WebCryptoImpl web_crypto_; | 183 webcrypto::WebCryptoImpl web_crypto_; |
| 186 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 184 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
| 187 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, | |
| 188 scoped_ptr<WebMemoryDumpProviderAdapter>> | |
| 189 memory_dump_providers_; | |
| 190 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, | 185 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, |
| 191 scoped_ptr<TraceLogObserverAdapter>> | 186 scoped_ptr<TraceLogObserverAdapter>> |
| 192 trace_log_observers_; | 187 trace_log_observers_; |
| 193 | 188 |
| 194 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 189 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 195 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 190 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
| 196 scoped_refptr<PushDispatcher> push_dispatcher_; | 191 scoped_refptr<PushDispatcher> push_dispatcher_; |
| 197 scoped_ptr<PermissionDispatcher> permission_client_; | 192 scoped_ptr<PermissionDispatcher> permission_client_; |
| 198 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; | 193 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; |
| 199 | 194 |
| 200 TrialTokenValidator trial_token_validator_; | 195 TrialTokenValidator trial_token_validator_; |
| 201 | 196 |
| 202 scheduler::WebThreadBase* compositor_thread_; | 197 scheduler::WebThreadBase* compositor_thread_; |
| 203 }; | 198 }; |
| 204 | 199 |
| 205 } // namespace content | 200 } // namespace content |
| 206 | 201 |
| 207 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 202 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |