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

Side by Side Diff: net/base/load_flags_list.h

Issue 2398613002: [HttpCache] LOAD_ONLY_FROM_CACHE should not imply LOAD_PREFERRING_CACHE (Closed)
Patch Set: Always check vary Created 4 years, 2 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 | « ios/net/crn_http_protocol_handler.mm ('k') | net/http/http_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This is the list of load flags and their values. For the enum values, 5 // This is the list of load flags and their values. For the enum values,
6 // include the file "net/base/load_flags.h". 6 // include the file "net/base/load_flags.h".
7 // 7 //
8 // Here we define the values using a macro LOAD_FLAG, so it can be 8 // Here we define the values using a macro LOAD_FLAG, so it can be
9 // expanded differently in some places (for example, to automatically 9 // expanded differently in some places (for example, to automatically
10 // map a load flag value to its symbolic name). 10 // map a load flag value to its symbolic name).
11 11
12 LOAD_FLAG(NORMAL, 0) 12 LOAD_FLAG(NORMAL, 0)
13 13
14 // This is "normal reload", meaning an if-none-match/if-modified-since query 14 // This is "normal reload", meaning an if-none-match/if-modified-since query
15 LOAD_FLAG(VALIDATE_CACHE, 1 << 0) 15 LOAD_FLAG(VALIDATE_CACHE, 1 << 0)
16 16
17 // This is "shift-reload", meaning a "pragma: no-cache" end-to-end fetch 17 // This is "shift-reload", meaning a "pragma: no-cache" end-to-end fetch
18 LOAD_FLAG(BYPASS_CACHE, 1 << 1) 18 LOAD_FLAG(BYPASS_CACHE, 1 << 1)
19 19
20 // This is a back/forward style navigation where the cached content should 20 // This is a back/forward style navigation where the cached content should
21 // be preferred over any protocol specific cache validation. 21 // be preferred over any protocol specific cache validation.
22 LOAD_FLAG(PREFERRING_CACHE, 1 << 2) 22 LOAD_FLAG(SKIP_CACHE_VALIDATION, 1 << 2)
23 23
24 // This is a navigation that will fail if it cannot serve the requested 24 // This is a navigation that will fail if it cannot serve the requested
25 // resource from the cache (or some equivalent local store). 25 // resource from the cache (or some equivalent local store).
26 LOAD_FLAG(ONLY_FROM_CACHE, 1 << 3) 26 LOAD_FLAG(ONLY_FROM_CACHE, 1 << 3)
27 27
28 // This is a navigation that will not use the cache at all. It does not 28 // This is a navigation that will not use the cache at all. It does not
29 // impact the HTTP request headers. 29 // impact the HTTP request headers.
30 LOAD_FLAG(DISABLE_CACHE, 1 << 4) 30 LOAD_FLAG(DISABLE_CACHE, 1 << 4)
31 31
32 // If present, causes certificate revocation checks to be skipped on secure 32 // If present, causes certificate revocation checks to be skipped on secure
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 LOAD_FLAG(DO_NOT_USE_EMBEDDED_IDENTITY, 1 << 16) 81 LOAD_FLAG(DO_NOT_USE_EMBEDDED_IDENTITY, 1 << 16)
82 82
83 // The creator of this URLRequest wishes to receive stale responses when allowed 83 // The creator of this URLRequest wishes to receive stale responses when allowed
84 // by the "Cache-Control: stale-while-revalidate" directive and is able to issue 84 // by the "Cache-Control: stale-while-revalidate" directive and is able to issue
85 // an async revalidation to update the cache. 85 // an async revalidation to update the cache.
86 LOAD_FLAG(SUPPORT_ASYNC_REVALIDATION, 1 << 17) 86 LOAD_FLAG(SUPPORT_ASYNC_REVALIDATION, 1 << 17)
87 87
88 // Indicates that this request is not to be migrated to a new network when QUIC 88 // Indicates that this request is not to be migrated to a new network when QUIC
89 // connection migration is enabled. 89 // connection migration is enabled.
90 LOAD_FLAG(DISABLE_CONNECTION_MIGRATION, 1 << 18) 90 LOAD_FLAG(DISABLE_CONNECTION_MIGRATION, 1 << 18)
OLDNEW
« no previous file with comments | « ios/net/crn_http_protocol_handler.mm ('k') | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698