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

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

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: use PreviewsState everywhere Created 4 years 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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 return String::format( 919 return String::format(
920 "web_cache/%s_resources/%ld", 920 "web_cache/%s_resources/%ld",
921 resourceTypeToString(getType(), options().initiatorInfo), m_identifier); 921 resourceTypeToString(getType(), options().initiatorInfo), m_identifier);
922 } 922 }
923 923
924 void Resource::setCachePolicyBypassingCache() { 924 void Resource::setCachePolicyBypassingCache() {
925 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache); 925 m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache);
926 } 926 }
927 927
928 void Resource::setLoFiStateOff() { 928 void Resource::setLoFiStateOff() {
929 m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff); 929 m_resourceRequest.setPreviewsState(WebURLRequest::PreviewsState::PreviewsOff);
930 } 930 }
931 931
932 void Resource::clearRangeRequestHeader() { 932 void Resource::clearRangeRequestHeader() {
933 m_resourceRequest.clearHTTPHeaderField("range"); 933 m_resourceRequest.clearHTTPHeaderField("range");
934 } 934 }
935 935
936 void Resource::revalidationSucceeded( 936 void Resource::revalidationSucceeded(
937 const ResourceResponse& validatingResponse) { 937 const ResourceResponse& validatingResponse) {
938 SECURITY_CHECK(m_redirectChain.isEmpty()); 938 SECURITY_CHECK(m_redirectChain.isEmpty());
939 SECURITY_CHECK(equalIgnoringFragmentIdentifier(validatingResponse.url(), 939 SECURITY_CHECK(equalIgnoringFragmentIdentifier(validatingResponse.url(),
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 case Resource::TextTrack: 1099 case Resource::TextTrack:
1100 case Resource::Media: 1100 case Resource::Media:
1101 case Resource::Manifest: 1101 case Resource::Manifest:
1102 return false; 1102 return false;
1103 } 1103 }
1104 NOTREACHED(); 1104 NOTREACHED();
1105 return false; 1105 return false;
1106 } 1106 }
1107 1107
1108 } // namespace blink 1108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698