| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 ssl_status.connection_status); | 751 ssl_status.connection_status); |
| 752 } | 752 } |
| 753 | 753 |
| 754 #if defined(OS_ANDROID) | 754 #if defined(OS_ANDROID) |
| 755 // Returns true if WMPI should be used for playback, false otherwise. | 755 // Returns true if WMPI should be used for playback, false otherwise. |
| 756 // | 756 // |
| 757 // Note that HLS and MP4 detection are pre-redirect and path-based. It is | 757 // Note that HLS and MP4 detection are pre-redirect and path-based. It is |
| 758 // possible to load such a URL and find different content. | 758 // possible to load such a URL and find different content. |
| 759 bool UseWebMediaPlayerImpl(const GURL& url) { | 759 bool UseWebMediaPlayerImpl(const GURL& url) { |
| 760 // WMPI does not support HLS. | 760 // WMPI does not support HLS. |
| 761 if (media::MediaCodecUtil::IsHLSPath(url)) | 761 if (media::MediaCodecUtil::IsHLSURL(url)) |
| 762 return false; | 762 return false; |
| 763 | 763 |
| 764 // Don't use WMPI if the container likely contains a codec we can't decode in | 764 // Don't use WMPI if the container likely contains a codec we can't decode in |
| 765 // software and platform decoders are not available. | 765 // software and platform decoders are not available. |
| 766 if (base::EndsWith(url.path(), ".mp4", | 766 if (base::EndsWith(url.path(), ".mp4", |
| 767 base::CompareCase::INSENSITIVE_ASCII) && | 767 base::CompareCase::INSENSITIVE_ASCII) && |
| 768 !media::HasPlatformDecoderSupport()) { | 768 !media::HasPlatformDecoderSupport()) { |
| 769 return false; | 769 return false; |
| 770 } | 770 } |
| 771 | 771 |
| (...skipping 5268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6040 int match_count, | 6040 int match_count, |
| 6041 int ordinal, | 6041 int ordinal, |
| 6042 const WebRect& selection_rect, | 6042 const WebRect& selection_rect, |
| 6043 bool final_status_update) { | 6043 bool final_status_update) { |
| 6044 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6044 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6045 selection_rect, ordinal, | 6045 selection_rect, ordinal, |
| 6046 final_status_update)); | 6046 final_status_update)); |
| 6047 } | 6047 } |
| 6048 | 6048 |
| 6049 } // namespace content | 6049 } // namespace content |
| OLD | NEW |