void DocumentThreadableLoader::didTimeout(TimerBase* timer) { DCHECK_EQ(timer, &m_timeoutTimer); // Using values from net/base/net_error_list.h ERR_TIMED_OUT, Same as existing // FIXME above - this error should be coming from FrameLoaderClient to be // identifiable. static const int timeoutError = -7; ResourceError error("net", timeoutError, resource()->url(), String()); error.setIsTimeout(true); cancelWithError(error); }
void DocumentThreadableLoader::didTimeout(Timer<DocumentThreadableLoader>* timer) { ASSERT_UNUSED(timer, timer == &m_timeoutTimer); // Using values from net/base/net_error_list.h ERR_TIMED_OUT, // Same as existing FIXME above - this error should be coming from FrameLoaderClient to be identifiable. static const int timeoutError = -7; ResourceError error("net", timeoutError, resource()->url(), String()); error.setIsTimeout(true); cancelWithError(error); // |this| may be dead here. }
void DocumentThreadableLoader::cancel() { cancelWithError(ResourceError()); }
void DocumentThreadableLoader::cancel() { cancelWithError(ResourceError()); // |this| may be dead here. }