server_index       73 net/dns/dns_session.cc                                      unsigned server_index,
server_index       75 net/dns/dns_session.cc     : session_(session), server_index_(server_index), socket_(socket.Pass()) {}
server_index      112 net/dns/dns_session.cc unsigned DnsSession::NextGoodServerIndex(unsigned server_index) {
server_index      113 net/dns/dns_session.cc   unsigned index = server_index;
server_index      118 net/dns/dns_session.cc                         server_stats_[server_index]->last_failure.is_null());
server_index      124 net/dns/dns_session.cc     if (server_stats_[server_index]->last_failure_count < config_.attempts) {
server_index      133 net/dns/dns_session.cc   } while (index != server_index);
server_index      140 net/dns/dns_session.cc void DnsSession::RecordServerFailure(unsigned server_index) {
server_index      142 net/dns/dns_session.cc       "AsyncDNS.ServerFailureIndex", server_index, 0, 10, 10);
server_index      143 net/dns/dns_session.cc   ++(server_stats_[server_index]->last_failure_count);
server_index      144 net/dns/dns_session.cc   server_stats_[server_index]->last_failure = base::Time::Now();
server_index      147 net/dns/dns_session.cc void DnsSession::RecordServerSuccess(unsigned server_index) {
server_index      148 net/dns/dns_session.cc   if (server_stats_[server_index]->last_success.is_null()) {
server_index      150 net/dns/dns_session.cc                            server_stats_[server_index]->last_failure_count);
server_index      153 net/dns/dns_session.cc                            server_stats_[server_index]->last_failure_count);
server_index      155 net/dns/dns_session.cc   server_stats_[server_index]->last_failure_count = 0;
server_index      156 net/dns/dns_session.cc   server_stats_[server_index]->last_failure = base::Time();
server_index      157 net/dns/dns_session.cc   server_stats_[server_index]->last_success = base::Time::Now();
server_index      160 net/dns/dns_session.cc void DnsSession::RecordRTT(unsigned server_index, base::TimeDelta rtt) {
server_index      161 net/dns/dns_session.cc   DCHECK_LT(server_index, server_stats_.size());
server_index      164 net/dns/dns_session.cc   base::TimeDelta timeout_jacobson = NextTimeoutFromJacobson(server_index, 0);
server_index      165 net/dns/dns_session.cc   base::TimeDelta timeout_histogram = NextTimeoutFromHistogram(server_index, 0);
server_index      176 net/dns/dns_session.cc   base::TimeDelta& estimate = server_stats_[server_index]->rtt_estimate;
server_index      177 net/dns/dns_session.cc   base::TimeDelta& deviation = server_stats_[server_index]->rtt_deviation;
server_index      185 net/dns/dns_session.cc   server_stats_[server_index]->rtt_histogram
server_index      189 net/dns/dns_session.cc void DnsSession::RecordLostPacket(unsigned server_index, int attempt) {
server_index      191 net/dns/dns_session.cc       NextTimeoutFromJacobson(server_index, attempt);
server_index      193 net/dns/dns_session.cc       NextTimeoutFromHistogram(server_index, attempt);
server_index      213 net/dns/dns_session.cc base::TimeDelta DnsSession::NextTimeout(unsigned server_index, int attempt) {
server_index      217 net/dns/dns_session.cc   return NextTimeoutFromHistogram(server_index, attempt);
server_index      222 net/dns/dns_session.cc     unsigned server_index, const NetLog::Source& source) {
server_index      225 net/dns/dns_session.cc   socket = socket_pool_->AllocateSocket(server_index);
server_index      232 net/dns/dns_session.cc   SocketLease* lease = new SocketLease(this, server_index, socket.Pass());
server_index      237 net/dns/dns_session.cc     unsigned server_index, const NetLog::Source& source) {
server_index      238 net/dns/dns_session.cc   return socket_pool_->CreateTCPSocket(server_index, source);
server_index      242 net/dns/dns_session.cc void DnsSession::FreeSocket(unsigned server_index,
server_index      248 net/dns/dns_session.cc   socket_pool_->FreeSocket(server_index, socket.Pass());
server_index      251 net/dns/dns_session.cc base::TimeDelta DnsSession::NextTimeoutFromJacobson(unsigned server_index,
server_index      253 net/dns/dns_session.cc   DCHECK_LT(server_index, server_stats_.size());
server_index      255 net/dns/dns_session.cc   base::TimeDelta timeout = server_stats_[server_index]->rtt_estimate +
server_index      256 net/dns/dns_session.cc                             4 * server_stats_[server_index]->rtt_deviation;
server_index      267 net/dns/dns_session.cc base::TimeDelta DnsSession::NextTimeoutFromHistogram(unsigned server_index,
server_index      269 net/dns/dns_session.cc   DCHECK_LT(server_index, server_stats_.size());
server_index      276 net/dns/dns_session.cc       *server_stats_[server_index]->rtt_histogram;
server_index       44 net/dns/dns_session.h                 unsigned server_index,
server_index       48 net/dns/dns_session.h     unsigned server_index() const { return server_index_; }
server_index       78 net/dns/dns_session.h   unsigned NextGoodServerIndex(unsigned server_index);
server_index       81 net/dns/dns_session.h   void RecordServerFailure(unsigned server_index);
server_index       84 net/dns/dns_session.h   void RecordServerSuccess(unsigned server_index);
server_index       87 net/dns/dns_session.h   void RecordRTT(unsigned server_index, base::TimeDelta rtt);
server_index       90 net/dns/dns_session.h   void RecordLostPacket(unsigned server_index, int attempt);
server_index       97 net/dns/dns_session.h   base::TimeDelta NextTimeout(unsigned server_index, int attempt);
server_index      101 net/dns/dns_session.h   scoped_ptr<SocketLease> AllocateSocket(unsigned server_index,
server_index      106 net/dns/dns_session.h   scoped_ptr<StreamSocket> CreateTCPSocket(unsigned server_index,
server_index      114 net/dns/dns_session.h   void FreeSocket(unsigned server_index,
server_index      118 net/dns/dns_session.h   base::TimeDelta NextTimeoutFromJacobson(unsigned server_index, int attempt);
server_index      121 net/dns/dns_session.h   base::TimeDelta NextTimeoutFromHistogram(unsigned server_index, int attempt);
server_index       61 net/dns/dns_session_unittest.cc   unsigned server_index;
server_index       66 net/dns/dns_session_unittest.cc   void OnSocketAllocated(unsigned server_index);
server_index       67 net/dns/dns_session_unittest.cc   void OnSocketFreed(unsigned server_index);
server_index       71 net/dns/dns_session_unittest.cc   scoped_ptr<DnsSession::SocketLease> Allocate(unsigned server_index);
server_index       72 net/dns/dns_session_unittest.cc   bool DidAllocate(unsigned server_index);
server_index       73 net/dns/dns_session_unittest.cc   bool DidFree(unsigned server_index);
server_index      100 net/dns/dns_session_unittest.cc       unsigned server_index) OVERRIDE {
server_index      101 net/dns/dns_session_unittest.cc     test_->OnSocketAllocated(server_index);
server_index      102 net/dns/dns_session_unittest.cc     return CreateConnectedSocket(server_index);
server_index      106 net/dns/dns_session_unittest.cc       unsigned server_index,
server_index      108 net/dns/dns_session_unittest.cc     test_->OnSocketFreed(server_index);
server_index      141 net/dns/dns_session_unittest.cc     unsigned server_index) {
server_index      142 net/dns/dns_session_unittest.cc   return session_->AllocateSocket(server_index, source_);
server_index      145 net/dns/dns_session_unittest.cc bool DnsSessionTest::DidAllocate(unsigned server_index) {
server_index      146 net/dns/dns_session_unittest.cc   PoolEvent expected_event = { PoolEvent::ALLOCATE, server_index };
server_index      150 net/dns/dns_session_unittest.cc bool DnsSessionTest::DidFree(unsigned server_index) {
server_index      151 net/dns/dns_session_unittest.cc   PoolEvent expected_event = { PoolEvent::FREE, server_index };
server_index      159 net/dns/dns_session_unittest.cc void DnsSessionTest::OnSocketAllocated(unsigned server_index) {
server_index      160 net/dns/dns_session_unittest.cc   PoolEvent event = { PoolEvent::ALLOCATE, server_index };
server_index      164 net/dns/dns_session_unittest.cc void DnsSessionTest::OnSocketFreed(unsigned server_index) {
server_index      165 net/dns/dns_session_unittest.cc   PoolEvent event = { PoolEvent::FREE, server_index };
server_index      176 net/dns/dns_session_unittest.cc       || (expected.server_index != actual.server_index)) {
server_index       60 net/dns/dns_socket_pool.cc     unsigned server_index,
server_index       62 net/dns/dns_socket_pool.cc   DCHECK_LT(server_index, nameservers_->size());
server_index       66 net/dns/dns_socket_pool.cc           AddressList((*nameservers_)[server_index]), net_log_, source));
server_index       70 net/dns/dns_socket_pool.cc     unsigned server_index) {
server_index       71 net/dns/dns_socket_pool.cc   DCHECK_LT(server_index, nameservers_->size());
server_index       80 net/dns/dns_socket_pool.cc     int rv = socket->Connect((*nameservers_)[server_index]);
server_index      105 net/dns/dns_socket_pool.cc       unsigned server_index) OVERRIDE {
server_index      106 net/dns/dns_socket_pool.cc     return CreateConnectedSocket(server_index);
server_index      110 net/dns/dns_socket_pool.cc       unsigned server_index,
server_index      137 net/dns/dns_socket_pool.cc       unsigned server_index) OVERRIDE;
server_index      140 net/dns/dns_socket_pool.cc       unsigned server_index,
server_index      144 net/dns/dns_socket_pool.cc   void FillPool(unsigned server_index, unsigned size);
server_index      167 net/dns/dns_socket_pool.cc   for (unsigned server_index = 0; server_index < num_servers; ++server_index)
server_index      168 net/dns/dns_socket_pool.cc     FillPool(server_index, kInitialPoolSize);
server_index      173 net/dns/dns_socket_pool.cc   for (unsigned server_index = 0; server_index < num_servers; ++server_index) {
server_index      174 net/dns/dns_socket_pool.cc     SocketVector& pool = pools_[server_index];
server_index      180 net/dns/dns_socket_pool.cc     unsigned server_index) {
server_index      181 net/dns/dns_socket_pool.cc   DCHECK_LT(server_index, pools_.size());
server_index      182 net/dns/dns_socket_pool.cc   SocketVector& pool = pools_[server_index];
server_index      184 net/dns/dns_socket_pool.cc   FillPool(server_index, kAllocateMinSize);
server_index      186 net/dns/dns_socket_pool.cc     LOG(WARNING) << "No DNS sockets available in pool " << server_index << "!";
server_index      193 net/dns/dns_socket_pool.cc                  << " in pool " << server_index << ".";
server_index      205 net/dns/dns_socket_pool.cc     unsigned server_index,
server_index      207 net/dns/dns_socket_pool.cc   DCHECK_LT(server_index, pools_.size());
server_index      210 net/dns/dns_socket_pool.cc void DefaultDnsSocketPool::FillPool(unsigned server_index, unsigned size) {
server_index      211 net/dns/dns_socket_pool.cc   SocketVector& pool = pools_[server_index];
server_index      215 net/dns/dns_socket_pool.cc         CreateConnectedSocket(server_index).release();
server_index       56 net/dns/dns_socket_pool.h       unsigned server_index) = 0;
server_index       61 net/dns/dns_socket_pool.h       unsigned server_index,
server_index       67 net/dns/dns_socket_pool.h       unsigned server_index,
server_index       78 net/dns/dns_socket_pool.h       unsigned server_index);
server_index       76 net/dns/dns_transaction.cc   explicit DnsAttempt(unsigned server_index)
server_index       77 net/dns/dns_transaction.cc       : result_(ERR_FAILED), server_index_(server_index) {}
server_index      134 net/dns/dns_transaction.cc   DnsUDPAttempt(unsigned server_index,
server_index      137 net/dns/dns_transaction.cc       : DnsAttempt(server_index),
server_index      298 net/dns/dns_transaction.cc   DnsTCPAttempt(unsigned server_index,
server_index      301 net/dns/dns_transaction.cc       : DnsAttempt(server_index),
server_index      679 net/dns/dns_transaction.cc     unsigned server_index =
server_index      682 net/dns/dns_transaction.cc     server_index = session_->NextGoodServerIndex(server_index);
server_index      685 net/dns/dns_transaction.cc         session_->AllocateSocket(server_index, net_log_.source());
server_index      690 net/dns/dns_transaction.cc         new DnsUDPAttempt(server_index, lease.Pass(), query.Pass());
server_index      707 net/dns/dns_transaction.cc       base::TimeDelta timeout = session_->NextTimeout(server_index,
server_index      718 net/dns/dns_transaction.cc     unsigned server_index = previous_attempt->server_index();
server_index      721 net/dns/dns_transaction.cc         session_->CreateTCPSocket(server_index, net_log_.source()));
server_index      734 net/dns/dns_transaction.cc     DnsTCPAttempt* attempt = new DnsTCPAttempt(server_index, socket.Pass(),
server_index      775 net/dns/dns_transaction.cc       session_->RecordRTT(attempt->server_index(),
server_index      808 net/dns/dns_transaction.cc       unsigned server_index = attempts_[i]->server_index();
server_index      809 net/dns/dns_transaction.cc       int server_attempt = server_attempts[server_index]++;
server_index      813 net/dns/dns_transaction.cc       session_->RecordLostPacket(server_index, server_attempt);
server_index      841 net/dns/dns_transaction.cc           session_->RecordServerSuccess(result.attempt->server_index());
server_index      848 net/dns/dns_transaction.cc           session_->RecordServerSuccess(result.attempt->server_index());
server_index      862 net/dns/dns_transaction.cc             session_->RecordServerFailure(result.attempt->server_index());
server_index      877 net/dns/dns_transaction.cc             session_->RecordServerFailure(result.attempt->server_index());