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