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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 097e8c0681ccc77a5f6c3f2c32439b9c929577fa..64127229ee63a0c34fd6ea7983e35d6f7b8a8711 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -152,23 +152,23 @@ class CONTENT_EXPORT ContentRendererClient {
// Allows the embedder to override creating a WebMediaStreamCenter. If it
// returns NULL the content layer will create the stream center.
- virtual blink::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter(
- blink::WebMediaStreamCenterClient* client);
+ virtual std::unique_ptr<blink::WebMediaStreamCenter>
+ OverrideCreateWebMediaStreamCenter(blink::WebMediaStreamCenterClient* client);
// Allows the embedder to override creating a WebRTCPeerConnectionHandler. If
// it returns NULL the content layer will create the connection handler.
- virtual blink::WebRTCPeerConnectionHandler*
+ virtual std::unique_ptr<blink::WebRTCPeerConnectionHandler>
OverrideCreateWebRTCPeerConnectionHandler(
blink::WebRTCPeerConnectionHandlerClient* client);
// Allows the embedder to override creating a WebMIDIAccessor. If it
// returns NULL the content layer will create the MIDI accessor.
- virtual blink::WebMIDIAccessor* OverrideCreateMIDIAccessor(
+ virtual std::unique_ptr<blink::WebMIDIAccessor> OverrideCreateMIDIAccessor(
blink::WebMIDIAccessorClient* client);
// Allows the embedder to override creating a WebAudioDevice. If it
// returns NULL the content layer will create the audio device.
- virtual blink::WebAudioDevice* OverrideCreateAudioDevice(
+ virtual std::unique_ptr<blink::WebAudioDevice> OverrideCreateAudioDevice(
const blink::WebAudioLatencyHint& latency_hint);
// Allows the embedder to override the blink::WebClipboard used. If it
@@ -181,8 +181,8 @@ class CONTENT_EXPORT ContentRendererClient {
// Allows the embedder to override the WebSpeechSynthesizer used.
// If it returns NULL the content layer will provide an engine.
- virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer(
- blink::WebSpeechSynthesizerClient* client);
+ virtual std::unique_ptr<blink::WebSpeechSynthesizer>
+ OverrideSpeechSynthesizer(blink::WebSpeechSynthesizerClient* client);
// Returns true if the renderer process should schedule the idle handler when
// all widgets are hidden.
« no previous file with comments | « content/ppapi_plugin/ppapi_blink_platform_impl.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698