| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 182 blink::WebString convertIDNToUnicode( |
| 181 const blink::WebString& host, | 183 const blink::WebString& host, |
| 182 const blink::WebString& languages) override; | 184 const blink::WebString& languages) override; |
| 183 void connectToRemoteService(const char* name, | 185 blink::ServiceRegistry* serviceRegistry() override; |
| 184 mojo::ScopedMessagePipeHandle handle) override; | |
| 185 void startListening(blink::WebPlatformEventType, | 186 void startListening(blink::WebPlatformEventType, |
| 186 blink::WebPlatformEventListener*) override; | 187 blink::WebPlatformEventListener*) override; |
| 187 void stopListening(blink::WebPlatformEventType) override; | 188 void stopListening(blink::WebPlatformEventType) override; |
| 188 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, | 189 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, |
| 189 blink::WebStorageQuotaType, | 190 blink::WebStorageQuotaType, |
| 190 blink::WebStorageQuotaCallbacks) override; | 191 blink::WebStorageQuotaCallbacks) override; |
| 191 void vibrate(unsigned int milliseconds) override; | 192 void vibrate(unsigned int milliseconds) override; |
| 192 void cancelVibration() override; | 193 void cancelVibration() override; |
| 193 blink::WebThread* currentThread() override; | 194 blink::WebThread* currentThread() override; |
| 194 blink::BlameContext* topLevelBlameContext() override; | 195 blink::BlameContext* topLevelBlameContext() override; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 297 |
| 297 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 298 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 298 | 299 |
| 299 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED | 300 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED |
| 300 TopLevelBlameContext top_level_blame_context_; | 301 TopLevelBlameContext top_level_blame_context_; |
| 301 | 302 |
| 302 WebTrialTokenValidatorImpl trial_token_validator_; | 303 WebTrialTokenValidatorImpl trial_token_validator_; |
| 303 | 304 |
| 304 scoped_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; | 305 scoped_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; |
| 305 | 306 |
| 307 scoped_ptr<BlinkServiceRegistryImpl> blink_service_registry_; |
| 308 |
| 306 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 309 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 307 }; | 310 }; |
| 308 | 311 |
| 309 } // namespace content | 312 } // namespace content |
| 310 | 313 |
| 311 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 314 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |