| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 namespace content { | 44 namespace content { |
| 45 class BackgroundSyncProvider; | 45 class BackgroundSyncProvider; |
| 46 class FlingCurveConfiguration; | 46 class FlingCurveConfiguration; |
| 47 class NotificationDispatcher; | 47 class NotificationDispatcher; |
| 48 class PermissionDispatcher; | 48 class PermissionDispatcher; |
| 49 class PushDispatcher; | 49 class PushDispatcher; |
| 50 class ThreadSafeSender; | 50 class ThreadSafeSender; |
| 51 class TraceLogObserverAdapter; | 51 class TraceLogObserverAdapter; |
| 52 class WebCryptoImpl; | 52 class WebCryptoImpl; |
| 53 class WebGeofencingProviderImpl; | 53 class WebGeofencingProviderImpl; |
| 54 class WebMemoryDumpProviderAdapter; |
| 54 | 55 |
| 55 class CONTENT_EXPORT BlinkPlatformImpl | 56 class CONTENT_EXPORT BlinkPlatformImpl |
| 56 : NON_EXPORTED_BASE(public blink::Platform) { | 57 : NON_EXPORTED_BASE(public blink::Platform) { |
| 57 public: | 58 public: |
| 58 BlinkPlatformImpl(); | 59 BlinkPlatformImpl(); |
| 59 explicit BlinkPlatformImpl( | 60 explicit BlinkPlatformImpl( |
| 60 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); | 61 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); |
| 61 ~BlinkPlatformImpl() override; | 62 ~BlinkPlatformImpl() override; |
| 62 | 63 |
| 63 // Platform methods (partial implementation): | 64 // Platform methods (partial implementation): |
| (...skipping 28 matching lines...) Expand all Loading... |
| 92 blink::WebString userAgent() override; | 93 blink::WebString userAgent() override; |
| 93 blink::WebData parseDataURL(const blink::WebURL& url, | 94 blink::WebData parseDataURL(const blink::WebURL& url, |
| 94 blink::WebString& mimetype, | 95 blink::WebString& mimetype, |
| 95 blink::WebString& charset) override; | 96 blink::WebString& charset) override; |
| 96 blink::WebURLError cancelledError(const blink::WebURL& url) const override; | 97 blink::WebURLError cancelledError(const blink::WebURL& url) const override; |
| 97 bool isReservedIPAddress(const blink::WebString& host) const override; | 98 bool isReservedIPAddress(const blink::WebString& host) const override; |
| 98 bool portAllowed(const blink::WebURL& url) const override; | 99 bool portAllowed(const blink::WebURL& url) const override; |
| 99 blink::WebThread* createThread(const char* name) override; | 100 blink::WebThread* createThread(const char* name) override; |
| 100 blink::WebThread* currentThread() override; | 101 blink::WebThread* currentThread() override; |
| 101 void recordAction(const blink::UserMetricsAction&) override; | 102 void recordAction(const blink::UserMetricsAction&) override; |
| 103 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider* wmdp, |
| 104 const char* name) override; |
| 105 void unregisterMemoryDumpProvider( |
| 106 blink::WebMemoryDumpProvider* wmdp) override; |
| 107 blink::WebProcessMemoryDump* createProcessMemoryDump() override; |
| 102 blink::Platform::WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid( | 108 blink::Platform::WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid( |
| 103 const blink::WebString& guidStr) override; | 109 const blink::WebString& guidStr) override; |
| 104 void addTraceLogEnabledStateObserver( | 110 void addTraceLogEnabledStateObserver( |
| 105 blink::Platform::TraceLogEnabledStateObserver* observer) override; | 111 blink::Platform::TraceLogEnabledStateObserver* observer) override; |
| 106 void removeTraceLogEnabledStateObserver( | 112 void removeTraceLogEnabledStateObserver( |
| 107 blink::Platform::TraceLogEnabledStateObserver* observer) override; | 113 blink::Platform::TraceLogEnabledStateObserver* observer) override; |
| 108 | 114 |
| 109 blink::WebData loadResource(const char* name) override; | 115 blink::WebData loadResource(const char* name) override; |
| 110 blink::WebString queryLocalizedString( | 116 blink::WebString queryLocalizedString( |
| 111 blink::WebLocalizedString::Name name) override; | 117 blink::WebLocalizedString::Name name) override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event); | 157 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event); |
| 152 | 158 |
| 153 bool IsMainThread() const; | 159 bool IsMainThread() const; |
| 154 | 160 |
| 155 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 161 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 156 WebThemeEngineImpl native_theme_engine_; | 162 WebThemeEngineImpl native_theme_engine_; |
| 157 WebFallbackThemeEngineImpl fallback_theme_engine_; | 163 WebFallbackThemeEngineImpl fallback_theme_engine_; |
| 158 base::ThreadLocalStorage::Slot current_thread_slot_; | 164 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 159 webcrypto::WebCryptoImpl web_crypto_; | 165 webcrypto::WebCryptoImpl web_crypto_; |
| 160 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 166 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
| 167 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, |
| 168 scoped_ptr<WebMemoryDumpProviderAdapter>> |
| 169 memory_dump_providers_; |
| 161 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, | 170 base::ScopedPtrHashMap<blink::Platform::TraceLogEnabledStateObserver*, |
| 162 scoped_ptr<TraceLogObserverAdapter>> | 171 scoped_ptr<TraceLogObserverAdapter>> |
| 163 trace_log_observers_; | 172 trace_log_observers_; |
| 164 | 173 |
| 165 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 174 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 166 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 175 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
| 167 scoped_refptr<PushDispatcher> push_dispatcher_; | 176 scoped_refptr<PushDispatcher> push_dispatcher_; |
| 168 scoped_ptr<PermissionDispatcher> permission_client_; | 177 scoped_ptr<PermissionDispatcher> permission_client_; |
| 169 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; | 178 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; |
| 170 | 179 |
| 171 scheduler::WebThreadBase* compositor_thread_; | 180 scheduler::WebThreadBase* compositor_thread_; |
| 172 }; | 181 }; |
| 173 | 182 |
| 174 } // namespace content | 183 } // namespace content |
| 175 | 184 |
| 176 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 185 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |