| 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 // This hint tells the http cache to provide a native file handle | |
| 42 // of the cached file to the renderer process. | |
| 43 LOAD_ENABLE_DOWNLOAD_FILE = 1 << 7, | |
| 44 | |
| 45 // If present, ignores certificate mismatches with the domain name. | 40 // If present, ignores certificate mismatches with the domain name. |
| 46 // (The default behavior is to trigger an OnSSLCertificateError callback.) | 41 // (The default behavior is to trigger an OnSSLCertificateError callback.) |
| 47 LOAD_IGNORE_CERT_COMMON_NAME_INVALID = 1 << 8, | 42 LOAD_IGNORE_CERT_COMMON_NAME_INVALID = 1 << 8, |
| 48 | 43 |
| 49 // If present, ignores certificate expiration dates | 44 // If present, ignores certificate expiration dates |
| 50 // (The default behavior is to trigger an OnSSLCertificateError callback). | 45 // (The default behavior is to trigger an OnSSLCertificateError callback). |
| 51 LOAD_IGNORE_CERT_DATE_INVALID = 1 << 9, | 46 LOAD_IGNORE_CERT_DATE_INVALID = 1 << 9, |
| 52 | 47 |
| 53 // If present, trusts all certificate authorities | 48 // If present, trusts all certificate authorities |
| 54 // (The default behavior is to trigger an OnSSLCertificateError callback). | 49 // (The default behavior is to trigger an OnSSLCertificateError callback). |
| (...skipping 15 matching lines...) Expand all Loading... |
| 70 // to avoid having a circular dependency. | 65 // to avoid having a circular dependency. |
| 71 LOAD_BYPASS_PROXY = 1 << 14, | 66 LOAD_BYPASS_PROXY = 1 << 14, |
| 72 | 67 |
| 73 // Indicate this request is for a download, as opposed to viewing. | 68 // Indicate this request is for a download, as opposed to viewing. |
| 74 LOAD_IS_DOWNLOAD = 1 << 15, | 69 LOAD_IS_DOWNLOAD = 1 << 15, |
| 75 }; | 70 }; |
| 76 | 71 |
| 77 } // namespace net | 72 } // namespace net |
| 78 | 73 |
| 79 #endif // NET_BASE_LOAD_FLAGS_H__ | 74 #endif // NET_BASE_LOAD_FLAGS_H__ |
| OLD | NEW |