OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/proxy/multi_threaded_proxy_resolver.h" | 5 #include "net/proxy/multi_threaded_proxy_resolver.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/base/net_log.h" | 16 #include "net/base/net_log.h" |
17 #include "net/proxy/proxy_info.h" | 17 #include "net/proxy/proxy_info.h" |
18 | 18 |
19 // TODO(eroman): Have the MultiThreadedProxyResolver clear its PAC script | 19 // TODO(eroman): Have the MultiThreadedProxyResolver clear its PAC script |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 return; | 574 return; |
575 | 575 |
576 // Get the next job to process (FIFO). Transfer it from the pending queue | 576 // Get the next job to process (FIFO). Transfer it from the pending queue |
577 // to the executor. | 577 // to the executor. |
578 scoped_refptr<Job> job = pending_jobs_.front(); | 578 scoped_refptr<Job> job = pending_jobs_.front(); |
579 pending_jobs_.pop_front(); | 579 pending_jobs_.pop_front(); |
580 executor->StartJob(job.get()); | 580 executor->StartJob(job.get()); |
581 } | 581 } |
582 | 582 |
583 } // namespace net | 583 } // namespace net |
OLD | NEW |