summaryrefslogtreecommitdiffstats
path: root/base/string_util.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 20:25:20 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 20:25:20 +0000
commitaa98311d5083e2505e1e089bb21ed3735d4623f8 (patch)
tree6b771930d2f86a7c3d804b610004a6aab9f9bd5b /base/string_util.h
parent6b889fb5d046cdecc27c2b2d56e2400dd7c10270 (diff)
downloadchromium_src-aa98311d5083e2505e1e089bb21ed3735d4623f8.zip
chromium_src-aa98311d5083e2505e1e089bb21ed3735d4623f8.tar.gz
chromium_src-aa98311d5083e2505e1e089bb21ed3735d4623f8.tar.bz2
Reland r42300: "HttpRequestHeaders refactor.""
This time, make sure HttpRequestHeaders::FindHeader() checks key lengths are equal. * Create HttpRequestHeaders. * Switch HttpNetworkTransaction to build request headers. TODO: Change extra_headers to use HttpRequestHeaders. BUG=22588 Review URL: http://codereview.chromium.org/1110014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r--base/string_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/string_util.h b/base/string_util.h
index 586c60c..28cd26f 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -575,6 +575,14 @@ void SplitStringDontTrim(const std::string& str,
char s,
std::vector<std::string>* r);
+// The same as SplitString, but use a substring delimiter instead of a char.
+void SplitStringUsingSubstr(const string16& str,
+ const string16& s,
+ std::vector<string16>* r);
+void SplitStringUsingSubstr(const std::string& str,
+ const std::string& s,
+ std::vector<std::string>* r);
+
// Splits a string into its fields delimited by any of the characters in
// |delimiters|. Each field is added to the |tokens| vector. Returns the
// number of tokens found.