| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "android_webview/renderer/aw_content_renderer_client.h" | 5 #include "android_webview/renderer/aw_content_renderer_client.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "android_webview/common/aw_resource.h" | 9 #include "android_webview/common/aw_resource.h" |
| 10 #include "android_webview/common/aw_switches.h" | 10 #include "android_webview/common/aw_switches.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // | 230 // |
| 231 // Note: Despite these extensions being forwarded for playback to MediaPlayer, | 231 // Note: Despite these extensions being forwarded for playback to MediaPlayer, |
| 232 // HTMLMediaElement.canPlayType() will return empty for these containers. | 232 // HTMLMediaElement.canPlayType() will return empty for these containers. |
| 233 // TODO(boliu): If this is important, extend media::MimeUtil for WebView. | 233 // TODO(boliu): If this is important, extend media::MimeUtil for WebView. |
| 234 // | 234 // |
| 235 // Format list mirrors: | 235 // Format list mirrors: |
| 236 // http://developer.android.com/guide/appendix/media-formats.html | 236 // http://developer.android.com/guide/appendix/media-formats.html |
| 237 static const char* kMediaPlayerExtensions[] = { | 237 static const char* kMediaPlayerExtensions[] = { |
| 238 ".3gp", ".ts", ".flac", ".mid", ".xmf", | 238 ".3gp", ".ts", ".flac", ".mid", ".xmf", |
| 239 ".mxmf", ".rtttl", ".rtx", ".ota", ".imy"}; | 239 ".mxmf", ".rtttl", ".rtx", ".ota", ".imy"}; |
| 240 for (const auto& extension : kMediaPlayerExtensions) { | 240 for (auto* extension : kMediaPlayerExtensions) { |
| 241 if (base::EndsWith(url.path(), extension, | 241 if (base::EndsWith(url.path(), extension, |
| 242 base::CompareCase::INSENSITIVE_ASCII)) { | 242 base::CompareCase::INSENSITIVE_ASCII)) { |
| 243 return true; | 243 return true; |
| 244 } | 244 } |
| 245 } | 245 } |
| 246 return false; | 246 return false; |
| 247 } | 247 } |
| 248 | 248 |
| 249 } // namespace android_webview | 249 } // namespace android_webview |
| OLD | NEW |