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

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

Issue 2873793002: Record Data Savings for Client-Side LoFi (Closed)
Patch Set: fix crash in DRPNetworkDelegate when lofi_ui_service is null. Created 3 years, 7 months 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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 return String::Format( 915 return String::Format(
916 "web_cache/%s_resources/%ld", 916 "web_cache/%s_resources/%ld",
917 ResourceTypeToString(GetType(), Options().initiator_info.name), 917 ResourceTypeToString(GetType(), Options().initiator_info.name),
918 identifier_); 918 identifier_);
919 } 919 }
920 920
921 void Resource::SetCachePolicyBypassingCache() { 921 void Resource::SetCachePolicyBypassingCache() {
922 resource_request_.SetCachePolicy(WebCachePolicy::kBypassingCache); 922 resource_request_.SetCachePolicy(WebCachePolicy::kBypassingCache);
923 } 923 }
924 924
925 void Resource::SetPreviewsStateNoTransform() { 925 void Resource::SetPreviewsState(WebURLRequest::PreviewsState previews_state) {
926 resource_request_.SetPreviewsState(WebURLRequest::kPreviewsNoTransform); 926 resource_request_.SetPreviewsState(previews_state);
927 } 927 }
928 928
929 void Resource::ClearRangeRequestHeader() { 929 void Resource::ClearRangeRequestHeader() {
930 resource_request_.ClearHTTPHeaderField("range"); 930 resource_request_.ClearHTTPHeaderField("range");
931 } 931 }
932 932
933 void Resource::RevalidationSucceeded( 933 void Resource::RevalidationSucceeded(
934 const ResourceResponse& validating_response) { 934 const ResourceResponse& validating_response) {
935 SECURITY_CHECK(redirect_chain_.IsEmpty()); 935 SECURITY_CHECK(redirect_chain_.IsEmpty());
936 SECURITY_CHECK(EqualIgnoringFragmentIdentifier(validating_response.Url(), 936 SECURITY_CHECK(EqualIgnoringFragmentIdentifier(validating_response.Url(),
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 case Resource::kMedia: 1120 case Resource::kMedia:
1121 case Resource::kManifest: 1121 case Resource::kManifest:
1122 case Resource::kMock: 1122 case Resource::kMock:
1123 return false; 1123 return false;
1124 } 1124 }
1125 NOTREACHED(); 1125 NOTREACHED();
1126 return false; 1126 return false;
1127 } 1127 }
1128 1128
1129 } // namespace blink 1129 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/Resource.h ('k') | third_party/WebKit/public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698