| OLD | NEW |
| 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 Loading... |
| 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" | |
| 53 #include "public/platform/WebPrerenderingSupport.h" | 46 #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" | |
| 60 #include "services/service_manager/public/cpp/connector.h" | 47 #include "services/service_manager/public/cpp/connector.h" |
| 61 | 48 |
| 62 namespace blink { | 49 namespace blink { |
| 63 | 50 |
| 64 namespace { | 51 namespace { |
| 65 | 52 |
| 66 class DefaultConnector { | 53 class DefaultConnector { |
| 67 public: | 54 public: |
| 68 DefaultConnector() { | 55 DefaultConnector() { |
| 69 service_manager::mojom::ConnectorRequest request; | 56 service_manager::mojom::ConnectorRequest request; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 141 |
| 155 service_manager::Connector* Platform::GetConnector() { | 142 service_manager::Connector* Platform::GetConnector() { |
| 156 DEFINE_STATIC_LOCAL(DefaultConnector, connector, ()); | 143 DEFINE_STATIC_LOCAL(DefaultConnector, connector, ()); |
| 157 return connector.Get(); | 144 return connector.Get(); |
| 158 } | 145 } |
| 159 | 146 |
| 160 InterfaceProvider* Platform::GetInterfaceProvider() { | 147 InterfaceProvider* Platform::GetInterfaceProvider() { |
| 161 return InterfaceProvider::GetEmptyInterfaceProvider(); | 148 return InterfaceProvider::GetEmptyInterfaceProvider(); |
| 162 } | 149 } |
| 163 | 150 |
| 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 | |
| 249 } // namespace blink | 151 } // namespace blink |
| OLD | NEW |