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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 #include "content/renderer/renderer_webstoragenamespace_impl.h" | 86 #include "content/renderer/renderer_webstoragenamespace_impl.h" |
87 #include "content/renderer/text_input_client_observer.h" | 87 #include "content/renderer/text_input_client_observer.h" |
88 #include "content/renderer/v8_value_converter_impl.h" | 88 #include "content/renderer/v8_value_converter_impl.h" |
89 #include "content/renderer/web_intents_host.h" | 89 #include "content/renderer/web_intents_host.h" |
90 #include "content/renderer/web_ui_bindings.h" | 90 #include "content/renderer/web_ui_bindings.h" |
91 #include "content/renderer/webplugin_delegate_proxy.h" | 91 #include "content/renderer/webplugin_delegate_proxy.h" |
92 #include "content/renderer/websharedworker_proxy.h" | 92 #include "content/renderer/websharedworker_proxy.h" |
93 #include "media/base/filter_collection.h" | 93 #include "media/base/filter_collection.h" |
94 #include "media/base/media_switches.h" | 94 #include "media/base/media_switches.h" |
95 #include "media/base/message_loop_factory.h" | 95 #include "media/base/message_loop_factory.h" |
96 #include "media/filters/audio_renderer_base.h" | 96 #include "media/filters/audio_renderer_impl.h" |
97 #include "media/filters/gpu_video_decoder.h" | 97 #include "media/filters/gpu_video_decoder.h" |
98 #include "net/base/escape.h" | 98 #include "net/base/escape.h" |
99 #include "net/base/net_errors.h" | 99 #include "net/base/net_errors.h" |
100 #include "net/http/http_util.h" | 100 #include "net/http/http_util.h" |
101 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" | 101 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" |
102 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 102 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
103 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 103 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
104 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 104 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
105 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 105 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" | 106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" |
(...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2167 | 2167 |
2168 // Add in any custom filter factories first. | 2168 // Add in any custom filter factories first. |
2169 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); | 2169 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
2170 if (!cmd_line->HasSwitch(switches::kDisableAudio)) { | 2170 if (!cmd_line->HasSwitch(switches::kDisableAudio)) { |
2171 // audio_source_provider is a "provider" to WebKit, and a sink | 2171 // audio_source_provider is a "provider" to WebKit, and a sink |
2172 // from the perspective of the audio renderer. | 2172 // from the perspective of the audio renderer. |
2173 audio_source_provider = new RenderAudioSourceProvider(); | 2173 audio_source_provider = new RenderAudioSourceProvider(); |
2174 | 2174 |
2175 // Add the chrome specific audio renderer, using audio_source_provider | 2175 // Add the chrome specific audio renderer, using audio_source_provider |
2176 // as the sink. | 2176 // as the sink. |
2177 media::AudioRendererBase* audio_renderer = | 2177 media::AudioRendererImpl* audio_renderer = |
2178 new media::AudioRendererBase(audio_source_provider); | 2178 new media::AudioRendererImpl(audio_source_provider); |
2179 collection->AddAudioRenderer(audio_renderer); | 2179 collection->AddAudioRenderer(audio_renderer); |
2180 } | 2180 } |
2181 | 2181 |
2182 // Currently only cros/arm has any HW video decode support in | 2182 // Currently only cros/arm has any HW video decode support in |
2183 // GpuVideoDecodeAccelerator so we don't even try to use it on other | 2183 // GpuVideoDecodeAccelerator so we don't even try to use it on other |
2184 // platforms. This is a startup-time optimization. When new VDA | 2184 // platforms. This is a startup-time optimization. When new VDA |
2185 // implementations are added, relax the #if above. | 2185 // implementations are added, relax the #if above. |
2186 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) | 2186 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) |
2187 // Note we don't actually use the result of this blind down-cast unless it's | 2187 // Note we don't actually use the result of this blind down-cast unless it's |
2188 // valid (not NULL and of the right type). | 2188 // valid (not NULL and of the right type). |
(...skipping 3051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5240 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5240 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5241 return !!RenderThreadImpl::current()->compositor_thread(); | 5241 return !!RenderThreadImpl::current()->compositor_thread(); |
5242 } | 5242 } |
5243 | 5243 |
5244 void RenderViewImpl::OnJavaBridgeInit() { | 5244 void RenderViewImpl::OnJavaBridgeInit() { |
5245 DCHECK(!java_bridge_dispatcher_.get()); | 5245 DCHECK(!java_bridge_dispatcher_.get()); |
5246 #if defined(ENABLE_JAVA_BRIDGE) | 5246 #if defined(ENABLE_JAVA_BRIDGE) |
5247 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); | 5247 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); |
5248 #endif | 5248 #endif |
5249 } | 5249 } |
OLD | NEW |