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

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

Issue 2775483003: Use public Service Manager Connector API in Blink (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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"
23 #include "content/renderer/origin_trials/web_trial_token_validator_impl.h" 22 #include "content/renderer/origin_trials/web_trial_token_validator_impl.h"
24 #include "content/renderer/top_level_blame_context.h" 23 #include "content/renderer/top_level_blame_context.h"
25 #include "content/renderer/webpublicsuffixlist_impl.h" 24 #include "content/renderer/webpublicsuffixlist_impl.h"
26 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" 25 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h"
27 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h" 26 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h"
28 27
29 namespace IPC { 28 namespace IPC {
30 class SyncMessageFilter; 29 class SyncMessageFilter;
31 } 30 }
32 31
(...skipping 13 matching lines...) Expand all
46 namespace device { 45 namespace device {
47 class MotionData; 46 class MotionData;
48 class OrientationData; 47 class OrientationData;
49 } 48 }
50 49
51 namespace service_manager { 50 namespace service_manager {
52 class Connector; 51 class Connector;
53 } 52 }
54 53
55 namespace content { 54 namespace content {
56 class BlinkConnectorImpl;
57 class BlinkInterfaceProviderImpl; 55 class BlinkInterfaceProviderImpl;
58 class LocalStorageCachedAreas; 56 class LocalStorageCachedAreas;
59 class PlatformEventObserverBase; 57 class PlatformEventObserverBase;
60 class QuotaMessageFilter; 58 class QuotaMessageFilter;
61 class RendererClipboardDelegate; 59 class RendererClipboardDelegate;
62 class ThreadSafeSender; 60 class ThreadSafeSender;
63 class WebClipboardImpl; 61 class WebClipboardImpl;
64 class WebDatabaseObserverImpl; 62 class WebDatabaseObserverImpl;
65 63
66 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { 64 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const blink::WebURL& top_document_web_url, 179 const blink::WebURL& top_document_web_url,
182 blink::WebGraphicsContext3DProvider* share_provider, 180 blink::WebGraphicsContext3DProvider* share_provider,
183 blink::Platform::GraphicsInfo* gl_info) override; 181 blink::Platform::GraphicsInfo* gl_info) override;
184 blink::WebGraphicsContext3DProvider* 182 blink::WebGraphicsContext3DProvider*
185 createSharedOffscreenGraphicsContext3DProvider() override; 183 createSharedOffscreenGraphicsContext3DProvider() override;
186 gpu::GpuMemoryBufferManager* getGpuMemoryBufferManager() override; 184 gpu::GpuMemoryBufferManager* getGpuMemoryBufferManager() override;
187 std::unique_ptr<cc::SharedBitmap> allocateSharedBitmap( 185 std::unique_ptr<cc::SharedBitmap> allocateSharedBitmap(
188 const blink::WebSize& size) override; 186 const blink::WebSize& size) override;
189 blink::WebCompositorSupport* compositorSupport() override; 187 blink::WebCompositorSupport* compositorSupport() override;
190 blink::WebString convertIDNToUnicode(const blink::WebString& host) override; 188 blink::WebString convertIDNToUnicode(const blink::WebString& host) override;
191 BlinkConnectorImpl* connector() override; 189 service_manager::Connector* connector() override;
192 blink::InterfaceProvider* interfaceProvider() override; 190 blink::InterfaceProvider* interfaceProvider() override;
193 void startListening(blink::WebPlatformEventType, 191 void startListening(blink::WebPlatformEventType,
194 blink::WebPlatformEventListener*) override; 192 blink::WebPlatformEventListener*) override;
195 void stopListening(blink::WebPlatformEventType) override; 193 void stopListening(blink::WebPlatformEventType) override;
196 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition, 194 void queryStorageUsageAndQuota(const blink::WebURL& storage_partition,
197 blink::WebStorageQuotaType, 195 blink::WebStorageQuotaType,
198 blink::WebStorageQuotaCallbacks) override; 196 blink::WebStorageQuotaCallbacks) override;
199 blink::WebThread* currentThread() override; 197 blink::WebThread* currentThread() override;
200 blink::BlameContext* topLevelBlameContext() override; 198 blink::BlameContext* topLevelBlameContext() override;
201 void recordRappor(const char* metric, 199 void recordRappor(const char* metric,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // Factory that takes a type and return PlatformEventObserverBase that matches 243 // Factory that takes a type and return PlatformEventObserverBase that matches
246 // it. 244 // it.
247 static std::unique_ptr<PlatformEventObserverBase> 245 static std::unique_ptr<PlatformEventObserverBase>
248 CreatePlatformEventObserverFromType(blink::WebPlatformEventType type); 246 CreatePlatformEventObserverFromType(blink::WebPlatformEventType type);
249 247
250 // Use the data previously set via SetMockDevice...DataForTesting() and send 248 // Use the data previously set via SetMockDevice...DataForTesting() and send
251 // them to the registered listener. 249 // them to the registered listener.
252 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); 250 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type);
253 251
254 std::unique_ptr<blink::WebThread> main_thread_; 252 std::unique_ptr<blink::WebThread> main_thread_;
253 std::unique_ptr<service_manager::Connector> connector_;
255 254
256 std::unique_ptr<RendererClipboardDelegate> clipboard_delegate_; 255 std::unique_ptr<RendererClipboardDelegate> clipboard_delegate_;
257 std::unique_ptr<WebClipboardImpl> clipboard_; 256 std::unique_ptr<WebClipboardImpl> clipboard_;
258 257
259 class FileUtilities; 258 class FileUtilities;
260 std::unique_ptr<FileUtilities> file_utilities_; 259 std::unique_ptr<FileUtilities> file_utilities_;
261 260
262 #if !defined(OS_ANDROID) && !defined(OS_WIN) 261 #if !defined(OS_ANDROID) && !defined(OS_WIN)
263 class SandboxSupport; 262 class SandboxSupport;
264 std::unique_ptr<SandboxSupport> sandbox_support_; 263 std::unique_ptr<SandboxSupport> sandbox_support_;
(...skipping 29 matching lines...) Expand all
294 293
295 IDMap<std::unique_ptr<PlatformEventObserverBase>> platform_event_observers_; 294 IDMap<std::unique_ptr<PlatformEventObserverBase>> platform_event_observers_;
296 295
297 blink::scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED 296 blink::scheduler::RendererScheduler* renderer_scheduler_; // NOT OWNED
298 TopLevelBlameContext top_level_blame_context_; 297 TopLevelBlameContext top_level_blame_context_;
299 298
300 WebTrialTokenValidatorImpl trial_token_validator_; 299 WebTrialTokenValidatorImpl trial_token_validator_;
301 300
302 std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; 301 std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_;
303 302
304 std::unique_ptr<BlinkConnectorImpl> blink_connector_;
305
306 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; 303 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_;
307 304
308 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_; 305 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_;
309 306
310 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 307 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
311 }; 308 };
312 309
313 } // namespace content 310 } // namespace content
314 311
315 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 312 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698