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 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3031 } | 3031 } |
3032 | 3032 |
3033 scoped_ptr<WebMediaPlayerAndroid> web_media_player_android( | 3033 scoped_ptr<WebMediaPlayerAndroid> web_media_player_android( |
3034 new WebMediaPlayerAndroid( | 3034 new WebMediaPlayerAndroid( |
3035 frame, | 3035 frame, |
3036 client, | 3036 client, |
3037 AsWeakPtr(), | 3037 AsWeakPtr(), |
3038 media_player_manager_.get(), | 3038 media_player_manager_.get(), |
3039 media_player_proxy_, | 3039 media_player_proxy_, |
3040 stream_texture_factory.release(), | 3040 stream_texture_factory.release(), |
| 3041 RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy(), |
3041 new RenderMediaLog())); | 3042 new RenderMediaLog())); |
3042 #if defined(ENABLE_WEBRTC) && defined(GOOGLE_TV) | 3043 #if defined(ENABLE_WEBRTC) && defined(GOOGLE_TV) |
3043 if (media_stream_client_->IsMediaStream(url)) { | 3044 if (media_stream_client_->IsMediaStream(url)) { |
3044 RTCVideoDecoderFactoryTv* factory = RenderThreadImpl::current() | 3045 RTCVideoDecoderFactoryTv* factory = RenderThreadImpl::current() |
3045 ->GetMediaStreamDependencyFactory()->decoder_factory_tv(); | 3046 ->GetMediaStreamDependencyFactory()->decoder_factory_tv(); |
3046 // |media_stream_client| and |factory| outlives |web_media_player_android|. | 3047 // |media_stream_client| and |factory| outlives |web_media_player_android|. |
3047 if (!factory->AcquireDemuxer() || | 3048 if (!factory->AcquireDemuxer() || |
3048 !web_media_player_android->InjectMediaStream( | 3049 !web_media_player_android->InjectMediaStream( |
3049 media_stream_client_, | 3050 media_stream_client_, |
3050 factory, | 3051 factory, |
(...skipping 3504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6555 WebURL url = icon_urls[i].iconURL(); | 6556 WebURL url = icon_urls[i].iconURL(); |
6556 if (!url.isEmpty()) | 6557 if (!url.isEmpty()) |
6557 urls.push_back(FaviconURL(url, | 6558 urls.push_back(FaviconURL(url, |
6558 ToFaviconType(icon_urls[i].iconType()))); | 6559 ToFaviconType(icon_urls[i].iconType()))); |
6559 } | 6560 } |
6560 SendUpdateFaviconURL(urls); | 6561 SendUpdateFaviconURL(urls); |
6561 } | 6562 } |
6562 | 6563 |
6563 | 6564 |
6564 } // namespace content | 6565 } // namespace content |
OLD | NEW |