Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1905133003: Fix an issue that HLS url for Azure video is not correctly detected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698