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

Side by Side Diff: net/base/mime_util.h

Issue 15076008: Move AddMultipartValueForUpload to net/base/mime_util.h/cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review + rebase Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.cc ('k') | net/base/mime_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.cc ('k') | net/base/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698