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

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

Issue 1867493003: remove FetchContext::getCachePolicy() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #51 Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/FetchContext.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 return instance; 39 return instance;
40 } 40 }
41 41
42 void FetchContext::dispatchDidChangeResourcePriority(unsigned long, 42 void FetchContext::dispatchDidChangeResourcePriority(unsigned long,
43 ResourceLoadPriority, 43 ResourceLoadPriority,
44 int) {} 44 int) {}
45 45
46 void FetchContext::addAdditionalRequestHeaders(ResourceRequest&, 46 void FetchContext::addAdditionalRequestHeaders(ResourceRequest&,
47 FetchResourceType) {} 47 FetchResourceType) {}
48 48
49 CachePolicy FetchContext::getCachePolicy() const {
50 return CachePolicyVerify;
51 }
52
53 WebCachePolicy FetchContext::resourceRequestCachePolicy( 49 WebCachePolicy FetchContext::resourceRequestCachePolicy(
54 ResourceRequest&, 50 ResourceRequest&,
55 Resource::Type, 51 Resource::Type,
56 FetchRequest::DeferOption defer) const { 52 FetchRequest::DeferOption defer) const {
57 return WebCachePolicy::UseProtocolCachePolicy; 53 return WebCachePolicy::UseProtocolCachePolicy;
58 } 54 }
59 55
60 void FetchContext::dispatchWillSendRequest(unsigned long, 56 void FetchContext::dispatchWillSendRequest(unsigned long,
61 ResourceRequest&, 57 ResourceRequest&,
62 const ResourceResponse&, 58 const ResourceResponse&,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 FetchContext::LogMessageType) const {} 103 FetchContext::LogMessageType) const {}
108 104
109 void FetchContext::populateResourceRequest(Resource::Type, 105 void FetchContext::populateResourceRequest(Resource::Type,
110 const ClientHintsPreferences&, 106 const ClientHintsPreferences&,
111 const FetchRequest::ResourceWidth&, 107 const FetchRequest::ResourceWidth&,
112 ResourceRequest&) {} 108 ResourceRequest&) {}
113 109
114 void FetchContext::setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) {} 110 void FetchContext::setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) {}
115 111
116 } // namespace blink 112 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/FetchContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698