Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: content/renderer/renderer_blink_platform_impl.h

Issue 1830883002: Add blink::ServiceRegistry and expose it from LocalFrame and Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class WebSecurityOrigin; 42 class WebSecurityOrigin;
43 class WebServiceWorkerCacheStorage; 43 class WebServiceWorkerCacheStorage;
44 } 44 }
45 45
46 namespace scheduler { 46 namespace scheduler {
47 class RendererScheduler; 47 class RendererScheduler;
48 class WebThreadImplForRendererScheduler; 48 class WebThreadImplForRendererScheduler;
49 } 49 }
50 50
51 namespace content { 51 namespace content {
52 class BlinkServiceRegistryImpl;
52 class DeviceLightEventPump; 53 class DeviceLightEventPump;
53 class DeviceMotionEventPump; 54 class DeviceMotionEventPump;
54 class DeviceOrientationEventPump; 55 class DeviceOrientationEventPump;
55 class LocalStorageCachedAreas; 56 class LocalStorageCachedAreas;
56 class PlatformEventObserverBase; 57 class PlatformEventObserverBase;
57 class QuotaMessageFilter; 58 class QuotaMessageFilter;
58 class RendererClipboardDelegate; 59 class RendererClipboardDelegate;
59 class RenderView; 60 class RenderView;
61 class ServiceRegistry;
60 class ThreadSafeSender; 62 class ThreadSafeSender;
61 class WebClipboardImpl; 63 class WebClipboardImpl;
62 class WebDatabaseObserverImpl; 64 class WebDatabaseObserverImpl;
63 class WebFileSystemImpl; 65 class WebFileSystemImpl;
64 66
65 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { 67 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
66 public: 68 public:
67 explicit RendererBlinkPlatformImpl( 69 RendererBlinkPlatformImpl(scheduler::RendererScheduler* renderer_scheduler,
68 scheduler::RendererScheduler* renderer_scheduler); 70 base::WeakPtr<ServiceRegistry> service_registry);
69 ~RendererBlinkPlatformImpl() override; 71 ~RendererBlinkPlatformImpl() override;
70 72
71 // Shutdown must be called just prior to shutting down blink. 73 // Shutdown must be called just prior to shutting down blink.
72 void Shutdown(); 74 void Shutdown();
73 75
74 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { 76 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) {
75 plugin_refresh_allowed_ = plugin_refresh_allowed; 77 plugin_refresh_allowed_ = plugin_refresh_allowed;
76 } 78 }
77 // Platform methods: 79 // Platform methods:
78 blink::WebClipboard* clipboard() override; 80 blink::WebClipboard* clipboard() override;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 blink::WebGraphicsContext3DProvider* createOffscreenGraphicsContext3DProvider( 173 blink::WebGraphicsContext3DProvider* createOffscreenGraphicsContext3DProvider(
172 const blink::WebGraphicsContext3D::Attributes& attributes, 174 const blink::WebGraphicsContext3D::Attributes& attributes,
173 blink::WebGraphicsContext3DProvider* share_provider, 175 blink::WebGraphicsContext3DProvider* share_provider,
174 blink::Platform::GraphicsInfo* gl_info) override; 176 blink::Platform::GraphicsInfo* gl_info) override;
175 blink::WebGraphicsContext3DProvider* 177 blink::WebGraphicsContext3DProvider*
176 createSharedOffscreenGraphicsContext3DProvider() override; 178 createSharedOffscreenGraphicsContext3DProvider() override;
177 blink::WebCompositorSupport* compositorSupport() override; 179 blink::WebCompositorSupport* compositorSupport() override;
178 blink::WebString convertIDNToUnicode( 180 blink::WebString convertIDNToUnicode(
179 const blink::WebString& host, 181 const blink::WebString& host,
180 const blink::WebString& languages) override; 182 const blink::WebString& languages) 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 void recordRappor(const char* metric, 193 void recordRappor(const char* metric,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 device::VibrationManagerPtr vibration_manager_; 293 device::VibrationManagerPtr vibration_manager_;
293 294
294 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 295 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
295 296
296 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED 297 scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED
297 298
298 WebTrialTokenValidatorImpl trial_token_validator_; 299 WebTrialTokenValidatorImpl trial_token_validator_;
299 300
300 scoped_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; 301 scoped_ptr<LocalStorageCachedAreas> local_storage_cached_areas_;
301 302
303 scoped_ptr<BlinkServiceRegistryImpl> blink_service_registry_;
304
302 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 305 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
303 }; 306 };
304 307
305 } // namespace content 308 } // namespace content
306 309
307 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 310 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698