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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace content { | 35 namespace content { |
36 class BackgroundSyncProvider; | 36 class BackgroundSyncProvider; |
37 class FlingCurveConfiguration; | 37 class FlingCurveConfiguration; |
38 class NotificationDispatcher; | 38 class NotificationDispatcher; |
39 class PermissionDispatcher; | 39 class PermissionDispatcher; |
40 class PushDispatcher; | 40 class PushDispatcher; |
41 class ThreadSafeSender; | 41 class ThreadSafeSender; |
42 class WebCryptoImpl; | 42 class WebCryptoImpl; |
43 class WebGeofencingProviderImpl; | 43 class WebGeofencingProviderImpl; |
44 class WebMemoryDumpProviderAdapter; | |
45 | 44 |
46 class CONTENT_EXPORT BlinkPlatformImpl | 45 class CONTENT_EXPORT BlinkPlatformImpl |
47 : NON_EXPORTED_BASE(public blink::Platform) { | 46 : NON_EXPORTED_BASE(public blink::Platform) { |
48 public: | 47 public: |
49 BlinkPlatformImpl(); | 48 BlinkPlatformImpl(); |
50 explicit BlinkPlatformImpl( | 49 explicit BlinkPlatformImpl( |
51 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); | 50 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner); |
52 ~BlinkPlatformImpl() override; | 51 ~BlinkPlatformImpl() override; |
53 | 52 |
54 // Platform methods (partial implementation): | 53 // Platform methods (partial implementation): |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 double timestamp, | 136 double timestamp, |
138 int num_args, | 137 int num_args, |
139 const char** arg_names, | 138 const char** arg_names, |
140 const unsigned char* arg_types, | 139 const unsigned char* arg_types, |
141 const unsigned long long* arg_values, | 140 const unsigned long long* arg_values, |
142 blink::WebConvertableToTraceFormat* convertable_values, | 141 blink::WebConvertableToTraceFormat* convertable_values, |
143 unsigned char flags); | 142 unsigned char flags); |
144 void updateTraceEventDuration(const unsigned char* category_group_enabled, | 143 void updateTraceEventDuration(const unsigned char* category_group_enabled, |
145 const char* name, | 144 const char* name, |
146 TraceEventHandle) override; | 145 TraceEventHandle) override; |
147 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider* wmdp) override; | |
148 void unregisterMemoryDumpProvider( | |
149 blink::WebMemoryDumpProvider* wmdp) override; | |
150 blink::WebProcessMemoryDump* createProcessMemoryDump() override; | |
151 blink::Platform::WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid( | |
152 const blink::WebString& guidStr) override; | |
153 | 146 |
154 blink::WebData loadResource(const char* name) override; | 147 blink::WebData loadResource(const char* name) override; |
155 blink::WebString queryLocalizedString( | 148 blink::WebString queryLocalizedString( |
156 blink::WebLocalizedString::Name name) override; | 149 blink::WebLocalizedString::Name name) override; |
157 virtual blink::WebString queryLocalizedString( | 150 virtual blink::WebString queryLocalizedString( |
158 blink::WebLocalizedString::Name name, | 151 blink::WebLocalizedString::Name name, |
159 int numeric_value); | 152 int numeric_value); |
160 blink::WebString queryLocalizedString(blink::WebLocalizedString::Name name, | 153 blink::WebString queryLocalizedString(blink::WebLocalizedString::Name name, |
161 const blink::WebString& value) override; | 154 const blink::WebString& value) override; |
162 blink::WebString queryLocalizedString( | 155 blink::WebString queryLocalizedString( |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 bool IsMainThread() const; | 189 bool IsMainThread() const; |
197 | 190 |
198 scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread(); | 191 scoped_refptr<base::SingleThreadTaskRunner> MainTaskRunnerForCurrentThread(); |
199 | 192 |
200 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 193 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
201 WebThemeEngineImpl native_theme_engine_; | 194 WebThemeEngineImpl native_theme_engine_; |
202 WebFallbackThemeEngineImpl fallback_theme_engine_; | 195 WebFallbackThemeEngineImpl fallback_theme_engine_; |
203 base::ThreadLocalStorage::Slot current_thread_slot_; | 196 base::ThreadLocalStorage::Slot current_thread_slot_; |
204 webcrypto::WebCryptoImpl web_crypto_; | 197 webcrypto::WebCryptoImpl web_crypto_; |
205 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; | 198 scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_; |
206 base::ScopedPtrHashMap<blink::WebMemoryDumpProvider*, | |
207 scoped_ptr<WebMemoryDumpProviderAdapter>> | |
208 memory_dump_providers_; | |
209 | 199 |
210 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 200 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
211 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 201 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
212 scoped_refptr<PushDispatcher> push_dispatcher_; | 202 scoped_refptr<PushDispatcher> push_dispatcher_; |
213 scoped_ptr<PermissionDispatcher> permission_client_; | 203 scoped_ptr<PermissionDispatcher> permission_client_; |
214 scoped_ptr<BackgroundSyncProvider> sync_provider_; | 204 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
215 }; | 205 }; |
216 | 206 |
217 } // namespace content | 207 } // namespace content |
218 | 208 |
219 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 209 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |