| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // The rules for parsing content-types were borrowed from Firefox: | 5 // The rules for parsing content-types were borrowed from Firefox: |
| 6 // http://lxr.mozilla.org/mozilla/source/netwerk/base/src/nsURLHelper.cpp#834 | 6 // http://lxr.mozilla.org/mozilla/source/netwerk/base/src/nsURLHelper.cpp#834 |
| 7 | 7 |
| 8 #include "net/http/http_util.h" | 8 #include "net/http/http_util.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/stringprintf.h" |
| 14 #include "base/string_number_conversions.h" | 15 #include "base/string_number_conversions.h" |
| 15 #include "base/string_piece.h" | 16 #include "base/string_piece.h" |
| 16 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 17 | 18 |
| 18 using std::string; | 19 using std::string; |
| 19 | 20 |
| 20 namespace net { | 21 namespace net { |
| 21 | 22 |
| 22 //----------------------------------------------------------------------------- | 23 //----------------------------------------------------------------------------- |
| 23 | 24 |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 value_is_quoted_ = true; | 786 value_is_quoted_ = true; |
| 786 // Do not store iterators into this. See declaration of unquoted_value_. | 787 // Do not store iterators into this. See declaration of unquoted_value_. |
| 787 unquoted_value_ = HttpUtil::Unquote(value_begin_, value_end_); | 788 unquoted_value_ = HttpUtil::Unquote(value_begin_, value_end_); |
| 788 } | 789 } |
| 789 } | 790 } |
| 790 | 791 |
| 791 return true; | 792 return true; |
| 792 } | 793 } |
| 793 | 794 |
| 794 } // namespace net | 795 } // namespace net |
| OLD | NEW |