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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Indicate that this is a top level frame, so that we don't assume it is a | 57 // 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 | 58 // subresource and speculatively pre-connect or pre-resolve when a referring |
59 // page is loaded. | 59 // page is loaded. |
60 LOAD_FLAG(MAIN_FRAME, 1 << 12) | 60 LOAD_FLAG(MAIN_FRAME, 1 << 12) |
61 | 61 |
62 // Indicate that this is a sub frame, and hence it might have subresources that | |
63 // should be speculatively resolved, or even speculatively preconnected. | |
64 LOAD_FLAG(SUB_FRAME, 1 << 13) | |
65 | |
66 // If present, intercept actual request/response headers from network stack | 62 // If present, intercept actual request/response headers from network stack |
67 // and report them to renderer. This includes cookies, so the flag is only | 63 // and report them to renderer. This includes cookies, so the flag is only |
68 // respected if renderer has CanReadRawCookies capability in the security | 64 // respected if renderer has CanReadRawCookies capability in the security |
69 // policy. | 65 // policy. |
70 LOAD_FLAG(REPORT_RAW_HEADERS, 1 << 14) | 66 LOAD_FLAG(REPORT_RAW_HEADERS, 1 << 13) |
71 | 67 |
72 // Indicates that this load was motivated by the rel=prefetch feature, | 68 // Indicates that this load was motivated by the rel=prefetch feature, |
73 // and is (in theory) not intended for the current frame. | 69 // and is (in theory) not intended for the current frame. |
74 LOAD_FLAG(PREFETCH, 1 << 15) | 70 LOAD_FLAG(PREFETCH, 1 << 14) |
75 | 71 |
76 // Indicates that this is a load that ignores limits and should complete | 72 // Indicates that this is a load that ignores limits and should complete |
77 // immediately. | 73 // immediately. |
78 LOAD_FLAG(IGNORE_LIMITS, 1 << 16) | 74 LOAD_FLAG(IGNORE_LIMITS, 1 << 15) |
79 | 75 |
80 // Indicates that the operation is somewhat likely to be due to an | 76 // Indicates that the operation is somewhat likely to be due to an |
81 // explicit user action. This can be used as a hint to treat the | 77 // explicit user action. This can be used as a hint to treat the |
82 // request with higher priority. | 78 // request with higher priority. |
83 LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 17) | 79 LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 16) |
84 | 80 |
85 // Indicates that the username:password portion of the URL should not | 81 // Indicates that the username:password portion of the URL should not |
86 // be honored, but that other forms of authority may be used. | 82 // be honored, but that other forms of authority may be used. |
87 LOAD_FLAG(DO_NOT_USE_EMBEDDED_IDENTITY, 1 << 18) | 83 LOAD_FLAG(DO_NOT_USE_EMBEDDED_IDENTITY, 1 << 17) |
88 | 84 |
89 // Send request directly to the origin if the effective proxy is the data | 85 // Send request directly to the origin if the effective proxy is the data |
90 // reduction proxy. | 86 // reduction proxy. |
91 // TODO(rcs): Remove this flag as soon as http://crbug.com/339237 is resolved. | 87 // TODO(rcs): Remove this flag as soon as http://crbug.com/339237 is resolved. |
92 LOAD_FLAG(BYPASS_DATA_REDUCTION_PROXY, 1 << 19) | 88 LOAD_FLAG(BYPASS_DATA_REDUCTION_PROXY, 1 << 18) |
93 | 89 |
94 // Indicates the the request is an asynchronous revalidation. | 90 // Indicates the the request is an asynchronous revalidation. |
95 LOAD_FLAG(ASYNC_REVALIDATION, 1 << 20) | 91 LOAD_FLAG(ASYNC_REVALIDATION, 1 << 19) |
OLD | NEW |