| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/net/dns_master.h" | 5 #include "chrome/browser/net/predictor.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <sstream> | 9 #include <sstream> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/histogram.h" | 12 #include "base/histogram.h" |
| 13 #include "base/stats_counters.h" | 13 #include "base/stats_counters.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 GURL Predictor::HostNameQueue::Pop() { | 634 GURL Predictor::HostNameQueue::Pop() { |
| 635 DCHECK(!IsEmpty()); | 635 DCHECK(!IsEmpty()); |
| 636 std::queue<GURL> *queue(rush_queue_.empty() ? &background_queue_ | 636 std::queue<GURL> *queue(rush_queue_.empty() ? &background_queue_ |
| 637 : &rush_queue_); | 637 : &rush_queue_); |
| 638 GURL url(queue->front()); | 638 GURL url(queue->front()); |
| 639 queue->pop(); | 639 queue->pop(); |
| 640 return url; | 640 return url; |
| 641 } | 641 } |
| 642 | 642 |
| 643 } // namespace chrome_browser_net | 643 } // namespace chrome_browser_net |
| OLD | NEW |