| Index: third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h
|
| diff --git a/third_party/WebKit/public/web/WebURLLoaderOptions.h b/third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h
|
| similarity index 78%
|
| rename from third_party/WebKit/public/web/WebURLLoaderOptions.h
|
| rename to third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h
|
| index 17e242ea2e40017e7a2f10adcb42c5bfa588449b..c8e5f5e397d00d1d8f849bca00ff19ee5f0d53a7 100644
|
| --- a/third_party/WebKit/public/web/WebURLLoaderOptions.h
|
| +++ b/third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h
|
| @@ -28,12 +28,12 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WebURLLoaderOptions_h
|
| -#define WebURLLoaderOptions_h
|
| +#ifndef WebAssociatedURLLoaderOptions_h
|
| +#define WebAssociatedURLLoaderOptions_h
|
|
|
| namespace blink {
|
|
|
| -struct WebURLLoaderOptions {
|
| +struct WebAssociatedURLLoaderOptions {
|
| enum CrossOriginRequestPolicy {
|
| CrossOriginRequestPolicyDeny,
|
| CrossOriginRequestPolicyUseAccessControl,
|
| @@ -42,20 +42,21 @@ struct WebURLLoaderOptions {
|
|
|
| enum PreflightPolicy { ConsiderPreflight, ForcePreflight, PreventPreflight };
|
|
|
| - WebURLLoaderOptions()
|
| + WebAssociatedURLLoaderOptions()
|
| : untrustedHTTP(false),
|
| allowCredentials(false),
|
| exposeAllResponseHeaders(false),
|
| preflightPolicy(ConsiderPreflight),
|
| crossOriginRequestPolicy(CrossOriginRequestPolicyDeny) {}
|
|
|
| - bool untrustedHTTP; // Whether to validate the method and headers as if this
|
| - // was an XMLHttpRequest.
|
| - bool allowCredentials; // Whether to send HTTP credentials and cookies with
|
| - // the request.
|
| - bool exposeAllResponseHeaders; // If policy is to use access control, whether
|
| - // to expose non-whitelisted response headers
|
| - // to the client.
|
| + // Whether to validate the method and headers as if this was an
|
| + // XMLHttpRequest.
|
| + bool untrustedHTTP;
|
| + // Whether to send HTTP credentials and cookies with the request.
|
| + bool allowCredentials;
|
| + // If policy is to use access control, whether to expose non-whitelisted
|
| + // response headers to the client.
|
| + bool exposeAllResponseHeaders;
|
| PreflightPolicy preflightPolicy;
|
| CrossOriginRequestPolicy crossOriginRequestPolicy;
|
| };
|
|
|