| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 #include "content/renderer/text_input_client_observer.h" | 125 #include "content/renderer/text_input_client_observer.h" |
| 126 #include "content/renderer/v8_value_converter_impl.h" | 126 #include "content/renderer/v8_value_converter_impl.h" |
| 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/websharedworker_proxy.h" | 129 #include "content/renderer/websharedworker_proxy.h" |
| 130 #include "media/audio/audio_output_device.h" | 130 #include "media/audio/audio_output_device.h" |
| 131 #include "media/base/audio_renderer_mixer_input.h" | 131 #include "media/base/audio_renderer_mixer_input.h" |
| 132 #include "media/base/filter_collection.h" | 132 #include "media/base/filter_collection.h" |
| 133 #include "media/base/media_switches.h" | 133 #include "media/base/media_switches.h" |
| 134 #include "media/filters/audio_renderer_impl.h" | 134 #include "media/filters/audio_renderer_impl.h" |
| 135 #include "media/filters/gpu_video_decoder_factories.h" | 135 #include "media/filters/gpu_video_accelerator_factories.h" |
| 136 #include "net/base/data_url.h" | 136 #include "net/base/data_url.h" |
| 137 #include "net/base/escape.h" | 137 #include "net/base/escape.h" |
| 138 #include "net/base/net_errors.h" | 138 #include "net/base/net_errors.h" |
| 139 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 139 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 140 #include "net/http/http_util.h" | 140 #include "net/http/http_util.h" |
| 141 #include "third_party/WebKit/public/platform/WebCString.h" | 141 #include "third_party/WebKit/public/platform/WebCString.h" |
| 142 #include "third_party/WebKit/public/platform/WebDragData.h" | 142 #include "third_party/WebKit/public/platform/WebDragData.h" |
| 143 #include "third_party/WebKit/public/platform/WebFileSystemType.h" | 143 #include "third_party/WebKit/public/platform/WebFileSystemType.h" |
| 144 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 144 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
| 145 #include "third_party/WebKit/public/platform/WebImage.h" | 145 #include "third_party/WebKit/public/platform/WebImage.h" |
| (...skipping 2913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3059 return web_media_player_android.release(); | 3059 return web_media_player_android.release(); |
| 3060 #endif // defined(OS_ANDROID) | 3060 #endif // defined(OS_ANDROID) |
| 3061 | 3061 |
| 3062 scoped_refptr<media::AudioRendererSink> sink; | 3062 scoped_refptr<media::AudioRendererSink> sink; |
| 3063 if (!cmd_line->HasSwitch(switches::kDisableAudio)) { | 3063 if (!cmd_line->HasSwitch(switches::kDisableAudio)) { |
| 3064 sink = RenderThreadImpl::current()->GetAudioRendererMixerManager()-> | 3064 sink = RenderThreadImpl::current()->GetAudioRendererMixerManager()-> |
| 3065 CreateInput(routing_id_); | 3065 CreateInput(routing_id_); |
| 3066 DVLOG(1) << "Using AudioRendererMixerManager-provided sink: " << sink.get(); | 3066 DVLOG(1) << "Using AudioRendererMixerManager-provided sink: " << sink.get(); |
| 3067 } | 3067 } |
| 3068 | 3068 |
| 3069 scoped_refptr<media::GpuVideoDecoderFactories> gpu_factories = | 3069 scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories = |
| 3070 RenderThreadImpl::current()->GetGpuFactories( | 3070 RenderThreadImpl::current()->GetGpuFactories( |
| 3071 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy()); | 3071 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy()); |
| 3072 | 3072 |
| 3073 WebMediaPlayerParams params( | 3073 WebMediaPlayerParams params( |
| 3074 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy(), | 3074 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy(), |
| 3075 base::Bind(&ContentRendererClient::DeferMediaLoad, | 3075 base::Bind(&ContentRendererClient::DeferMediaLoad, |
| 3076 base::Unretained(GetContentClient()->renderer()), | 3076 base::Unretained(GetContentClient()->renderer()), |
| 3077 static_cast<RenderView*>(this)), | 3077 static_cast<RenderView*>(this)), |
| 3078 sink, | 3078 sink, |
| 3079 gpu_factories, | 3079 gpu_factories, |
| (...skipping 3471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6551 WebURL url = icon_urls[i].iconURL(); | 6551 WebURL url = icon_urls[i].iconURL(); |
| 6552 if (!url.isEmpty()) | 6552 if (!url.isEmpty()) |
| 6553 urls.push_back(FaviconURL(url, | 6553 urls.push_back(FaviconURL(url, |
| 6554 ToFaviconType(icon_urls[i].iconType()))); | 6554 ToFaviconType(icon_urls[i].iconType()))); |
| 6555 } | 6555 } |
| 6556 SendUpdateFaviconURL(urls); | 6556 SendUpdateFaviconURL(urls); |
| 6557 } | 6557 } |
| 6558 | 6558 |
| 6559 | 6559 |
| 6560 } // namespace content | 6560 } // namespace content |
| OLD | NEW |