| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebCachePolicy_h | 5 #ifndef WebCachePolicy_h |
| 6 #define WebCachePolicy_h | 6 #define WebCachePolicy_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 enum class WebCachePolicy { | 10 enum class WebCachePolicy { |
| 11 UseProtocolCachePolicy, // normal load | 11 UseProtocolCachePolicy, // normal load |
| 12 ValidatingCacheData, // reload | 12 ValidatingCacheData, // reload |
| 13 BypassingCache, // end-to-end reload | 13 BypassingCache, // end-to-end reload |
| 14 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale | 14 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale |
| 15 // data | 15 // data |
| 16 ReturnCacheDataDontLoad, // results of a post - allow stale data and only use | 16 ReturnCacheDataDontLoad, // results of a post - allow stale data and only use |
| 17 // cache | 17 // cache |
| 18 ReturnCacheDataIfValid, // for cache-aware loading - disallow stale data | 18 ReturnCacheDataIfValid, // for cache-aware loading - disallow stale data |
| 19 BypassCacheLoadOnlyFromCache, // for cache-only load when disable cache |
| 20 // is enabled. Results in a network error. |
| 19 }; | 21 }; |
| 20 | 22 |
| 21 } // namespace blink | 23 } // namespace blink |
| 22 | 24 |
| 23 #endif // WebCachePolicy_h | 25 #endif // WebCachePolicy_h |
| OLD | NEW |