| 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 "net/base/mime_util.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "net/base/platform_mime_util.h" | |
| 12 | |
| 13 #include "base/hash_tables.h" | |
| 14 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 15 #include "base/logging.h" | 12 #include "base/logging.h" |
| 16 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 17 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "net/base/mime_util.h" |
| 17 #include "net/base/platform_mime_util.h" |
| 19 | 18 |
| 20 using std::string; | 19 using std::string; |
| 21 | 20 |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 struct MediaType { | 23 struct MediaType { |
| 25 const char name[12]; | 24 const char name[12]; |
| 26 const char matcher[13]; | 25 const char matcher[13]; |
| 27 }; | 26 }; |
| 28 | 27 |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 post_data->append("\r\n" + value + "\r\n"); | 1002 post_data->append("\r\n" + value + "\r\n"); |
| 1004 } | 1003 } |
| 1005 | 1004 |
| 1006 void AddMultipartFinalDelimiterForUpload(const std::string& mime_boundary, | 1005 void AddMultipartFinalDelimiterForUpload(const std::string& mime_boundary, |
| 1007 std::string* post_data) { | 1006 std::string* post_data) { |
| 1008 DCHECK(post_data); | 1007 DCHECK(post_data); |
| 1009 post_data->append("--" + mime_boundary + "--\r\n"); | 1008 post_data->append("--" + mime_boundary + "--\r\n"); |
| 1010 } | 1009 } |
| 1011 | 1010 |
| 1012 } // namespace net | 1011 } // namespace net |
| OLD | NEW |