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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 blink::WebWaitableEvent* waitMultipleEvents( | 109 blink::WebWaitableEvent* waitMultipleEvents( |
111 const blink::WebVector<blink::WebWaitableEvent*>& events) override; | 110 const blink::WebVector<blink::WebWaitableEvent*>& events) override; |
112 void histogramCustomCounts(const char* name, | 111 void histogramCustomCounts(const char* name, |
113 int sample, | 112 int sample, |
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, | |
121 const char* name) override; | |
122 void unregisterMemoryDumpProvider( | |
123 blink::WebMemoryDumpProvider* wmdp) override; | |
124 blink::WebProcessMemoryDump* createProcessMemoryDump() override; | |
125 blink::Platform::WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid( | 119 blink::Platform::WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid( |
126 const blink::WebString& guidStr) override; | 120 const blink::WebString& guidStr) override; |
127 void addTraceLogEnabledStateObserver( | 121 void addTraceLogEnabledStateObserver( |
128 blink::Platform::TraceLogEnabledStateObserver* observer) override; | 122 blink::Platform::TraceLogEnabledStateObserver* observer) override; |
129 void removeTraceLogEnabledStateObserver( | 123 void removeTraceLogEnabledStateObserver( |
130 blink::Platform::TraceLogEnabledStateObserver* observer) override; | 124 blink::Platform::TraceLogEnabledStateObserver* observer) override; |
131 | 125 |
132 blink::WebData loadResource(const char* name) override; | 126 blink::WebData loadResource(const char* name) override; |
133 blink::WebString queryLocalizedString( | 127 blink::WebString queryLocalizedString( |
134 blink::WebLocalizedString::Name name) override; | 128 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); | 171 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event); |
178 | 172 |
179 bool IsMainThread() const; | 173 bool IsMainThread() const; |
180 | 174 |
181 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 175 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
182 WebThemeEngineImpl native_theme_engine_; | 176 WebThemeEngineImpl native_theme_engine_; |
183 WebFallbackThemeEngineImpl fallback_theme_engine_; | 177 WebFallbackThemeEngineImpl fallback_theme_engine_; |
184 base::ThreadLocalStorage::Slot current_thread_slot_; | 178 base::ThreadLocalStorage::Slot current_thread_slot_; |
185 webcrypto::WebCryptoImpl web_crypto_; | 179 webcrypto::WebCryptoImpl web_crypto_; |
186 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 180 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
187 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, | |
188 scoped_ptr<WebMemoryDumpProviderAdapter>> | |
189 memory_dump_providers_; | |
190 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, | 181 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, |
191 scoped_ptr<TraceLogObserverAdapter>> | 182 scoped_ptr<TraceLogObserverAdapter>> |
192 trace_log_observers_; | 183 trace_log_observers_; |
193 | 184 |
194 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 185 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
195 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 186 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
196 scoped_refptr<PushDispatcher> push_dispatcher_; | 187 scoped_refptr<PushDispatcher> push_dispatcher_; |
197 scoped_ptr<PermissionDispatcher> permission_client_; | 188 scoped_ptr<PermissionDispatcher> permission_client_; |
198 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; | 189 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; |
199 | 190 |
200 TrialTokenValidator trial_token_validator_; | 191 TrialTokenValidator trial_token_validator_; |
201 | 192 |
202 scheduler::WebThreadBase* compositor_thread_; | 193 scheduler::WebThreadBase* compositor_thread_; |
203 }; | 194 }; |
204 | 195 |
205 } // namespace content | 196 } // namespace content |
206 | 197 |
207 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 198 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |