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

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

Issue 891263002: Prevent calling didReceiveData()/didFinishLoading() after didFailAccessControlCheck() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More assert. Created 5 years, 10 months 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers i n case of a cross-origin redirect. 147 HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers i n case of a cross-origin redirect.
148 Timer<DocumentThreadableLoader> m_timeoutTimer; 148 Timer<DocumentThreadableLoader> m_timeoutTimer;
149 double m_requestStartedSeconds; // Time an asynchronous fetch request is started 149 double m_requestStartedSeconds; // Time an asynchronous fetch request is started
150 150
151 // Max number of times that this DocumentThreadableLoader can follow 151 // Max number of times that this DocumentThreadableLoader can follow
152 // cross-origin redirects. 152 // cross-origin redirects.
153 // This is used to limit the number of redirects. 153 // This is used to limit the number of redirects.
154 // But this value is not the max number of total redirects allowed, 154 // But this value is not the max number of total redirects allowed,
155 // because same-origin redirects are not counted here. 155 // because same-origin redirects are not counted here.
156 int m_corsRedirectLimit; 156 int m_corsRedirectLimit;
157
158 bool m_accessControlCheckFailed;
157 }; 159 };
158 160
159 } // namespace blink 161 } // namespace blink
160 162
161 #endif // DocumentThreadableLoader_h 163 #endif // DocumentThreadableLoader_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/DocumentThreadableLoader.cpp » ('j') | Source/core/loader/DocumentThreadableLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698