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

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

Issue 2576233004: Use TaskRunnerTimer in DocumentThreadableLoader (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 ResourceRequest m_fallbackRequestForServiceWorker; 213 ResourceRequest m_fallbackRequestForServiceWorker;
214 214
215 // Holds the original request and options for it during preflight request 215 // Holds the original request and options for it during preflight request
216 // handling phase. 216 // handling phase.
217 ResourceRequest m_actualRequest; 217 ResourceRequest m_actualRequest;
218 ResourceLoaderOptions m_actualOptions; 218 ResourceLoaderOptions m_actualOptions;
219 219
220 // stores request headers in case of a cross-origin redirect. 220 // stores request headers in case of a cross-origin redirect.
221 HTTPHeaderMap m_requestHeaders; 221 HTTPHeaderMap m_requestHeaders;
222 222
223 Timer<DocumentThreadableLoader> m_timeoutTimer; 223 TaskRunnerTimer<DocumentThreadableLoader> m_timeoutTimer;
224 double 224 double
225 m_requestStartedSeconds; // Time an asynchronous fetch request is started 225 m_requestStartedSeconds; // Time an asynchronous fetch request is started
226 226
227 // Max number of times that this DocumentThreadableLoader can follow 227 // Max number of times that this DocumentThreadableLoader can follow
228 // cross-origin redirects. This is used to limit the number of redirects. But 228 // cross-origin redirects. This is used to limit the number of redirects. But
229 // this value is not the max number of total redirects allowed, because 229 // this value is not the max number of total redirects allowed, because
230 // same-origin redirects are not counted here. 230 // same-origin redirects are not counted here.
231 int m_corsRedirectLimit; 231 int m_corsRedirectLimit;
232 232
233 WebURLRequest::FetchRedirectMode m_redirectMode; 233 WebURLRequest::FetchRedirectMode m_redirectMode;
234 234
235 // Holds the referrer after a redirect response was received. This referrer is 235 // Holds the referrer after a redirect response was received. This referrer is
236 // used to populate the HTTP Referer header when following the redirect. 236 // used to populate the HTTP Referer header when following the redirect.
237 bool m_overrideReferrer; 237 bool m_overrideReferrer;
238 Referrer m_referrerAfterRedirect; 238 Referrer m_referrerAfterRedirect;
239 239
240 RawResourceClientStateChecker m_checker; 240 RawResourceClientStateChecker m_checker;
241 }; 241 };
242 242
243 } // namespace blink 243 } // namespace blink
244 244
245 #endif // DocumentThreadableLoader_h 245 #endif // DocumentThreadableLoader_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698