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

Side by Side Diff: android_webview/renderer/aw_content_renderer_client.cc

Issue 2170983002: android_webview: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « android_webview/lib/main/aw_main_delegate.cc ('k') | 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 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
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
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698