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 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/id_map.h" | 14 #include "base/id_map.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "cc/blink/web_compositor_support_impl.h" | 17 #include "cc/blink/web_compositor_support_impl.h" |
18 #include "content/child/blink_platform_impl.h" | 18 #include "content/child/blink_platform_impl.h" |
19 #include "content/child/child_shared_bitmap_manager.h" | 19 #include "content/child/child_shared_bitmap_manager.h" |
20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
21 #include "content/common/url_loader_factory.mojom.h" | 21 #include "content/common/url_loader_factory.mojom.h" |
| 22 #include "content/renderer/mojo/blink_connector_impl.h" |
22 #include "content/renderer/origin_trials/web_trial_token_validator_impl.h" | 23 #include "content/renderer/origin_trials/web_trial_token_validator_impl.h" |
23 #include "content/renderer/top_level_blame_context.h" | 24 #include "content/renderer/top_level_blame_context.h" |
24 #include "content/renderer/webpublicsuffixlist_impl.h" | 25 #include "content/renderer/webpublicsuffixlist_impl.h" |
25 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" | 26 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" |
26 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 27 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
27 | 28 |
28 namespace IPC { | 29 namespace IPC { |
29 class SyncMessageFilter; | 30 class SyncMessageFilter; |
30 } | 31 } |
31 | 32 |
(...skipping 13 matching lines...) Expand all Loading... |
45 namespace device { | 46 namespace device { |
46 class MotionData; | 47 class MotionData; |
47 class OrientationData; | 48 class OrientationData; |
48 } | 49 } |
49 | 50 |
50 namespace service_manager { | 51 namespace service_manager { |
51 class Connector; | 52 class Connector; |
52 } | 53 } |
53 | 54 |
54 namespace content { | 55 namespace content { |
| 56 class BlinkConnectorImpl; |
55 class BlinkInterfaceProviderImpl; | 57 class BlinkInterfaceProviderImpl; |
56 class LocalStorageCachedAreas; | 58 class LocalStorageCachedAreas; |
57 class PlatformEventObserverBase; | 59 class PlatformEventObserverBase; |
58 class QuotaMessageFilter; | 60 class QuotaMessageFilter; |
59 class RendererClipboardDelegate; | 61 class RendererClipboardDelegate; |
60 class ThreadSafeSender; | 62 class ThreadSafeSender; |
61 class WebClipboardImpl; | 63 class WebClipboardImpl; |
62 class WebDatabaseObserverImpl; | 64 class WebDatabaseObserverImpl; |
63 | 65 |
64 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { | 66 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 const blink::WebURL& top_document_web_url, | 180 const blink::WebURL& top_document_web_url, |
179 blink::WebGraphicsContext3DProvider* share_provider, | 181 blink::WebGraphicsContext3DProvider* share_provider, |
180 blink::Platform::GraphicsInfo* gl_info) override; | 182 blink::Platform::GraphicsInfo* gl_info) override; |
181 blink::WebGraphicsContext3DProvider* | 183 blink::WebGraphicsContext3DProvider* |
182 createSharedOffscreenGraphicsContext3DProvider() override; | 184 createSharedOffscreenGraphicsContext3DProvider() override; |
183 gpu::GpuMemoryBufferManager* getGpuMemoryBufferManager() override; | 185 gpu::GpuMemoryBufferManager* getGpuMemoryBufferManager() override; |
184 std::unique_ptr<cc::SharedBitmap> allocateSharedBitmap( | 186 std::unique_ptr<cc::SharedBitmap> allocateSharedBitmap( |
185 const blink::WebSize& size) override; | 187 const blink::WebSize& size) override; |
186 blink::WebCompositorSupport* compositorSupport() override; | 188 blink::WebCompositorSupport* compositorSupport() override; |
187 blink::WebString convertIDNToUnicode(const blink::WebString& host) override; | 189 blink::WebString convertIDNToUnicode(const blink::WebString& host) override; |
| 190 BlinkConnectorImpl* connector() override; |
188 blink::InterfaceProvider* interfaceProvider() override; | 191 blink::InterfaceProvider* interfaceProvider() override; |
189 void startListening(blink::WebPlatformEventType, | 192 void startListening(blink::WebPlatformEventType, |
190 blink::WebPlatformEventListener*) override; | 193 blink::WebPlatformEventListener*) override; |
191 void stopListening(blink::WebPlatformEventType) override; | 194 void stopListening(blink::WebPlatformEventType) override; |
192 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, | 195 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, |
193 blink::WebStorageQuotaType, | 196 blink::WebStorageQuotaType, |
194 blink::WebStorageQuotaCallbacks) override; | 197 blink::WebStorageQuotaCallbacks) override; |
195 blink::WebThread* currentThread() override; | 198 blink::WebThread* currentThread() override; |
196 blink::BlameContext* topLevelBlameContext() override; | 199 blink::BlameContext* topLevelBlameContext() override; |
197 void recordRappor(const char* metric, | 200 void recordRappor(const char* metric, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 293 |
291 IDMap<std::unique_ptr<PlatformEventObserverBase>> platform_event_observers_; | 294 IDMap<std::unique_ptr<PlatformEventObserverBase>> platform_event_observers_; |
292 | 295 |
293 blink::scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED | 296 blink::scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED |
294 TopLevelBlameContext top_level_blame_context_; | 297 TopLevelBlameContext top_level_blame_context_; |
295 | 298 |
296 WebTrialTokenValidatorImpl trial_token_validator_; | 299 WebTrialTokenValidatorImpl trial_token_validator_; |
297 | 300 |
298 std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; | 301 std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; |
299 | 302 |
| 303 std::unique_ptr<BlinkConnectorImpl> blink_connector_; |
| 304 |
300 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; | 305 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; |
301 | 306 |
302 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_; | 307 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_; |
303 | 308 |
304 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 309 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
305 }; | 310 }; |
306 | 311 |
307 } // namespace content | 312 } // namespace content |
308 | 313 |
309 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 314 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |