| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 bool m_forceDoNotAllowStoredCredentials; | 134 bool m_forceDoNotAllowStoredCredentials; |
| 135 RefPtr<SecurityOrigin> m_securityOrigin; | 135 RefPtr<SecurityOrigin> m_securityOrigin; |
| 136 | 136 |
| 137 // True while the initial URL and all the URLs of the redirects | 137 // True while the initial URL and all the URLs of the redirects |
| 138 // this object has followed, if any, are same-origin to | 138 // this object has followed, if any, are same-origin to |
| 139 // securityOrigin(). | 139 // securityOrigin(). |
| 140 bool m_sameOriginRequest; | 140 bool m_sameOriginRequest; |
| 141 // Set to true if the current request is cross-origin and not simple. | 141 // Set to true if the current request is cross-origin and not simple. |
| 142 bool m_crossOriginNonSimpleRequest; | 142 bool m_crossOriginNonSimpleRequest; |
| 143 | 143 |
| 144 // Set to true when the response data is given to a data consumer |
| 145 // handle. |
| 146 bool m_isUsingDataConsumerHandle; |
| 147 |
| 144 const bool m_async; | 148 const bool m_async; |
| 145 | 149 |
| 146 // Holds the original request context (used for sanity checks). | 150 // Holds the original request context (used for sanity checks). |
| 147 const WebURLRequest::RequestContext m_requestContext; | 151 const WebURLRequest::RequestContext m_requestContext; |
| 148 | 152 |
| 149 // Holds the original request for fallback in case the Service Worker | 153 // Holds the original request for fallback in case the Service Worker |
| 150 // does not respond. | 154 // does not respond. |
| 151 OwnPtr<ResourceRequest> m_fallbackRequestForServiceWorker; | 155 OwnPtr<ResourceRequest> m_fallbackRequestForServiceWorker; |
| 152 | 156 |
| 153 // Holds the original request and options for it during preflight | 157 // Holds the original request and options for it during preflight |
| 154 // request handling phase. | 158 // request handling phase. |
| 155 OwnPtr<ResourceRequest> m_actualRequest; | 159 OwnPtr<ResourceRequest> m_actualRequest; |
| 156 OwnPtr<ResourceLoaderOptions> m_actualOptions; | 160 OwnPtr<ResourceLoaderOptions> m_actualOptions; |
| 157 | 161 |
| 158 HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers i
n case of a cross-origin redirect. | 162 HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers i
n case of a cross-origin redirect. |
| 159 Timer<DocumentThreadableLoader> m_timeoutTimer; | 163 Timer<DocumentThreadableLoader> m_timeoutTimer; |
| 160 double m_requestStartedSeconds; // Time an asynchronous fetch request is
started | 164 double m_requestStartedSeconds; // Time an asynchronous fetch request is
started |
| 161 | 165 |
| 162 // Max number of times that this DocumentThreadableLoader can follow | 166 // Max number of times that this DocumentThreadableLoader can follow |
| 163 // cross-origin redirects. | 167 // cross-origin redirects. |
| 164 // This is used to limit the number of redirects. | 168 // This is used to limit the number of redirects. |
| 165 // But this value is not the max number of total redirects allowed, | 169 // But this value is not the max number of total redirects allowed, |
| 166 // because same-origin redirects are not counted here. | 170 // because same-origin redirects are not counted here. |
| 167 int m_corsRedirectLimit; | 171 int m_corsRedirectLimit; |
| 168 }; | 172 }; |
| 169 | 173 |
| 170 } // namespace blink | 174 } // namespace blink |
| 171 | 175 |
| 172 #endif // DocumentThreadableLoader_h | 176 #endif // DocumentThreadableLoader_h |
| OLD | NEW |