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
rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
7 | 7 |
8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 { | 939 { |
940 for (auto& redirect : m_redirectChain) { | 940 for (auto& redirect : m_redirectChain) { |
941 if (!canUseResponse(redirect.m_redirectResponse, m_responseTimestamp)) | 941 if (!canUseResponse(redirect.m_redirectResponse, m_responseTimestamp)) |
942 return false; | 942 return false; |
943 if (redirect.m_request.cacheControlContainsNoCache() || redirect.m_reque
st.cacheControlContainsNoStore()) | 943 if (redirect.m_request.cacheControlContainsNoCache() || redirect.m_reque
st.cacheControlContainsNoStore()) |
944 return false; | 944 return false; |
945 } | 945 } |
946 return true; | 946 return true; |
947 } | 947 } |
948 | 948 |
949 bool Resource::hasCacheControlNoStoreHeader() | 949 bool Resource::hasCacheControlNoStoreHeader() const |
950 { | 950 { |
951 return m_response.cacheControlContainsNoStore() || m_resourceRequest.cacheCo
ntrolContainsNoStore(); | 951 return m_response.cacheControlContainsNoStore() || m_resourceRequest.cacheCo
ntrolContainsNoStore(); |
952 } | 952 } |
953 | 953 |
954 bool Resource::hasVaryHeader() const | 954 bool Resource::hasVaryHeader() const |
955 { | 955 { |
956 return !m_response.httpHeaderField(HTTPNames::Vary).isNull(); | 956 return !m_response.httpHeaderField(HTTPNames::Vary).isNull(); |
957 } | 957 } |
958 | 958 |
959 bool Resource::mustRevalidateDueToCacheHeaders() | 959 bool Resource::mustRevalidateDueToCacheHeaders() |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1130 case Resource::Media: | 1130 case Resource::Media: |
1131 return "Media"; | 1131 return "Media"; |
1132 case Resource::Manifest: | 1132 case Resource::Manifest: |
1133 return "Manifest"; | 1133 return "Manifest"; |
1134 } | 1134 } |
1135 ASSERT_NOT_REACHED(); | 1135 ASSERT_NOT_REACHED(); |
1136 return "Unknown"; | 1136 return "Unknown"; |
1137 } | 1137 } |
1138 | 1138 |
1139 } // namespace blink | 1139 } // namespace blink |
OLD | NEW |