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

Side by Side 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, 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 // 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_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Allows the embedder to control when media resources are loaded. Embedders 145 // Allows the embedder to control when media resources are loaded. Embedders
146 // can run |closure| immediately if they don't wish to defer media resource 146 // can run |closure| immediately if they don't wish to defer media resource
147 // loading. If |has_played_media_before| is true, the render frame has 147 // loading. If |has_played_media_before| is true, the render frame has
148 // previously started media playback (i.e. played audio and video). 148 // previously started media playback (i.e. played audio and video).
149 virtual void DeferMediaLoad(RenderFrame* render_frame, 149 virtual void DeferMediaLoad(RenderFrame* render_frame,
150 bool has_played_media_before, 150 bool has_played_media_before,
151 const base::Closure& closure); 151 const base::Closure& closure);
152 152
153 // Allows the embedder to override creating a WebMediaStreamCenter. If it 153 // Allows the embedder to override creating a WebMediaStreamCenter. If it
154 // returns NULL the content layer will create the stream center. 154 // returns NULL the content layer will create the stream center.
155 virtual blink::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( 155 virtual std::unique_ptr<blink::WebMediaStreamCenter>
156 blink::WebMediaStreamCenterClient* client); 156 OverrideCreateWebMediaStreamCenter(blink::WebMediaStreamCenterClient* client);
157 157
158 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If 158 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If
159 // it returns NULL the content layer will create the connection handler. 159 // it returns NULL the content layer will create the connection handler.
160 virtual blink::WebRTCPeerConnectionHandler* 160 virtual std::unique_ptr<blink::WebRTCPeerConnectionHandler>
161 OverrideCreateWebRTCPeerConnectionHandler( 161 OverrideCreateWebRTCPeerConnectionHandler(
162 blink::WebRTCPeerConnectionHandlerClient* client); 162 blink::WebRTCPeerConnectionHandlerClient* client);
163 163
164 // Allows the embedder to override creating a WebMIDIAccessor. If it 164 // Allows the embedder to override creating a WebMIDIAccessor. If it
165 // returns NULL the content layer will create the MIDI accessor. 165 // returns NULL the content layer will create the MIDI accessor.
166 virtual blink::WebMIDIAccessor* OverrideCreateMIDIAccessor( 166 virtual std::unique_ptr<blink::WebMIDIAccessor> OverrideCreateMIDIAccessor(
167 blink::WebMIDIAccessorClient* client); 167 blink::WebMIDIAccessorClient* client);
168 168
169 // Allows the embedder to override creating a WebAudioDevice. If it 169 // Allows the embedder to override creating a WebAudioDevice. If it
170 // returns NULL the content layer will create the audio device. 170 // returns NULL the content layer will create the audio device.
171 virtual blink::WebAudioDevice* OverrideCreateAudioDevice( 171 virtual std::unique_ptr<blink::WebAudioDevice> OverrideCreateAudioDevice(
172 const blink::WebAudioLatencyHint& latency_hint); 172 const blink::WebAudioLatencyHint& latency_hint);
173 173
174 // Allows the embedder to override the blink::WebClipboard used. If it 174 // Allows the embedder to override the blink::WebClipboard used. If it
175 // returns NULL the content layer will handle clipboard interactions. 175 // returns NULL the content layer will handle clipboard interactions.
176 virtual blink::WebClipboard* OverrideWebClipboard(); 176 virtual blink::WebClipboard* OverrideWebClipboard();
177 177
178 // Allows the embedder to override the WebThemeEngine used. If it returns NULL 178 // Allows the embedder to override the WebThemeEngine used. If it returns NULL
179 // the content layer will provide an engine. 179 // the content layer will provide an engine.
180 virtual blink::WebThemeEngine* OverrideThemeEngine(); 180 virtual blink::WebThemeEngine* OverrideThemeEngine();
181 181
182 // Allows the embedder to override the WebSpeechSynthesizer used. 182 // Allows the embedder to override the WebSpeechSynthesizer used.
183 // If it returns NULL the content layer will provide an engine. 183 // If it returns NULL the content layer will provide an engine.
184 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer( 184 virtual std::unique_ptr<blink::WebSpeechSynthesizer>
185 blink::WebSpeechSynthesizerClient* client); 185 OverrideSpeechSynthesizer(blink::WebSpeechSynthesizerClient* client);
186 186
187 // Returns true if the renderer process should schedule the idle handler when 187 // Returns true if the renderer process should schedule the idle handler when
188 // all widgets are hidden. 188 // all widgets are hidden.
189 virtual bool RunIdleHandlerWhenWidgetsHidden(); 189 virtual bool RunIdleHandlerWhenWidgetsHidden();
190 190
191 // Returns true if the renderer process should allow shared timer suspension 191 // Returns true if the renderer process should allow shared timer suspension
192 // after the process has been backgrounded. Defaults to false. 192 // after the process has been backgrounded. Defaults to false.
193 virtual bool AllowTimerSuspensionWhenProcessBackgrounded(); 193 virtual bool AllowTimerSuspensionWhenProcessBackgrounded();
194 194
195 // Returns true if a popup window should be allowed. 195 // Returns true if a popup window should be allowed.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 virtual std::unique_ptr<base::TaskScheduler::InitParams> 368 virtual std::unique_ptr<base::TaskScheduler::InitParams>
369 GetTaskSchedulerInitParams(); 369 GetTaskSchedulerInitParams();
370 370
371 // Returns true if the media pipeline can be suspended, or false otherwise. 371 // Returns true if the media pipeline can be suspended, or false otherwise.
372 virtual bool AllowMediaSuspend(); 372 virtual bool AllowMediaSuspend();
373 }; 373 };
374 374
375 } // namespace content 375 } // namespace content
376 376
377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« 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