- Add cache awareness to CefURLRequest (issue #2283)

- Properly set referer values on server requests (issue #2278)
This commit is contained in:
Marshall Greenblatt
2017-11-17 11:33:50 -05:00
parent 7e783d6a37
commit facee1f750
5 changed files with 1363 additions and 412 deletions

View File

@@ -1222,15 +1222,26 @@ typedef enum {
UR_FLAG_NONE = 0,
///
// If set the cache will be skipped when handling the request.
// If set the cache will be skipped when handling the request. Setting this
// value is equivalent to specifying the "Cache-Control: no-cache" request
// header. Setting this value in combination with UR_FLAG_ONLY_FROM_CACHE will
// cause the request to fail.
///
UR_FLAG_SKIP_CACHE = 1 << 0,
///
// If set the request will fail if it cannot be served from the cache (or some
// equivalent local store). Setting this value is equivalent to specifying the
// "Cache-Control: only-if-cached" request header. Setting this value in
// combination with UR_FLAG_SKIP_CACHE will cause the request to fail.
///
UR_FLAG_ONLY_FROM_CACHE = 1 << 1,
///
// If set user name, password, and cookies may be sent with the request, and
// cookies may be saved from the response.
///
UR_FLAG_ALLOW_CACHED_CREDENTIALS = 1 << 1,
UR_FLAG_ALLOW_STORED_CREDENTIALS = 1 << 2,
///
// If set upload progress events will be generated when a request has a body.
@@ -1240,14 +1251,14 @@ typedef enum {
///
// If set the CefURLRequestClient::OnDownloadData method will not be called.
///
UR_FLAG_NO_DOWNLOAD_DATA = 1 << 6,
UR_FLAG_NO_DOWNLOAD_DATA = 1 << 4,
///
// If set 5XX redirect errors will be propagated to the observer instead of
// automatically re-tried. This currently only applies for requests
// originated in the browser process.
///
UR_FLAG_NO_RETRY_ON_5XX = 1 << 7,
UR_FLAG_NO_RETRY_ON_5XX = 1 << 5,
} cef_urlrequest_flags_t;
///