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

Side by Side Diff: content/public/renderer/content_renderer_client.cc

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 #include "content/public/renderer/content_renderer_client.h" 5 #include "content/public/renderer/content_renderer_client.h"
6 6
7 #include "content/public/renderer/media_stream_renderer_factory.h" 7 #include "content/public/renderer/media_stream_renderer_factory.h"
8 #include "media/base/renderer_factory.h" 8 #include "media/base/renderer_factory.h"
9 #include "third_party/WebKit/public/platform/WebAudioDevice.h"
10 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
11 #include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h"
12 #include "third_party/WebKit/public/platform/WebSpeechSynthesizer.h"
13 #include "third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessor.h"
9 #include "ui/gfx/icc_profile.h" 14 #include "ui/gfx/icc_profile.h"
10 #include "url/gurl.h" 15 #include "url/gurl.h"
11 16
12 namespace content { 17 namespace content {
13 18
14 SkBitmap* ContentRendererClient::GetSadPluginBitmap() { 19 SkBitmap* ContentRendererClient::GetSadPluginBitmap() {
15 return nullptr; 20 return nullptr;
16 } 21 }
17 22
18 SkBitmap* ContentRendererClient::GetSadWebViewBitmap() { 23 SkBitmap* ContentRendererClient::GetSadWebViewBitmap() {
(...skipping 24 matching lines...) Expand all
43 return false; 48 return false;
44 } 49 }
45 50
46 void ContentRendererClient::DeferMediaLoad( 51 void ContentRendererClient::DeferMediaLoad(
47 RenderFrame* render_frame, 52 RenderFrame* render_frame,
48 bool has_played_media_before, 53 bool has_played_media_before,
49 const base::Closure& closure) { 54 const base::Closure& closure) {
50 closure.Run(); 55 closure.Run();
51 } 56 }
52 57
53 blink::WebMediaStreamCenter* 58 std::unique_ptr<blink::WebMediaStreamCenter>
54 ContentRendererClient::OverrideCreateWebMediaStreamCenter( 59 ContentRendererClient::OverrideCreateWebMediaStreamCenter(
55 blink::WebMediaStreamCenterClient* client) { 60 blink::WebMediaStreamCenterClient* client) {
56 return nullptr; 61 return nullptr;
57 } 62 }
58 63
59 blink::WebRTCPeerConnectionHandler* 64 std::unique_ptr<blink::WebRTCPeerConnectionHandler>
60 ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler( 65 ContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler(
61 blink::WebRTCPeerConnectionHandlerClient* client) { 66 blink::WebRTCPeerConnectionHandlerClient* client) {
62 return nullptr; 67 return nullptr;
63 } 68 }
64 69
65 blink::WebMIDIAccessor* 70 std::unique_ptr<blink::WebMIDIAccessor>
66 ContentRendererClient::OverrideCreateMIDIAccessor( 71 ContentRendererClient::OverrideCreateMIDIAccessor(
67 blink::WebMIDIAccessorClient* client) { 72 blink::WebMIDIAccessorClient* client) {
68 return nullptr; 73 return nullptr;
69 } 74 }
70 75
71 blink::WebAudioDevice* ContentRendererClient::OverrideCreateAudioDevice( 76 std::unique_ptr<blink::WebAudioDevice>
77 ContentRendererClient::OverrideCreateAudioDevice(
72 const blink::WebAudioLatencyHint& latency_hint) { 78 const blink::WebAudioLatencyHint& latency_hint) {
73 return nullptr; 79 return nullptr;
74 } 80 }
75 81
76 blink::WebClipboard* ContentRendererClient::OverrideWebClipboard() { 82 blink::WebClipboard* ContentRendererClient::OverrideWebClipboard() {
77 return nullptr; 83 return nullptr;
78 } 84 }
79 85
80 blink::WebThemeEngine* ContentRendererClient::OverrideThemeEngine() { 86 blink::WebThemeEngine* ContentRendererClient::OverrideThemeEngine() {
81 return nullptr; 87 return nullptr;
82 } 88 }
83 89
84 blink::WebSpeechSynthesizer* ContentRendererClient::OverrideSpeechSynthesizer( 90 std::unique_ptr<blink::WebSpeechSynthesizer>
91 ContentRendererClient::OverrideSpeechSynthesizer(
85 blink::WebSpeechSynthesizerClient* client) { 92 blink::WebSpeechSynthesizerClient* client) {
86 return nullptr; 93 return nullptr;
87 } 94 }
88 95
89 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { 96 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
90 return true; 97 return true;
91 } 98 }
92 99
93 bool ContentRendererClient::AllowTimerSuspensionWhenProcessBackgrounded() { 100 bool ContentRendererClient::AllowTimerSuspensionWhenProcessBackgrounded() {
94 return false; 101 return false;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 std::unique_ptr<base::TaskScheduler::InitParams> 249 std::unique_ptr<base::TaskScheduler::InitParams>
243 ContentRendererClient::GetTaskSchedulerInitParams() { 250 ContentRendererClient::GetTaskSchedulerInitParams() {
244 return nullptr; 251 return nullptr;
245 } 252 }
246 253
247 bool ContentRendererClient::AllowMediaSuspend() { 254 bool ContentRendererClient::AllowMediaSuspend() {
248 return true; 255 return true;
249 } 256 }
250 257
251 } // namespace content 258 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/input/input_handler_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698