|
Lines 75-87
enum class CachingPolicy : uint8_t {
a/Source/WebCore/loader/ResourceLoaderOptions.h_sec1
|
| 75 |
DisallowCaching |
75 |
DisallowCaching |
| 76 |
}; |
76 |
}; |
| 77 |
|
77 |
|
|
|
78 |
enum class ClientCredentialPolicy : uint8_t { |
| 79 |
CannotAskClientForCredentials, |
| 80 |
MayAskClientForCredentials |
| 81 |
}; |
| 82 |
|
| 78 |
struct ResourceLoaderOptions : public FetchOptions { |
83 |
struct ResourceLoaderOptions : public FetchOptions { |
| 79 |
ResourceLoaderOptions() |
84 |
ResourceLoaderOptions() |
| 80 |
: m_sendLoadCallbacks(DoNotSendCallbacks) |
85 |
: m_sendLoadCallbacks(DoNotSendCallbacks) |
| 81 |
, m_sniffContent(DoNotSniffContent) |
86 |
, m_sniffContent(DoNotSniffContent) |
| 82 |
, m_dataBufferingPolicy(BufferData) |
87 |
, m_dataBufferingPolicy(BufferData) |
| 83 |
, m_allowCredentials(DoNotAllowStoredCredentials) |
88 |
, m_allowCredentials(DoNotAllowStoredCredentials) |
| 84 |
, m_clientCredentialPolicy(DoNotAskClientForAnyCredentials) |
|
|
| 85 |
, m_securityCheck(DoSecurityCheck) |
89 |
, m_securityCheck(DoSecurityCheck) |
| 86 |
, m_certificateInfoPolicy(DoNotIncludeCertificateInfo) |
90 |
, m_certificateInfoPolicy(DoNotIncludeCertificateInfo) |
| 87 |
{ |
91 |
{ |
|
Lines 92-103
struct ResourceLoaderOptions : public FetchOptions {
a/Source/WebCore/loader/ResourceLoaderOptions.h_sec2
|
| 92 |
, m_sniffContent(sniffContent) |
96 |
, m_sniffContent(sniffContent) |
| 93 |
, m_dataBufferingPolicy(dataBufferingPolicy) |
97 |
, m_dataBufferingPolicy(dataBufferingPolicy) |
| 94 |
, m_allowCredentials(allowCredentials) |
98 |
, m_allowCredentials(allowCredentials) |
| 95 |
, m_clientCredentialPolicy(credentialPolicy) |
|
|
| 96 |
, m_securityCheck(securityCheck) |
99 |
, m_securityCheck(securityCheck) |
| 97 |
, m_certificateInfoPolicy(certificateInfoPolicy) |
100 |
, m_certificateInfoPolicy(certificateInfoPolicy) |
| 98 |
, m_contentSecurityPolicyImposition(contentSecurityPolicyImposition) |
101 |
, m_contentSecurityPolicyImposition(contentSecurityPolicyImposition) |
| 99 |
, m_defersLoadingPolicy(defersLoadingPolicy) |
102 |
, m_defersLoadingPolicy(defersLoadingPolicy) |
| 100 |
, m_cachingPolicy(cachingPolicy) |
103 |
, m_cachingPolicy(cachingPolicy) |
|
|
104 |
, clientCredentialPolicy(credentialPolicy) |
| 101 |
{ |
105 |
{ |
| 102 |
this->credentials = credentials; |
106 |
this->credentials = credentials; |
| 103 |
this->mode = mode; |
107 |
this->mode = mode; |
|
Lines 111-118
struct ResourceLoaderOptions : public FetchOptions {
a/Source/WebCore/loader/ResourceLoaderOptions.h_sec3
|
| 111 |
void setDataBufferingPolicy(DataBufferingPolicy policy) { m_dataBufferingPolicy = policy; } |
115 |
void setDataBufferingPolicy(DataBufferingPolicy policy) { m_dataBufferingPolicy = policy; } |
| 112 |
StoredCredentials allowCredentials() const { return static_cast<StoredCredentials>(m_allowCredentials); } |
116 |
StoredCredentials allowCredentials() const { return static_cast<StoredCredentials>(m_allowCredentials); } |
| 113 |
void setAllowCredentials(StoredCredentials allow) { m_allowCredentials = allow; } |
117 |
void setAllowCredentials(StoredCredentials allow) { m_allowCredentials = allow; } |
| 114 |
ClientCredentialPolicy clientCredentialPolicy() const { return static_cast<ClientCredentialPolicy>(m_clientCredentialPolicy); } |
|
|
| 115 |
void setClientCredentialPolicy(ClientCredentialPolicy policy) { m_clientCredentialPolicy = policy; } |
| 116 |
SecurityCheckPolicy securityCheck() const { return static_cast<SecurityCheckPolicy>(m_securityCheck); } |
118 |
SecurityCheckPolicy securityCheck() const { return static_cast<SecurityCheckPolicy>(m_securityCheck); } |
| 117 |
void setSecurityCheck(SecurityCheckPolicy check) { m_securityCheck = check; } |
119 |
void setSecurityCheck(SecurityCheckPolicy check) { m_securityCheck = check; } |
| 118 |
CertificateInfoPolicy certificateInfoPolicy() const { return static_cast<CertificateInfoPolicy>(m_certificateInfoPolicy); } |
120 |
CertificateInfoPolicy certificateInfoPolicy() const { return static_cast<CertificateInfoPolicy>(m_certificateInfoPolicy); } |
|
Lines 128-139
struct ResourceLoaderOptions : public FetchOptions {
a/Source/WebCore/loader/ResourceLoaderOptions.h_sec4
|
| 128 |
unsigned m_sniffContent : 1; |
130 |
unsigned m_sniffContent : 1; |
| 129 |
unsigned m_dataBufferingPolicy : 1; |
131 |
unsigned m_dataBufferingPolicy : 1; |
| 130 |
unsigned m_allowCredentials : 1; // Whether HTTP credentials and cookies are sent with the request. |
132 |
unsigned m_allowCredentials : 1; // Whether HTTP credentials and cookies are sent with the request. |
| 131 |
unsigned m_clientCredentialPolicy : 2; // When we should ask the client for credentials (if we allow credentials at all). |
|
|
| 132 |
unsigned m_securityCheck : 1; |
133 |
unsigned m_securityCheck : 1; |
| 133 |
unsigned m_certificateInfoPolicy : 1; // Whether the response should include certificate info. |
134 |
unsigned m_certificateInfoPolicy : 1; // Whether the response should include certificate info. |
| 134 |
ContentSecurityPolicyImposition m_contentSecurityPolicyImposition { ContentSecurityPolicyImposition::DoPolicyCheck }; |
135 |
ContentSecurityPolicyImposition m_contentSecurityPolicyImposition { ContentSecurityPolicyImposition::DoPolicyCheck }; |
| 135 |
DefersLoadingPolicy m_defersLoadingPolicy { DefersLoadingPolicy::AllowDefersLoading }; |
136 |
DefersLoadingPolicy m_defersLoadingPolicy { DefersLoadingPolicy::AllowDefersLoading }; |
| 136 |
CachingPolicy m_cachingPolicy { CachingPolicy::AllowCaching }; |
137 |
CachingPolicy m_cachingPolicy { CachingPolicy::AllowCaching }; |
|
|
138 |
|
| 139 |
ClientCredentialPolicy clientCredentialPolicy { ClientCredentialPolicy::CannotAskClientForCredentials }; |
| 137 |
}; |
140 |
}; |
| 138 |
|
141 |
|
| 139 |
} // namespace WebCore |
142 |
} // namespace WebCore |