Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2423683002: Add Blink support for showing image placeholders using range requests. (Closed)
Patch Set: Change test data to "const unsigned char" instead of "const char" to fix warnings in windows build Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 } 929 }
930 930
931 void Resource::setCachePolicyBypassingCache() { 931 void Resource::setCachePolicyBypassingCache() {
932 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); 932 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache);
933 } 933 }
934 934
935 void Resource::setLoFiStateOff() { 935 void Resource::setLoFiStateOff() {
936 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff); 936 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff);
937 } 937 }
938 938
939 void Resource::clearRangeRequestHeader() {
940 m_resourceRequest.clearHTTPHeaderField("range");
941 }
942
939 void Resource::revalidationSucceeded( 943 void Resource::revalidationSucceeded(
940 const ResourceResponse& validatingResponse) { 944 const ResourceResponse& validatingResponse) {
941 SECURITY_CHECK(m_redirectChain.isEmpty()); 945 SECURITY_CHECK(m_redirectChain.isEmpty());
942 SECURITY_CHECK(equalIgnoringFragmentIdentifier(validatingResponse.url(), 946 SECURITY_CHECK(equalIgnoringFragmentIdentifier(validatingResponse.url(),
943 m_response.url())); 947 m_response.url()));
944 m_response.setResourceLoadTiming(validatingResponse.resourceLoadTiming()); 948 m_response.setResourceLoadTiming(validatingResponse.resourceLoadTiming());
945 949
946 // RFC2616 10.3.5 950 // RFC2616 10.3.5
947 // Update cached headers from the 304 response 951 // Update cached headers from the 304 response
948 const HTTPHeaderMap& newHeaders = validatingResponse.httpHeaderFields(); 952 const HTTPHeaderMap& newHeaders = validatingResponse.httpHeaderFields();
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 case Resource::TextTrack: 1106 case Resource::TextTrack:
1103 case Resource::Media: 1107 case Resource::Media:
1104 case Resource::Manifest: 1108 case Resource::Manifest:
1105 return false; 1109 return false;
1106 } 1110 }
1107 NOTREACHED(); 1111 NOTREACHED();
1108 return false; 1112 return false;
1109 } 1113 }
1110 1114
1111 } // namespace blink 1115 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698