Lines Matching refs:url_idx

332   result->download_url_idx = backoff_url_result.url_idx;  in UpdateCanStart()
681 result->url_idx = -1; in UpdateBackoffAndDownloadUrl()
724 int url_idx = update_state.last_download_url_idx; in UpdateBackoffAndDownloadUrl() local
725 if (url_idx < 0) in UpdateBackoffAndDownloadUrl()
726 url_idx = -1; in UpdateBackoffAndDownloadUrl()
749 if (is_first && url_idx >= 0 && used_url_idx != url_idx) { in UpdateBackoffAndDownloadUrl()
751 << ") not as expected (" << url_idx << ")"; in UpdateBackoffAndDownloadUrl()
754 url_idx = used_url_idx; in UpdateBackoffAndDownloadUrl()
755 if (url_idx < 0 || url_idx >= num_urls) { in UpdateBackoffAndDownloadUrl()
757 << url_idx << ")"; in UpdateBackoffAndDownloadUrl()
781 if (url_idx < prev_url_idx) { in UpdateBackoffAndDownloadUrl()
783 << prev_url_idx << "->" << url_idx in UpdateBackoffAndDownloadUrl()
788 url_idx = -1; in UpdateBackoffAndDownloadUrl()
793 if (url_idx > prev_url_idx) { in UpdateBackoffAndDownloadUrl()
803 prev_url_idx = url_idx; in UpdateBackoffAndDownloadUrl()
809 if (url_idx < 0 || do_advance_url) { in UpdateBackoffAndDownloadUrl()
813 if (++url_idx == num_urls) { in UpdateBackoffAndDownloadUrl()
814 url_idx = 0; in UpdateBackoffAndDownloadUrl()
821 start_url_idx = url_idx; in UpdateBackoffAndDownloadUrl()
822 else if (url_idx == start_url_idx) in UpdateBackoffAndDownloadUrl()
823 url_idx = -1; // No usable URL. in UpdateBackoffAndDownloadUrl()
824 } while (url_idx >= 0 && in UpdateBackoffAndDownloadUrl()
825 !IsUrlUsable(update_state.download_urls[url_idx], http_allowed)); in UpdateBackoffAndDownloadUrl()
834 if (url_idx >= 0 && is_failure_occurred && may_backoff) { in UpdateBackoffAndDownloadUrl()
856 result->url_idx = url_idx; in UpdateBackoffAndDownloadUrl()