| 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 20 matching lines...) Expand all Loading... |
| 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. | 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. |
| 41 LOAD_ENABLE_DOWNLOAD_FILE = 1 << 7, | 43 LOAD_ENABLE_DOWNLOAD_FILE = 1 << 7, |
| 42 | 44 |
| 43 // If present, ignores certificate mismatches with the domain name. | 45 // If present, ignores certificate mismatches with the domain name. |
| 44 // (The default behavior is to trigger an OnSSLCertificateError callback.) | 46 // (The default behavior is to trigger an OnSSLCertificateError callback.) |
| 45 LOAD_IGNORE_CERT_COMMON_NAME_INVALID = 1 << 8, | 47 LOAD_IGNORE_CERT_COMMON_NAME_INVALID = 1 << 8, |
| 46 | 48 |
| 47 // If present, ignores certificate expiration dates | 49 // If present, ignores certificate expiration dates |
| 48 // (The default behavior is to trigger an OnSSLCertificateError callback). | 50 // (The default behavior is to trigger an OnSSLCertificateError callback). |
| 49 LOAD_IGNORE_CERT_DATE_INVALID = 1 << 9, | 51 LOAD_IGNORE_CERT_DATE_INVALID = 1 << 9, |
| 50 | 52 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 64 // cookies or updating existing ones. | 66 // cookies or updating existing ones. |
| 65 LOAD_DO_NOT_SAVE_COOKIES = 1 << 13, | 67 LOAD_DO_NOT_SAVE_COOKIES = 1 << 13, |
| 66 | 68 |
| 67 // An SDCH dictionary was advertised, and an SDCH encoded response is | 69 // An SDCH dictionary was advertised, and an SDCH encoded response is |
| 68 // possible. | 70 // possible. |
| 69 LOAD_SDCH_DICTIONARY_ADVERTISED = 1 << 14, | 71 LOAD_SDCH_DICTIONARY_ADVERTISED = 1 << 14, |
| 70 | 72 |
| 71 // Do not resolve proxies. This override is used when downloading PAC files | 73 // Do not resolve proxies. This override is used when downloading PAC files |
| 72 // to avoid having a circular dependency. | 74 // to avoid having a circular dependency. |
| 73 LOAD_BYPASS_PROXY = 1 << 15, | 75 LOAD_BYPASS_PROXY = 1 << 15, |
| 76 |
| 77 // Indicate this request is for a download, as opposed to viewing. |
| 78 LOAD_IS_DOWNLOAD = 1 << 16, |
| 74 }; | 79 }; |
| 75 | 80 |
| 76 } // namespace net | 81 } // namespace net |
| 77 | 82 |
| 78 #endif // NET_BASE_LOAD_FLAGS_H__ | 83 #endif // NET_BASE_LOAD_FLAGS_H__ |
| OLD | NEW |