| 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 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #include "content/renderer/web_ui_extension.h" | 127 #include "content/renderer/web_ui_extension.h" |
| 128 #include "content/renderer/web_ui_extension_data.h" | 128 #include "content/renderer/web_ui_extension_data.h" |
| 129 #include "content/renderer/webplugin_delegate_proxy.h" | 129 #include "content/renderer/webplugin_delegate_proxy.h" |
| 130 #include "content/renderer/webplugin_impl.h" | 130 #include "content/renderer/webplugin_impl.h" |
| 131 #include "content/renderer/websharedworker_proxy.h" | 131 #include "content/renderer/websharedworker_proxy.h" |
| 132 #include "media/audio/audio_output_device.h" | 132 #include "media/audio/audio_output_device.h" |
| 133 #include "media/base/audio_renderer_mixer_input.h" | 133 #include "media/base/audio_renderer_mixer_input.h" |
| 134 #include "media/base/filter_collection.h" | 134 #include "media/base/filter_collection.h" |
| 135 #include "media/base/media_switches.h" | 135 #include "media/base/media_switches.h" |
| 136 #include "media/filters/audio_renderer_impl.h" | 136 #include "media/filters/audio_renderer_impl.h" |
| 137 #include "media/filters/gpu_video_decoder_factories.h" | 137 #include "media/filters/gpu_video_accelerator_factories.h" |
| 138 #include "net/base/data_url.h" | 138 #include "net/base/data_url.h" |
| 139 #include "net/base/escape.h" | 139 #include "net/base/escape.h" |
| 140 #include "net/base/net_errors.h" | 140 #include "net/base/net_errors.h" |
| 141 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 141 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 142 #include "net/http/http_util.h" | 142 #include "net/http/http_util.h" |
| 143 #include "third_party/WebKit/public/platform/WebCString.h" | 143 #include "third_party/WebKit/public/platform/WebCString.h" |
| 144 #include "third_party/WebKit/public/platform/WebDragData.h" | 144 #include "third_party/WebKit/public/platform/WebDragData.h" |
| 145 #include "third_party/WebKit/public/platform/WebFileSystemType.h" | 145 #include "third_party/WebKit/public/platform/WebFileSystemType.h" |
| 146 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 146 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
| 147 #include "third_party/WebKit/public/platform/WebImage.h" | 147 #include "third_party/WebKit/public/platform/WebImage.h" |
| (...skipping 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2915 return web_media_player_android.release(); | 2915 return web_media_player_android.release(); |
| 2916 #endif // defined(OS_ANDROID) | 2916 #endif // defined(OS_ANDROID) |
| 2917 | 2917 |
| 2918 scoped_refptr<media::AudioRendererSink> sink; | 2918 scoped_refptr<media::AudioRendererSink> sink; |
| 2919 if (!cmd_line->HasSwitch(switches::kDisableAudio)) { | 2919 if (!cmd_line->HasSwitch(switches::kDisableAudio)) { |
| 2920 sink = RenderThreadImpl::current()->GetAudioRendererMixerManager()-> | 2920 sink = RenderThreadImpl::current()->GetAudioRendererMixerManager()-> |
| 2921 CreateInput(routing_id_); | 2921 CreateInput(routing_id_); |
| 2922 DVLOG(1) << "Using AudioRendererMixerManager-provided sink: " << sink.get(); | 2922 DVLOG(1) << "Using AudioRendererMixerManager-provided sink: " << sink.get(); |
| 2923 } | 2923 } |
| 2924 | 2924 |
| 2925 scoped_refptr<media::GpuVideoDecoderFactories> gpu_factories = | 2925 scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories = |
| 2926 RenderThreadImpl::current()->GetGpuFactories( | 2926 RenderThreadImpl::current()->GetGpuFactories( |
| 2927 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy()); | 2927 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy()); |
| 2928 | 2928 |
| 2929 WebMediaPlayerParams params( | 2929 WebMediaPlayerParams params( |
| 2930 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy(), | 2930 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy(), |
| 2931 base::Bind(&ContentRendererClient::DeferMediaLoad, | 2931 base::Bind(&ContentRendererClient::DeferMediaLoad, |
| 2932 base::Unretained(GetContentClient()->renderer()), | 2932 base::Unretained(GetContentClient()->renderer()), |
| 2933 static_cast<RenderView*>(this)), | 2933 static_cast<RenderView*>(this)), |
| 2934 sink, | 2934 sink, |
| 2935 gpu_factories, | 2935 gpu_factories, |
| (...skipping 3389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6325 WebURL url = icon_urls[i].iconURL(); | 6325 WebURL url = icon_urls[i].iconURL(); |
| 6326 if (!url.isEmpty()) | 6326 if (!url.isEmpty()) |
| 6327 urls.push_back(FaviconURL(url, | 6327 urls.push_back(FaviconURL(url, |
| 6328 ToFaviconType(icon_urls[i].iconType()))); | 6328 ToFaviconType(icon_urls[i].iconType()))); |
| 6329 } | 6329 } |
| 6330 SendUpdateFaviconURL(urls); | 6330 SendUpdateFaviconURL(urls); |
| 6331 } | 6331 } |
| 6332 | 6332 |
| 6333 | 6333 |
| 6334 } // namespace content | 6334 } // namespace content |
| OLD | NEW |