| 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 #ifndef NET_BASE_MIME_UTIL_H__ |    5 #ifndef NET_BASE_MIME_UTIL_H__ | 
|    6 #define NET_BASE_MIME_UTIL_H__ |    6 #define NET_BASE_MIME_UTIL_H__ | 
|    7  |    7  | 
|    8 #include <string> |    8 #include <string> | 
|    9 #include <vector> |    9 #include <vector> | 
|   10  |   10  | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   78  |   78  | 
|   79 // Check to see if a particular MIME type is in our list which only supports a |   79 // Check to see if a particular MIME type is in our list which only supports a | 
|   80 // certain subset of codecs. Returns true if and only if all codecs are |   80 // certain subset of codecs. Returns true if and only if all codecs are | 
|   81 // supported for that specific MIME type, false otherwise. If this returns |   81 // supported for that specific MIME type, false otherwise. If this returns | 
|   82 // false you will still need to check if the media MIME tpyes and codecs are |   82 // false you will still need to check if the media MIME tpyes and codecs are | 
|   83 // supported. |   83 // supported. | 
|   84 NET_EXPORT bool IsSupportedStrictMediaMimeType( |   84 NET_EXPORT bool IsSupportedStrictMediaMimeType( | 
|   85     const std::string& mime_type, |   85     const std::string& mime_type, | 
|   86     const std::vector<std::string>& codecs); |   86     const std::vector<std::string>& codecs); | 
|   87  |   87  | 
 |   88 // Check to see if the particular mp4 MIME type is in our list which only | 
 |   89 // supports certain subset of H.264 codecs. Returns true if and only if all the | 
 |   90 // codecs are supported for the specific MIME type and the codecs are RFC6381 | 
 |   91 // compliant. | 
 |   92 NET_EXPORT bool IsSupportedStrictMP4MediaMimeType( | 
 |   93     const std::string& mime_type, | 
 |   94     const std::vector<std::string>& codecs); | 
 |   95  | 
|   88 // Get the extensions associated with the given mime type. This should be passed |   96 // Get the extensions associated with the given mime type. This should be passed | 
|   89 // in lower case. There could be multiple extensions for a given mime type, like |   97 // in lower case. There could be multiple extensions for a given mime type, like | 
|   90 // "html,htm" for "text/html", or "txt,text,html,..." for "text/*". |   98 // "html,htm" for "text/html", or "txt,text,html,..." for "text/*". | 
|   91 // Note that we do not erase the existing elements in the the provided vector. |   99 // Note that we do not erase the existing elements in the the provided vector. | 
|   92 // Instead, we append the result to it. |  100 // Instead, we append the result to it. | 
|   93 NET_EXPORT void GetExtensionsForMimeType( |  101 NET_EXPORT void GetExtensionsForMimeType( | 
|   94     const std::string& mime_type, |  102     const std::string& mime_type, | 
|   95     std::vector<base::FilePath::StringType>* extensions); |  103     std::vector<base::FilePath::StringType>* extensions); | 
|   96  |  104  | 
|   97 // Test only method that removes proprietary media types and codecs from the |  105 // Test only method that removes proprietary media types and codecs from the | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
|  124                                            std::string* post_data); |  132                                            std::string* post_data); | 
|  125  |  133  | 
|  126 // Adds the final delimiter to a multi-part upload request. |  134 // Adds the final delimiter to a multi-part upload request. | 
|  127 NET_EXPORT void AddMultipartFinalDelimiterForUpload( |  135 NET_EXPORT void AddMultipartFinalDelimiterForUpload( | 
|  128     const std::string& mime_boundary, |  136     const std::string& mime_boundary, | 
|  129     std::string* post_data); |  137     std::string* post_data); | 
|  130  |  138  | 
|  131 }  // namespace net |  139 }  // namespace net | 
|  132  |  140  | 
|  133 #endif  // NET_BASE_MIME_UTIL_H__ |  141 #endif  // NET_BASE_MIME_UTIL_H__ | 
| OLD | NEW |