Chromium Code Reviews| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 // A list of supported certificate-related mime types. | 112 // A list of supported certificate-related mime types. |
| 113 enum CertificateMimeType { | 113 enum CertificateMimeType { |
| 114 #define CERTIFICATE_MIME_TYPE(name, value) CERTIFICATE_MIME_TYPE_ ## name = valu e, | 114 #define CERTIFICATE_MIME_TYPE(name, value) CERTIFICATE_MIME_TYPE_ ## name = valu e, |
| 115 #include "net/base/mime_util_certificate_type_list.h" | 115 #include "net/base/mime_util_certificate_type_list.h" |
| 116 #undef CERTIFICATE_MIME_TYPE | 116 #undef CERTIFICATE_MIME_TYPE |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 NET_EXPORT CertificateMimeType GetCertificateMimeTypeForMimeType( | 119 NET_EXPORT CertificateMimeType GetCertificateMimeTypeForMimeType( |
| 120 const std::string& mime_type); | 120 const std::string& mime_type); |
| 121 | 121 |
| 122 // Prepares one value as part of a multi-part upload request. | |
| 123 NET_EXPORT void AddMultipartValueForUpload(const std::string& value_name, | |
| 124 const std::string& value, | |
| 125 const std::string& mime_boundary, | |
| 126 const std::string& content_type, | |
| 127 std::string* post_data); | |
| 128 | |
| 129 NET_EXPORT void AddMultipartTerminateForUpload(const std::string& mime_boundary, | |
|
wtc
2013/05/15 17:01:35
Please add a comment to describe what this functio
Henrik Grunell
2013/05/16 08:35:46
Done.
| |
| 130 std::string* post_data); | |
| 131 | |
| 122 } // namespace net | 132 } // namespace net |
| 123 | 133 |
| 124 #endif // NET_BASE_MIME_UTIL_H__ | 134 #endif // NET_BASE_MIME_UTIL_H__ |
| OLD | NEW |