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 |
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 "web_cache/%s_resources/%ld", | 927 "web_cache/%s_resources/%ld", |
928 resourceTypeToString(getType(), options().initiatorInfo.name), | 928 resourceTypeToString(getType(), options().initiatorInfo.name), |
929 m_identifier); | 929 m_identifier); |
930 } | 930 } |
931 | 931 |
932 void Resource::setCachePolicyBypassingCache() { | 932 void Resource::setCachePolicyBypassingCache() { |
933 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); | 933 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); |
934 } | 934 } |
935 | 935 |
936 void Resource::setLoFiStateOff() { | 936 void Resource::setLoFiStateOff() { |
937 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff); | 937 m_resourceRequest.setPreviewsState(WebURLRequest::PreviewsOff); |
938 } | 938 } |
939 | 939 |
940 void Resource::clearRangeRequestHeader() { | 940 void Resource::clearRangeRequestHeader() { |
941 m_resourceRequest.clearHTTPHeaderField("range"); | 941 m_resourceRequest.clearHTTPHeaderField("range"); |
942 } | 942 } |
943 | 943 |
944 void Resource::revalidationSucceeded( | 944 void Resource::revalidationSucceeded( |
945 const ResourceResponse& validatingResponse) { | 945 const ResourceResponse& validatingResponse) { |
946 SECURITY_CHECK(m_redirectChain.isEmpty()); | 946 SECURITY_CHECK(m_redirectChain.isEmpty()); |
947 SECURITY_CHECK(equalIgnoringFragmentIdentifier(validatingResponse.url(), | 947 SECURITY_CHECK(equalIgnoringFragmentIdentifier(validatingResponse.url(), |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 case Resource::Media: | 1115 case Resource::Media: |
1116 case Resource::Manifest: | 1116 case Resource::Manifest: |
1117 case Resource::Mock: | 1117 case Resource::Mock: |
1118 return false; | 1118 return false; |
1119 } | 1119 } |
1120 NOTREACHED(); | 1120 NOTREACHED(); |
1121 return false; | 1121 return false; |
1122 } | 1122 } |
1123 | 1123 |
1124 } // namespace blink | 1124 } // namespace blink |
OLD | NEW |