| 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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 ssl_status.connection_status); | 748 ssl_status.connection_status); |
| 749 } | 749 } |
| 750 | 750 |
| 751 #if defined(OS_ANDROID) | 751 #if defined(OS_ANDROID) |
| 752 // Returns true if WMPI should be used for playback, false otherwise. | 752 // Returns true if WMPI should be used for playback, false otherwise. |
| 753 // | 753 // |
| 754 // Note that HLS and MP4 detection are pre-redirect and path-based. It is | 754 // Note that HLS and MP4 detection are pre-redirect and path-based. It is |
| 755 // possible to load such a URL and find different content. | 755 // possible to load such a URL and find different content. |
| 756 bool UseWebMediaPlayerImpl(const GURL& url) { | 756 bool UseWebMediaPlayerImpl(const GURL& url) { |
| 757 // WMPI does not support HLS. | 757 // WMPI does not support HLS. |
| 758 if (media::MediaCodecUtil::IsHLSPath(url)) | 758 if (media::MediaCodecUtil::IsHLSURL(url)) |
| 759 return false; | 759 return false; |
| 760 | 760 |
| 761 // Don't use WMPI if the container likely contains a codec we can't decode in | 761 // Don't use WMPI if the container likely contains a codec we can't decode in |
| 762 // software and platform decoders are not available. | 762 // software and platform decoders are not available. |
| 763 if (base::EndsWith(url.path(), ".mp4", | 763 if (base::EndsWith(url.path(), ".mp4", |
| 764 base::CompareCase::INSENSITIVE_ASCII) && | 764 base::CompareCase::INSENSITIVE_ASCII) && |
| 765 !media::HasPlatformDecoderSupport()) { | 765 !media::HasPlatformDecoderSupport()) { |
| 766 return false; | 766 return false; |
| 767 } | 767 } |
| 768 | 768 |
| (...skipping 5261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6030 int match_count, | 6030 int match_count, |
| 6031 int ordinal, | 6031 int ordinal, |
| 6032 const WebRect& selection_rect, | 6032 const WebRect& selection_rect, |
| 6033 bool final_status_update) { | 6033 bool final_status_update) { |
| 6034 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6034 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6035 selection_rect, ordinal, | 6035 selection_rect, ordinal, |
| 6036 final_status_update)); | 6036 final_status_update)); |
| 6037 } | 6037 } |
| 6038 | 6038 |
| 6039 } // namespace content | 6039 } // namespace content |
| OLD | NEW |