Index: content/renderer/renderer_blink_platform_impl.h |
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h |
index 4180a562daf74a98db4d8a76f7db2c318e00f950..640130fdcac35e73798e4bfd5c31fb60d13ed22d 100644 |
--- a/content/renderer/renderer_blink_platform_impl.h |
+++ b/content/renderer/renderer_blink_platform_impl.h |
@@ -81,7 +81,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
blink::WebSandboxSupport* GetSandboxSupport() override; |
blink::WebCookieJar* CookieJar() override; |
blink::WebThemeEngine* ThemeEngine() override; |
- blink::WebSpeechSynthesizer* CreateSpeechSynthesizer( |
+ std::unique_ptr<blink::WebSpeechSynthesizer> CreateSpeechSynthesizer( |
blink::WebSpeechSynthesizerClient* client) override; |
virtual bool sandboxEnabled(); |
unsigned long long VisitedLinkHash(const char* canonicalURL, |
@@ -104,7 +104,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
const blink::WebString& cacheStorageCacheName) override; |
blink::WebString DefaultLocale() override; |
void SuddenTerminationChanged(bool enabled) override; |
- blink::WebStorageNamespace* CreateLocalStorageNamespace() override; |
+ std::unique_ptr<blink::WebStorageNamespace> CreateLocalStorageNamespace() |
+ override; |
blink::Platform::FileHandle DatabaseOpenFile( |
const blink::WebString& vfs_file_name, |
int desired_flags) override; |
@@ -127,7 +128,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
blink::WebPublicSuffixList* PublicSuffixList() override; |
blink::WebScrollbarBehavior* ScrollbarBehavior() override; |
blink::WebIDBFactory* IdbFactory() override; |
- blink::WebServiceWorkerCacheStorage* CacheStorage( |
+ std::unique_ptr<blink::WebServiceWorkerCacheStorage> CreateCacheStorage( |
const blink::WebSecurityOrigin& security_origin) override; |
blink::WebFileSystem* FileSystem() override; |
blink::WebString FileSystemCreateOriginIdentifier( |
@@ -141,7 +142,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
unsigned AudioHardwareOutputChannels() override; |
blink::WebDatabaseObserver* DatabaseObserver() override; |
- blink::WebAudioDevice* CreateAudioDevice( |
+ std::unique_ptr<blink::WebAudioDevice> CreateAudioDevice( |
unsigned input_channels, |
unsigned channels, |
const blink::WebAudioLatencyHint& latency_hint, |
@@ -153,18 +154,21 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
const char* audio_file_data, |
size_t data_size) override; |
- blink::WebMIDIAccessor* CreateMIDIAccessor( |
+ std::unique_ptr<blink::WebMIDIAccessor> CreateMIDIAccessor( |
blink::WebMIDIAccessorClient* client) override; |
blink::WebBlobRegistry* GetBlobRegistry() override; |
void SampleGamepads(device::Gamepads&) override; |
- blink::WebRTCPeerConnectionHandler* CreateRTCPeerConnectionHandler( |
+ std::unique_ptr<blink::WebRTCPeerConnectionHandler> |
+ CreateRTCPeerConnectionHandler( |
blink::WebRTCPeerConnectionHandlerClient* client) override; |
- blink::WebRTCCertificateGenerator* CreateRTCCertificateGenerator() override; |
- blink::WebMediaRecorderHandler* CreateMediaRecorderHandler() override; |
- blink::WebMediaStreamCenter* CreateMediaStreamCenter( |
+ std::unique_ptr<blink::WebRTCCertificateGenerator> |
+ CreateRTCCertificateGenerator() override; |
+ std::unique_ptr<blink::WebMediaRecorderHandler> CreateMediaRecorderHandler() |
+ override; |
+ std::unique_ptr<blink::WebMediaStreamCenter> CreateMediaStreamCenter( |
blink::WebMediaStreamCenterClient* client) override; |
- blink::WebCanvasCaptureHandler* CreateCanvasCaptureHandler( |
+ std::unique_ptr<blink::WebCanvasCaptureHandler> CreateCanvasCaptureHandler( |
const blink::WebSize& size, |
double frame_rate, |
blink::WebMediaStreamTrack* track) override; |
@@ -174,13 +178,15 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
void CreateHTMLAudioElementCapturer( |
blink::WebMediaStream* web_media_stream, |
blink::WebMediaPlayer* web_media_player) override; |
- blink::WebImageCaptureFrameGrabber* CreateImageCaptureFrameGrabber() override; |
- blink::WebGraphicsContext3DProvider* CreateOffscreenGraphicsContext3DProvider( |
+ std::unique_ptr<blink::WebImageCaptureFrameGrabber> |
+ CreateImageCaptureFrameGrabber() override; |
+ std::unique_ptr<blink::WebGraphicsContext3DProvider> |
+ CreateOffscreenGraphicsContext3DProvider( |
const blink::Platform::ContextAttributes& attributes, |
const blink::WebURL& top_document_web_url, |
blink::WebGraphicsContext3DProvider* share_provider, |
blink::Platform::GraphicsInfo* gl_info) override; |
- blink::WebGraphicsContext3DProvider* |
+ std::unique_ptr<blink::WebGraphicsContext3DProvider> |
CreateSharedOffscreenGraphicsContext3DProvider() override; |
gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; |
std::unique_ptr<cc::SharedBitmap> AllocateSharedBitmap( |