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

Side by Side Diff: third_party/WebKit/Source/platform/exported/Platform.cpp

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "base/trace_event/memory_dump_manager.h" 36 #include "base/trace_event/memory_dump_manager.h"
37 #include "platform/Histogram.h" 37 #include "platform/Histogram.h"
38 #include "platform/MemoryCoordinator.h" 38 #include "platform/MemoryCoordinator.h"
39 #include "platform/PartitionAllocMemoryDumpProvider.h" 39 #include "platform/PartitionAllocMemoryDumpProvider.h"
40 #include "platform/fonts/FontCacheMemoryDumpProvider.h" 40 #include "platform/fonts/FontCacheMemoryDumpProvider.h"
41 #include "platform/heap/BlinkGCMemoryDumpProvider.h" 41 #include "platform/heap/BlinkGCMemoryDumpProvider.h"
42 #include "platform/heap/GCTaskRunner.h" 42 #include "platform/heap/GCTaskRunner.h"
43 #include "platform/instrumentation/tracing/MemoryCacheDumpProvider.h" 43 #include "platform/instrumentation/tracing/MemoryCacheDumpProvider.h"
44 #include "platform/wtf/HashMap.h" 44 #include "platform/wtf/HashMap.h"
45 #include "public/platform/InterfaceProvider.h" 45 #include "public/platform/InterfaceProvider.h"
46 #include "public/platform/WebCanvasCaptureHandler.h"
47 #include "public/platform/WebFeaturePolicy.h"
48 #include "public/platform/WebGestureCurve.h"
49 #include "public/platform/WebGraphicsContext3DProvider.h"
50 #include "public/platform/WebImageCaptureFrameGrabber.h"
51 #include "public/platform/WebMediaRecorderHandler.h"
52 #include "public/platform/WebMediaStreamCenter.h"
46 #include "public/platform/WebPrerenderingSupport.h" 53 #include "public/platform/WebPrerenderingSupport.h"
54 #include "public/platform/WebRTCCertificateGenerator.h"
55 #include "public/platform/WebRTCPeerConnectionHandler.h"
56 #include "public/platform/WebStorageNamespace.h"
57 #include "public/platform/WebThread.h"
58 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h"
59 #include "public/platform/modules/webmidi/WebMIDIAccessor.h"
47 #include "services/service_manager/public/cpp/connector.h" 60 #include "services/service_manager/public/cpp/connector.h"
48 61
49 namespace blink { 62 namespace blink {
50 63
51 namespace { 64 namespace {
52 65
53 class DefaultConnector { 66 class DefaultConnector {
54 public: 67 public:
55 DefaultConnector() { 68 DefaultConnector() {
56 service_manager::mojom::ConnectorRequest request; 69 service_manager::mojom::ConnectorRequest request;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 154
142 service_manager::Connector* Platform::GetConnector() { 155 service_manager::Connector* Platform::GetConnector() {
143 DEFINE_STATIC_LOCAL(DefaultConnector, connector, ()); 156 DEFINE_STATIC_LOCAL(DefaultConnector, connector, ());
144 return connector.Get(); 157 return connector.Get();
145 } 158 }
146 159
147 InterfaceProvider* Platform::GetInterfaceProvider() { 160 InterfaceProvider* Platform::GetInterfaceProvider() {
148 return InterfaceProvider::GetEmptyInterfaceProvider(); 161 return InterfaceProvider::GetEmptyInterfaceProvider();
149 } 162 }
150 163
164 std::unique_ptr<WebMIDIAccessor> Platform::CreateMIDIAccessor(
165 WebMIDIAccessorClient*) {
166 return nullptr;
167 }
168
169 std::unique_ptr<WebStorageNamespace> Platform::CreateLocalStorageNamespace() {
170 return nullptr;
171 }
172
173 std::unique_ptr<WebServiceWorkerCacheStorage> Platform::CreateCacheStorage(
174 const WebSecurityOrigin&) {
175 return nullptr;
176 }
177
178 std::unique_ptr<WebThread> Platform::CreateThread(const char* name) {
179 return nullptr;
180 }
181
182 std::unique_ptr<WebGraphicsContext3DProvider>
183 Platform::CreateOffscreenGraphicsContext3DProvider(
184 const Platform::ContextAttributes&,
185 const WebURL& top_document_url,
186 WebGraphicsContext3DProvider* share_context,
187 Platform::GraphicsInfo*) {
188 return nullptr;
189 };
190
191 std::unique_ptr<WebGraphicsContext3DProvider>
192 Platform::CreateSharedOffscreenGraphicsContext3DProvider() {
193 return nullptr;
194 }
195
196 std::unique_ptr<WebGestureCurve> Platform::CreateFlingAnimationCurve(
197 WebGestureDevice device_source,
198 const WebFloatPoint& velocity,
199 const WebSize& cumulative_scroll) {
200 return nullptr;
201 }
202
203 std::unique_ptr<WebRTCPeerConnectionHandler>
204 Platform::CreateRTCPeerConnectionHandler(WebRTCPeerConnectionHandlerClient*) {
205 return nullptr;
206 }
207
208 std::unique_ptr<WebMediaRecorderHandler>
209 Platform::CreateMediaRecorderHandler() {
210 return nullptr;
211 }
212
213 std::unique_ptr<WebRTCCertificateGenerator>
214 Platform::CreateRTCCertificateGenerator() {
215 return nullptr;
216 }
217
218 std::unique_ptr<WebMediaStreamCenter> Platform::CreateMediaStreamCenter(
219 WebMediaStreamCenterClient*) {
220 return nullptr;
221 }
222
223 std::unique_ptr<WebCanvasCaptureHandler> Platform::CreateCanvasCaptureHandler(
224 const WebSize&,
225 double,
226 WebMediaStreamTrack*) {
227 return nullptr;
228 }
229
230 std::unique_ptr<WebImageCaptureFrameGrabber>
231 Platform::CreateImageCaptureFrameGrabber() {
232 return nullptr;
233 }
234
235 std::unique_ptr<WebFeaturePolicy> Platform::CreateFeaturePolicy(
236 const WebFeaturePolicy* parent_policy,
237 const WebParsedFeaturePolicy& container_policy,
238 const WebParsedFeaturePolicy& policy_header,
239 const WebSecurityOrigin&) {
240 return nullptr;
241 }
242
243 std::unique_ptr<WebFeaturePolicy> Platform::DuplicateFeaturePolicyWithOrigin(
244 const WebFeaturePolicy&,
245 const WebSecurityOrigin&) {
246 return nullptr;
247 }
248
151 } // namespace blink 249 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698