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

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

Issue 1921743003: Fix an issue that HLS url for Azure video is not correctly detected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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