| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
| 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 7 rights reserved. | 7 rights reserved. |
| 8 | 8 |
| 9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
| 10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
| 11 License as published by the Free Software Foundation; either | 11 License as published by the Free Software Foundation; either |
| 12 version 2 of the License, or (at your option) any later version. | 12 version 2 of the License, or (at your option) any later version. |
| 13 | 13 |
| 14 This library is distributed in the hope that it will be useful, | 14 This library is distributed in the hope that it will be useful, |
| 15 but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 Library General Public License for more details. | 17 Library General Public License for more details. |
| 18 | 18 |
| 19 You should have received a copy of the GNU Library General Public License | 19 You should have received a copy of the GNU Library General Public License |
| 20 along with this library; see the file COPYING.LIB. If not, write to | 20 along with this library; see the file COPYING.LIB. If not, write to |
| 21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 Boston, MA 02110-1301, USA. | 22 Boston, MA 02110-1301, USA. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "platform/loader/fetch/Resource.h" | 25 #include "platform/loader/fetch/Resource.h" |
| 26 | 26 |
| 27 #include <stdint.h> |
| 28 #include <algorithm> |
| 29 #include <cassert> |
| 30 #include <memory> |
| 27 #include "platform/Histogram.h" | 31 #include "platform/Histogram.h" |
| 28 #include "platform/InstanceCounters.h" | 32 #include "platform/InstanceCounters.h" |
| 29 #include "platform/RuntimeEnabledFeatures.h" | 33 #include "platform/RuntimeEnabledFeatures.h" |
| 30 #include "platform/SharedBuffer.h" | 34 #include "platform/SharedBuffer.h" |
| 31 #include "platform/WebTaskRunner.h" | 35 #include "platform/WebTaskRunner.h" |
| 32 #include "platform/instrumentation/tracing/TraceEvent.h" | 36 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 33 #include "platform/loader/fetch/CachedMetadata.h" | 37 #include "platform/loader/fetch/CachedMetadata.h" |
| 34 #include "platform/loader/fetch/CrossOriginAccessControl.h" | 38 #include "platform/loader/fetch/CrossOriginAccessControl.h" |
| 35 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" | 39 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" |
| 36 #include "platform/loader/fetch/FetchRequest.h" | 40 #include "platform/loader/fetch/FetchRequest.h" |
| 37 #include "platform/loader/fetch/IntegrityMetadata.h" | 41 #include "platform/loader/fetch/IntegrityMetadata.h" |
| 38 #include "platform/loader/fetch/MemoryCache.h" | 42 #include "platform/loader/fetch/MemoryCache.h" |
| 39 #include "platform/loader/fetch/ResourceClient.h" | 43 #include "platform/loader/fetch/ResourceClient.h" |
| 40 #include "platform/loader/fetch/ResourceClientWalker.h" | 44 #include "platform/loader/fetch/ResourceClientWalker.h" |
| 41 #include "platform/loader/fetch/ResourceLoader.h" | 45 #include "platform/loader/fetch/ResourceLoader.h" |
| 42 #include "platform/network/HTTPParsers.h" | 46 #include "platform/network/HTTPParsers.h" |
| 43 #include "platform/weborigin/KURL.h" | 47 #include "platform/weborigin/KURL.h" |
| 44 #include "public/platform/Platform.h" | 48 #include "public/platform/Platform.h" |
| 45 #include "public/platform/WebCachePolicy.h" | 49 #include "public/platform/WebCachePolicy.h" |
| 46 #include "public/platform/WebScheduler.h" | 50 #include "public/platform/WebScheduler.h" |
| 47 #include "public/platform/WebSecurityOrigin.h" | 51 #include "public/platform/WebSecurityOrigin.h" |
| 48 #include "wtf/CurrentTime.h" | 52 #include "wtf/CurrentTime.h" |
| 49 #include "wtf/MathExtras.h" | 53 #include "wtf/MathExtras.h" |
| 50 #include "wtf/StdLibExtras.h" | 54 #include "wtf/StdLibExtras.h" |
| 51 #include "wtf/Vector.h" | 55 #include "wtf/Vector.h" |
| 52 #include "wtf/text/CString.h" | 56 #include "wtf/text/CString.h" |
| 53 #include "wtf/text/StringBuilder.h" | 57 #include "wtf/text/StringBuilder.h" |
| 54 #include <algorithm> | |
| 55 #include <cassert> | |
| 56 #include <memory> | |
| 57 #include <stdint.h> | |
| 58 | 58 |
| 59 namespace blink { | 59 namespace blink { |
| 60 | 60 |
| 61 // These response headers are not copied from a revalidated response to the | 61 // These response headers are not copied from a revalidated response to the |
| 62 // cached response headers. For compatibility, this list is based on Chromium's | 62 // cached response headers. For compatibility, this list is based on Chromium's |
| 63 // net/http/http_response_headers.cc. | 63 // net/http/http_response_headers.cc. |
| 64 const char* const headersToIgnoreAfterRevalidation[] = { | 64 const char* const headersToIgnoreAfterRevalidation[] = { |
| 65 "allow", | 65 "allow", |
| 66 "connection", | 66 "connection", |
| 67 "etag", | 67 "etag", |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1122 case Resource::Media: | 1122 case Resource::Media: |
| 1123 case Resource::Manifest: | 1123 case Resource::Manifest: |
| 1124 case Resource::Mock: | 1124 case Resource::Mock: |
| 1125 return false; | 1125 return false; |
| 1126 } | 1126 } |
| 1127 NOTREACHED(); | 1127 NOTREACHED(); |
| 1128 return false; | 1128 return false; |
| 1129 } | 1129 } |
| 1130 | 1130 |
| 1131 } // namespace blink | 1131 } // namespace blink |
| OLD | NEW |