OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef NET_BASE_LOAD_FLAGS_H__ | 5 #ifndef NET_BASE_LOAD_FLAGS_H__ |
6 #define NET_BASE_LOAD_FLAGS_H__ | 6 #define NET_BASE_LOAD_FLAGS_H__ |
7 | 7 |
8 namespace net { | 8 namespace net { |
9 | 9 |
10 // These flags provide metadata about the type of the load request. They are | 10 // These flags provide metadata about the type of the load request. They are |
(...skipping 19 matching lines...) Expand all Loading... |
30 // impact the HTTP request headers. | 30 // impact the HTTP request headers. |
31 LOAD_DISABLE_CACHE = 1 << 4, | 31 LOAD_DISABLE_CACHE = 1 << 4, |
32 | 32 |
33 // This is a navigation that will not be intercepted by any registered | 33 // This is a navigation that will not be intercepted by any registered |
34 // URLRequest::Interceptors. | 34 // URLRequest::Interceptors. |
35 LOAD_DISABLE_INTERCEPT = 1 << 5, | 35 LOAD_DISABLE_INTERCEPT = 1 << 5, |
36 | 36 |
37 // If present, upload progress messages should be provided to initiator. | 37 // If present, upload progress messages should be provided to initiator. |
38 LOAD_ENABLE_UPLOAD_PROGRESS = 1 << 6, | 38 LOAD_ENABLE_UPLOAD_PROGRESS = 1 << 6, |
39 | 39 |
| 40 // If present, try to download the resource to a standalone file. |
| 41 LOAD_ENABLE_DOWNLOAD_FILE = 1 << 7, |
| 42 |
40 // If present, ignores certificate mismatches with the domain name. | 43 // If present, ignores certificate mismatches with the domain name. |
41 // (The default behavior is to trigger an OnSSLCertificateError callback.) | 44 // (The default behavior is to trigger an OnSSLCertificateError callback.) |
42 LOAD_IGNORE_CERT_COMMON_NAME_INVALID = 1 << 8, | 45 LOAD_IGNORE_CERT_COMMON_NAME_INVALID = 1 << 8, |
43 | 46 |
44 // If present, ignores certificate expiration dates | 47 // If present, ignores certificate expiration dates |
45 // (The default behavior is to trigger an OnSSLCertificateError callback). | 48 // (The default behavior is to trigger an OnSSLCertificateError callback). |
46 LOAD_IGNORE_CERT_DATE_INVALID = 1 << 9, | 49 LOAD_IGNORE_CERT_DATE_INVALID = 1 << 9, |
47 | 50 |
48 // If present, trusts all certificate authorities | 51 // If present, trusts all certificate authorities |
49 // (The default behavior is to trigger an OnSSLCertificateError callback). | 52 // (The default behavior is to trigger an OnSSLCertificateError callback). |
(...skipping 16 matching lines...) Expand all Loading... |
66 LOAD_SDCH_DICTIONARY_ADVERTISED = 1 << 14, | 69 LOAD_SDCH_DICTIONARY_ADVERTISED = 1 << 14, |
67 | 70 |
68 // Do not resolve proxies. This override is used when downloading PAC files | 71 // Do not resolve proxies. This override is used when downloading PAC files |
69 // to avoid having a circular dependency. | 72 // to avoid having a circular dependency. |
70 LOAD_BYPASS_PROXY = 1 << 15, | 73 LOAD_BYPASS_PROXY = 1 << 15, |
71 }; | 74 }; |
72 | 75 |
73 } // namespace net | 76 } // namespace net |
74 | 77 |
75 #endif // NET_BASE_LOAD_FLAGS_H__ | 78 #endif // NET_BASE_LOAD_FLAGS_H__ |
OLD | NEW |