OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class WebSecurityOrigin; | 43 class WebSecurityOrigin; |
44 class WebServiceWorkerCacheStorage; | 44 class WebServiceWorkerCacheStorage; |
45 } | 45 } |
46 | 46 |
47 namespace scheduler { | 47 namespace scheduler { |
48 class RendererScheduler; | 48 class RendererScheduler; |
49 class WebThreadImplForRendererScheduler; | 49 class WebThreadImplForRendererScheduler; |
50 } | 50 } |
51 | 51 |
52 namespace content { | 52 namespace content { |
| 53 class BlinkServiceRegistryImpl; |
53 class DeviceLightEventPump; | 54 class DeviceLightEventPump; |
54 class DeviceMotionEventPump; | 55 class DeviceMotionEventPump; |
55 class DeviceOrientationEventPump; | 56 class DeviceOrientationEventPump; |
56 class LocalStorageCachedAreas; | 57 class LocalStorageCachedAreas; |
57 class PlatformEventObserverBase; | 58 class PlatformEventObserverBase; |
58 class QuotaMessageFilter; | 59 class QuotaMessageFilter; |
59 class RendererClipboardDelegate; | 60 class RendererClipboardDelegate; |
60 class RenderView; | 61 class RenderView; |
| 62 class ServiceRegistry; |
61 class ThreadSafeSender; | 63 class ThreadSafeSender; |
62 class WebClipboardImpl; | 64 class WebClipboardImpl; |
63 class WebDatabaseObserverImpl; | 65 class WebDatabaseObserverImpl; |
64 class WebFileSystemImpl; | 66 class WebFileSystemImpl; |
65 | 67 |
66 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { | 68 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
67 public: | 69 public: |
68 explicit RendererBlinkPlatformImpl( | 70 RendererBlinkPlatformImpl(scheduler::RendererScheduler* renderer_scheduler, |
69 scheduler::RendererScheduler* renderer_scheduler); | 71 base::WeakPtr<ServiceRegistry> service_registry); |
70 ~RendererBlinkPlatformImpl() override; | 72 ~RendererBlinkPlatformImpl() override; |
71 | 73 |
72 // Shutdown must be called just prior to shutting down blink. | 74 // Shutdown must be called just prior to shutting down blink. |
73 void Shutdown(); | 75 void Shutdown(); |
74 | 76 |
75 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { | 77 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
76 plugin_refresh_allowed_ = plugin_refresh_allowed; | 78 plugin_refresh_allowed_ = plugin_refresh_allowed; |
77 } | 79 } |
78 // Platform methods: | 80 // Platform methods: |
79 blink::WebClipboard* clipboard() override; | 81 blink::WebClipboard* clipboard() override; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 blink::WebMediaPlayer* web_media_player) override; | 173 blink::WebMediaPlayer* web_media_player) override; |
172 blink::WebGraphicsContext3DProvider* createOffscreenGraphicsContext3DProvider( | 174 blink::WebGraphicsContext3DProvider* createOffscreenGraphicsContext3DProvider( |
173 const blink::Platform::ContextAttributes& attributes, | 175 const blink::Platform::ContextAttributes& attributes, |
174 const blink::WebURL& top_document_web_url, | 176 const blink::WebURL& top_document_web_url, |
175 blink::WebGraphicsContext3DProvider* share_provider, | 177 blink::WebGraphicsContext3DProvider* share_provider, |
176 blink::Platform::GraphicsInfo* gl_info) override; | 178 blink::Platform::GraphicsInfo* gl_info) override; |
177 blink::WebGraphicsContext3DProvider* | 179 blink::WebGraphicsContext3DProvider* |
178 createSharedOffscreenGraphicsContext3DProvider() override; | 180 createSharedOffscreenGraphicsContext3DProvider() override; |
179 blink::WebCompositorSupport* compositorSupport() override; | 181 blink::WebCompositorSupport* compositorSupport() override; |
180 blink::WebString convertIDNToUnicode(const blink::WebString& host) override; | 182 blink::WebString convertIDNToUnicode(const blink::WebString& host) override; |
181 void connectToRemoteService(const char* name, | 183 blink::ServiceRegistry* serviceRegistry() override; |
182 mojo::ScopedMessagePipeHandle handle) override; | |
183 void startListening(blink::WebPlatformEventType, | 184 void startListening(blink::WebPlatformEventType, |
184 blink::WebPlatformEventListener*) override; | 185 blink::WebPlatformEventListener*) override; |
185 void stopListening(blink::WebPlatformEventType) override; | 186 void stopListening(blink::WebPlatformEventType) override; |
186 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, | 187 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, |
187 blink::WebStorageQuotaType, | 188 blink::WebStorageQuotaType, |
188 blink::WebStorageQuotaCallbacks) override; | 189 blink::WebStorageQuotaCallbacks) override; |
189 void vibrate(unsigned int milliseconds) override; | 190 void vibrate(unsigned int milliseconds) override; |
190 void cancelVibration() override; | 191 void cancelVibration() override; |
191 blink::WebThread* currentThread() override; | 192 blink::WebThread* currentThread() override; |
192 blink::BlameContext* topLevelBlameContext() override; | 193 blink::BlameContext* topLevelBlameContext() override; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 295 |
295 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 296 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
296 | 297 |
297 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED | 298 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED |
298 TopLevelBlameContext top_level_blame_context_; | 299 TopLevelBlameContext top_level_blame_context_; |
299 | 300 |
300 WebTrialTokenValidatorImpl trial_token_validator_; | 301 WebTrialTokenValidatorImpl trial_token_validator_; |
301 | 302 |
302 scoped_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; | 303 scoped_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; |
303 | 304 |
| 305 scoped_ptr<BlinkServiceRegistryImpl> blink_service_registry_; |
| 306 |
304 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 307 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
305 }; | 308 }; |
306 | 309 |
307 } // namespace content | 310 } // namespace content |
308 | 311 |
309 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 312 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |