OLD | NEW |
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). |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // Indicates that the operation is somewhat likely to be due to an | 74 // Indicates that the operation is somewhat likely to be due to an |
75 // explicit user action. This can be used as a hint to treat the | 75 // explicit user action. This can be used as a hint to treat the |
76 // request with higher priority. | 76 // request with higher priority. |
77 LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 15) | 77 LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 15) |
78 | 78 |
79 // Indicates that the username:password portion of the URL should not | 79 // Indicates that the username:password portion of the URL should not |
80 // be honored, but that other forms of authority may be used. | 80 // be honored, but that other forms of authority may be used. |
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 | |
84 // by the "Cache-Control: stale-while-revalidate" directive and is able to issue | |
85 // an async revalidation to update the cache. | |
86 LOAD_FLAG(SUPPORT_ASYNC_REVALIDATION, 1 << 17) | |
87 | |
88 // Indicates that this request is not to be migrated to a new network when QUIC | 83 // Indicates that this request is not to be migrated to a new network when QUIC |
89 // connection migration is enabled. | 84 // connection migration is enabled. |
90 LOAD_FLAG(DISABLE_CONNECTION_MIGRATION, 1 << 18) | 85 LOAD_FLAG(DISABLE_CONNECTION_MIGRATION, 1 << 17) |
91 | 86 |
92 // Indicates that the cache should not check that the request matches the | 87 // Indicates that the cache should not check that the request matches the |
93 // response's vary header. | 88 // response's vary header. |
94 LOAD_FLAG(SKIP_VARY_CHECK, 1 << 19) | 89 LOAD_FLAG(SKIP_VARY_CHECK, 1 << 18) |
OLD | NEW |