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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // This load will not send any cookies. | 47 // This load will not send any cookies. |
48 LOAD_FLAG(DO_NOT_SEND_COOKIES, 1 << 9) | 48 LOAD_FLAG(DO_NOT_SEND_COOKIES, 1 << 9) |
49 | 49 |
50 // This load will not send authentication data (user name/password) | 50 // This load will not send authentication data (user name/password) |
51 // to the server (as opposed to the proxy). | 51 // to the server (as opposed to the proxy). |
52 LOAD_FLAG(DO_NOT_SEND_AUTH_DATA, 1 << 10) | 52 LOAD_FLAG(DO_NOT_SEND_AUTH_DATA, 1 << 10) |
53 | 53 |
54 // This should only be used for testing (set by HttpNetworkTransaction). | 54 // This should only be used for testing (set by HttpNetworkTransaction). |
55 LOAD_FLAG(IGNORE_ALL_CERT_ERRORS, 1 << 11) | 55 LOAD_FLAG(IGNORE_ALL_CERT_ERRORS, 1 << 11) |
56 | 56 |
| 57 // DO NOT USE THIS FLAG |
| 58 // The network stack should not have frame level knowledge. Any pre-connect |
| 59 // or pre-resolution requiring that knowledge should be done from the |
| 60 // stack embedder. |
57 // Indicate that this is a top level frame, so that we don't assume it is a | 61 // Indicate that this is a top level frame, so that we don't assume it is a |
58 // subresource and speculatively pre-connect or pre-resolve when a referring | 62 // subresource and speculatively pre-connect or pre-resolve when a referring |
59 // page is loaded. | 63 // page is loaded. |
60 LOAD_FLAG(MAIN_FRAME, 1 << 12) | 64 LOAD_FLAG(MAIN_FRAME_DEPRECATED, 1 << 12) |
61 | 65 |
62 // Indicates that this load was motivated by the rel=prefetch feature, | 66 // Indicates that this load was motivated by the rel=prefetch feature, |
63 // and is (in theory) not intended for the current frame. | 67 // and is (in theory) not intended for the current frame. |
64 LOAD_FLAG(PREFETCH, 1 << 13) | 68 LOAD_FLAG(PREFETCH, 1 << 13) |
65 | 69 |
66 // Indicates that this load could cause deadlock if it has to wait for another | 70 // Indicates that this load could cause deadlock if it has to wait for another |
67 // request. Overrides socket limits. Must always be used with MAXIMUM_PRIORITY. | 71 // request. Overrides socket limits. Must always be used with MAXIMUM_PRIORITY. |
68 LOAD_FLAG(IGNORE_LIMITS, 1 << 14) | 72 LOAD_FLAG(IGNORE_LIMITS, 1 << 14) |
69 | 73 |
70 // 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 |
71 // 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 |
72 // request with higher priority. | 76 // request with higher priority. |
73 LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 15) | 77 LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 15) |
74 | 78 |
75 // Indicates that the username:password portion of the URL should not | 79 // Indicates that the username:password portion of the URL should not |
76 // be honored, but that other forms of authority may be used. | 80 // be honored, but that other forms of authority may be used. |
77 LOAD_FLAG(DO_NOT_USE_EMBEDDED_IDENTITY, 1 << 16) | 81 LOAD_FLAG(DO_NOT_USE_EMBEDDED_IDENTITY, 1 << 16) |
78 | 82 |
79 // 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 |
80 // 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 |
81 // an async revalidation to update the cache. | 85 // an async revalidation to update the cache. |
82 LOAD_FLAG(SUPPORT_ASYNC_REVALIDATION, 1 << 17) | 86 LOAD_FLAG(SUPPORT_ASYNC_REVALIDATION, 1 << 17) |
83 | 87 |
84 // 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 |
85 // connection migration is enabled. | 89 // connection migration is enabled. |
86 LOAD_FLAG(DISABLE_CONNECTION_MIGRATION, 1 << 18) | 90 LOAD_FLAG(DISABLE_CONNECTION_MIGRATION, 1 << 18) |
OLD | NEW |