OLD | NEW |
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 212 |
213 // Holds the original request for fallback in case the Service Worker | 213 // Holds the original request for fallback in case the Service Worker |
214 // does not respond. | 214 // does not respond. |
215 ResourceRequest m_fallbackRequestForServiceWorker; | 215 ResourceRequest m_fallbackRequestForServiceWorker; |
216 | 216 |
217 // Holds the original request and options for it during preflight request | 217 // Holds the original request and options for it during preflight request |
218 // handling phase. | 218 // handling phase. |
219 ResourceRequest m_actualRequest; | 219 ResourceRequest m_actualRequest; |
220 ResourceLoaderOptions m_actualOptions; | 220 ResourceLoaderOptions m_actualOptions; |
221 | 221 |
222 // stores simple request headers in case of a cross-origin redirect. | 222 // stores request headers in case of a cross-origin redirect. |
223 HTTPHeaderMap m_simpleRequestHeaders; | 223 HTTPHeaderMap m_requestHeaders; |
224 | 224 |
225 Timer<DocumentThreadableLoader> m_timeoutTimer; | 225 Timer<DocumentThreadableLoader> m_timeoutTimer; |
226 double | 226 double |
227 m_requestStartedSeconds; // Time an asynchronous fetch request is started | 227 m_requestStartedSeconds; // Time an asynchronous fetch request is started |
228 | 228 |
229 // Max number of times that this DocumentThreadableLoader can follow | 229 // Max number of times that this DocumentThreadableLoader can follow |
230 // cross-origin redirects. This is used to limit the number of redirects. But | 230 // cross-origin redirects. This is used to limit the number of redirects. But |
231 // this value is not the max number of total redirects allowed, because | 231 // this value is not the max number of total redirects allowed, because |
232 // same-origin redirects are not counted here. | 232 // same-origin redirects are not counted here. |
233 int m_corsRedirectLimit; | 233 int m_corsRedirectLimit; |
234 | 234 |
235 WebURLRequest::FetchRedirectMode m_redirectMode; | 235 WebURLRequest::FetchRedirectMode m_redirectMode; |
236 | 236 |
237 // Holds the referrer after a redirect response was received. This referrer is | 237 // Holds the referrer after a redirect response was received. This referrer is |
238 // used to populate the HTTP Referer header when following the redirect. | 238 // used to populate the HTTP Referer header when following the redirect. |
239 bool m_overrideReferrer; | 239 bool m_overrideReferrer; |
240 Referrer m_referrerAfterRedirect; | 240 Referrer m_referrerAfterRedirect; |
241 | 241 |
242 RawResourceClientStateChecker m_checker; | 242 RawResourceClientStateChecker m_checker; |
243 }; | 243 }; |
244 | 244 |
245 } // namespace blink | 245 } // namespace blink |
246 | 246 |
247 #endif // DocumentThreadableLoader_h | 247 #endif // DocumentThreadableLoader_h |
OLD | NEW |