| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "platform/network/ResourceResponse.h" | 28 #include "platform/network/ResourceResponse.h" |
| 29 | 29 |
| 30 #include "platform/network/HTTPParsers.h" | 30 #include "platform/network/HTTPParsers.h" |
| 31 #include "platform/network/ResourceResponse.h" | |
| 32 #include "wtf/CurrentTime.h" | 31 #include "wtf/CurrentTime.h" |
| 33 #include "wtf/MathExtras.h" | 32 #include "wtf/MathExtras.h" |
| 34 #include "wtf/StdLibExtras.h" | 33 #include "wtf/StdLibExtras.h" |
| 35 | 34 |
| 36 namespace WebCore { | 35 namespace WebCore { |
| 37 | 36 |
| 38 static void parseCacheHeader(const String& header, Vector<pair<String, String> >
& result); | 37 static void parseCacheHeader(const String& header, Vector<pair<String, String> >
& result); |
| 39 | 38 |
| 40 ResourceResponse::ResourceResponse() | 39 ResourceResponse::ResourceResponse() |
| 41 : m_expectedContentLength(0) | 40 : m_expectedContentLength(0) |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 pos += nextCommaPosition - pos + 1; | 674 pos += nextCommaPosition - pos + 1; |
| 676 } else { | 675 } else { |
| 677 // Add last directive to map with empty string as value | 676 // Add last directive to map with empty string as value |
| 678 result.append(pair<String, String>(trimToNextSeparator(safeHeader.su
bstring(pos, max - pos).stripWhiteSpace()), "")); | 677 result.append(pair<String, String>(trimToNextSeparator(safeHeader.su
bstring(pos, max - pos).stripWhiteSpace()), "")); |
| 679 return; | 678 return; |
| 680 } | 679 } |
| 681 } | 680 } |
| 682 } | 681 } |
| 683 | 682 |
| 684 } | 683 } |
| OLD | NEW |