| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <iterator> | 6 #include <iterator> |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 // on Android. https://crbug.com/285016 | 308 // on Android. https://crbug.com/285016 |
| 309 #endif | 309 #endif |
| 310 "vorbis", | 310 "vorbis", |
| 311 "vp8", | 311 "vp8", |
| 312 "1" // WAVE_FORMAT_PCM. | 312 "1" // WAVE_FORMAT_PCM. |
| 313 }; | 313 }; |
| 314 | 314 |
| 315 // List of proprietary codecs only supported by Google Chrome. | 315 // List of proprietary codecs only supported by Google Chrome. |
| 316 static const char* const proprietary_media_codecs[] = { | 316 static const char* const proprietary_media_codecs[] = { |
| 317 "avc1", | 317 "avc1", |
| 318 "avc3", |
| 318 "mp4a" | 319 "mp4a" |
| 319 }; | 320 }; |
| 320 | 321 |
| 321 // Note: does not include javascript types list (see supported_javascript_types) | 322 // Note: does not include javascript types list (see supported_javascript_types) |
| 322 static const char* const supported_non_image_types[] = { | 323 static const char* const supported_non_image_types[] = { |
| 323 "text/cache-manifest", | 324 "text/cache-manifest", |
| 324 "text/html", | 325 "text/html", |
| 325 "text/xml", | 326 "text/xml", |
| 326 "text/xsl", | 327 "text/xsl", |
| 327 "text/plain", | 328 "text/plain", |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 post_data->append("\r\n" + value + "\r\n"); | 1000 post_data->append("\r\n" + value + "\r\n"); |
| 1000 } | 1001 } |
| 1001 | 1002 |
| 1002 void AddMultipartFinalDelimiterForUpload(const std::string& mime_boundary, | 1003 void AddMultipartFinalDelimiterForUpload(const std::string& mime_boundary, |
| 1003 std::string* post_data) { | 1004 std::string* post_data) { |
| 1004 DCHECK(post_data); | 1005 DCHECK(post_data); |
| 1005 post_data->append("--" + mime_boundary + "--\r\n"); | 1006 post_data->append("--" + mime_boundary + "--\r\n"); |
| 1006 } | 1007 } |
| 1007 | 1008 |
| 1008 } // namespace net | 1009 } // namespace net |
| OLD | NEW |