Home | History | Annotate | Download | only in update_manager

Lines Matching refs:url_idx

365   result->download_url_idx = backoff_url_result.url_idx;
714 result->url_idx = -1;
757 int url_idx = update_state.last_download_url_idx;
758 if (url_idx < 0)
759 url_idx = -1;
768 // failures allowed, etc. When this ends, |url_idx| will point to the last URL
782 if (is_first && url_idx >= 0 && used_url_idx != url_idx) {
784 << ") not as expected (" << url_idx << ")";
787 url_idx = used_url_idx;
788 if (url_idx < 0 || url_idx >= num_urls) {
790 << url_idx << ")";
814 if (url_idx < prev_url_idx) {
816 << prev_url_idx << "->" << url_idx
821 url_idx = -1;
826 if (url_idx > prev_url_idx) {
836 prev_url_idx = url_idx;
842 if (url_idx < 0 || do_advance_url) {
846 if (++url_idx == num_urls) {
847 url_idx = 0;
854 start_url_idx = url_idx;
855 else if (url_idx == start_url_idx)
856 url_idx = -1; // No usable URL.
857 } while (url_idx >= 0 &&
858 !IsUrlUsable(update_state.download_urls[url_idx], http_allowed));
867 if (url_idx >= 0 && is_failure_occurred && may_backoff) {
889 result->url_idx = url_idx;