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 12 matching lines...) Expand all Loading... |
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 // This is a navigation that will not be intercepted by any registered | 32 // This is a navigation that will not be intercepted by any registered |
33 // URLRequest::Interceptors. | 33 // net::URLRequest::Interceptors. |
34 LOAD_FLAG(DISABLE_INTERCEPT, 1 << 5) | 34 LOAD_FLAG(DISABLE_INTERCEPT, 1 << 5) |
35 | 35 |
36 // If present, upload progress messages should be provided to initiator. | 36 // If present, upload progress messages should be provided to initiator. |
37 LOAD_FLAG(ENABLE_UPLOAD_PROGRESS, 1 << 6) | 37 LOAD_FLAG(ENABLE_UPLOAD_PROGRESS, 1 << 6) |
38 | 38 |
39 // If present, collect load timing for the request. | 39 // If present, collect load timing for the request. |
40 LOAD_FLAG(ENABLE_LOAD_TIMING, 1 << 7) | 40 LOAD_FLAG(ENABLE_LOAD_TIMING, 1 << 7) |
41 | 41 |
42 // If present, ignores certificate mismatches with the domain name. | 42 // If present, ignores certificate mismatches with the domain name. |
43 // (The default behavior is to trigger an OnSSLCertificateError callback.) | 43 // (The default behavior is to trigger an OnSSLCertificateError callback.) |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // If present, intercept actual request/response headers from network stack | 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 | 96 // and report them to renderer. This includes cookies, so the flag is only |
97 // respected if renderer has CanReadRawCookies capability in the security | 97 // respected if renderer has CanReadRawCookies capability in the security |
98 // policy. | 98 // policy. |
99 LOAD_FLAG(REPORT_RAW_HEADERS, 1 << 22) | 99 LOAD_FLAG(REPORT_RAW_HEADERS, 1 << 22) |
100 | 100 |
101 // Indicates that this load was motivated by the rel=prefetch feature, | 101 // Indicates that this load was motivated by the rel=prefetch feature, |
102 // and is (in theory) not intended for the current frame. | 102 // and is (in theory) not intended for the current frame. |
103 LOAD_FLAG(PREFETCH, 1 << 23) | 103 LOAD_FLAG(PREFETCH, 1 << 23) |
104 | 104 |
OLD | NEW |