| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 LOAD_FLAG(IGNORE_ALL_CERT_ERRORS, 1 << 19) | 84 LOAD_FLAG(IGNORE_ALL_CERT_ERRORS, 1 << 19) |
| 85 | 85 |
| 86 // Indicate that this is a top level frame, so that we don't assume it is a | 86 // Indicate that this is a top level frame, so that we don't assume it is a |
| 87 // subresource and speculatively pre-connect or pre-resolve when a referring | 87 // subresource and speculatively pre-connect or pre-resolve when a referring |
| 88 // page is loaded. | 88 // page is loaded. |
| 89 LOAD_FLAG(MAIN_FRAME, 1 << 20) | 89 LOAD_FLAG(MAIN_FRAME, 1 << 20) |
| 90 | 90 |
| 91 // Indicate that this is a sub frame, and hence it might have subresources that | 91 // Indicate that this is a sub frame, and hence it might have subresources that |
| 92 // should be speculatively resolved, or even speculatively preconnected. | 92 // should be speculatively resolved, or even speculatively preconnected. |
| 93 LOAD_FLAG(SUB_FRAME, 1 << 21) | 93 LOAD_FLAG(SUB_FRAME, 1 << 21) |
| 94 |
| 95 // If present, intercept actual request/response headers from network stack |
| 96 // and report them to renderer. This includes cookies, so the flag is only |
| 97 // respected if renderer has CanReadRawCookies capability in the security |
| 98 // policy. |
| 99 LOAD_FLAG(REPORT_RAW_HEADERS, 1 << 22) |
| OLD | NEW |