Exemple #1
0
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.
}
Exemple #3
0
void DocumentThreadableLoader::cancel() {
  cancelWithError(ResourceError());
}
void DocumentThreadableLoader::cancel()
{
    cancelWithError(ResourceError());
    // |this| may be dead here.
}