Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h

Issue 2421093003: Allow redirects for requests that require preflight. (Closed)
Patch Set: Fix failing test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013, Intel Corporation 3 * Copyright (C) 2013, Intel Corporation
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // m_securityOrigin. In such a case, build a ResourceLoaderOptions with 192 // m_securityOrigin. In such a case, build a ResourceLoaderOptions with
193 // up-to-date values from them and this variable, and use it. 193 // up-to-date values from them and this variable, and use it.
194 const ResourceLoaderOptions m_resourceLoaderOptions; 194 const ResourceLoaderOptions m_resourceLoaderOptions;
195 195
196 bool m_forceDoNotAllowStoredCredentials; 196 bool m_forceDoNotAllowStoredCredentials;
197 RefPtr<SecurityOrigin> m_securityOrigin; 197 RefPtr<SecurityOrigin> m_securityOrigin;
198 198
199 // True while the initial URL and all the URLs of the redirects this object 199 // True while the initial URL and all the URLs of the redirects this object
200 // has followed, if any, are same-origin to getSecurityOrigin(). 200 // has followed, if any, are same-origin to getSecurityOrigin().
201 bool m_sameOriginRequest; 201 bool m_sameOriginRequest;
202 // Set to true if the current request is cross-origin and not simple.
203 bool m_crossOriginNonSimpleRequest;
204 202
205 // Set to true when the response data is given to a data consumer handle. 203 // Set to true when the response data is given to a data consumer handle.
206 bool m_isUsingDataConsumerHandle; 204 bool m_isUsingDataConsumerHandle;
207 205
208 const bool m_async; 206 const bool m_async;
209 207
210 // Holds the original request context (used for sanity checks). 208 // Holds the original request context (used for sanity checks).
211 WebURLRequest::RequestContext m_requestContext; 209 WebURLRequest::RequestContext m_requestContext;
212 210
213 // Holds the original request for fallback in case the Service Worker 211 // Holds the original request for fallback in case the Service Worker
(...skipping 24 matching lines...) Expand all
238 // used to populate the HTTP Referer header when following the redirect. 236 // used to populate the HTTP Referer header when following the redirect.
239 bool m_overrideReferrer; 237 bool m_overrideReferrer;
240 Referrer m_referrerAfterRedirect; 238 Referrer m_referrerAfterRedirect;
241 239
242 RawResourceClientStateChecker m_checker; 240 RawResourceClientStateChecker m_checker;
243 }; 241 };
244 242
245 } // namespace blink 243 } // namespace blink
246 244
247 #endif // DocumentThreadableLoader_h 245 #endif // DocumentThreadableLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698