| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TOOLS_FLIP_SERVER_SPLIT_H_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_SPLIT_H_ |
| 6 #define NET_TOOLS_FLIP_SERVER_SPLIT_H_ | 6 #define NET_TOOLS_FLIP_SERVER_SPLIT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include "base/string_piece.h" | 9 #include "base/strings/string_piece.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 // Yea, this could be done with less code duplication using | 13 // Yea, this could be done with less code duplication using |
| 14 // template magic, I know. | 14 // template magic, I know. |
| 15 void SplitStringPieceToVector(const base::StringPiece& full, | 15 void SplitStringPieceToVector(const base::StringPiece& full, |
| 16 const char* delim, | 16 const char* delim, |
| 17 std::vector<base::StringPiece>* vec, | 17 std::vector<base::StringPiece>* vec, |
| 18 bool omit_empty_strings); | 18 bool omit_empty_strings); |
| 19 | 19 |
| 20 } // namespace net | 20 } // namespace net |
| 21 | 21 |
| 22 #endif // NET_TOOLS_FLIP_SERVER_SPLIT_H_ | 22 #endif // NET_TOOLS_FLIP_SERVER_SPLIT_H_ |
| 23 | 23 |
| OLD | NEW |