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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 return String::format( | 925 return String::format( |
926 "web_cache/%s_resources/%ld", | 926 "web_cache/%s_resources/%ld", |
927 resourceTypeToString(getType(), options().initiatorInfo), m_identifier); | 927 resourceTypeToString(getType(), options().initiatorInfo), m_identifier); |
928 } | 928 } |
929 | 929 |
930 void Resource::setCachePolicyBypassingCache() { | 930 void Resource::setCachePolicyBypassingCache() { |
931 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); | 931 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); |
932 } | 932 } |
933 | 933 |
934 void Resource::setLoFiStateOff() { | 934 void Resource::setLoFiStateOff() { |
935 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff); | 935 m_resourceRequest.setPreviewsState(WebURLRequest::PreviewsOff); |
936 } | 936 } |
937 | 937 |
938 void Resource::clearRangeRequestHeader() { | 938 void Resource::clearRangeRequestHeader() { |
939 m_resourceRequest.clearHTTPHeaderField("range"); | 939 m_resourceRequest.clearHTTPHeaderField("range"); |
940 } | 940 } |
941 | 941 |
942 void Resource::revalidationSucceeded( | 942 void Resource::revalidationSucceeded( |
943 const ResourceResponse& validatingResponse) { | 943 const ResourceResponse& validatingResponse) { |
944 SECURITY_CHECK(m_redirectChain.isEmpty()); | 944 SECURITY_CHECK(m_redirectChain.isEmpty()); |
945 SECURITY_CHECK(equalIgnoringFragmentIdentifier(validatingResponse.url(), | 945 SECURITY_CHECK(equalIgnoringFragmentIdentifier(validatingResponse.url(), |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 case Resource::Media: | 1108 case Resource::Media: |
1109 case Resource::Manifest: | 1109 case Resource::Manifest: |
1110 case Resource::Mock: | 1110 case Resource::Mock: |
1111 return false; | 1111 return false; |
1112 } | 1112 } |
1113 NOTREACHED(); | 1113 NOTREACHED(); |
1114 return false; | 1114 return false; |
1115 } | 1115 } |
1116 | 1116 |
1117 } // namespace blink | 1117 } // namespace blink |
OLD | NEW |