OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "net/proxy/multi_threaded_proxy_resolver.h" | 5 #include "net/proxy/multi_threaded_proxy_resolver.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "base/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "net/base/net_log.h" | 12 #include "net/base/net_log.h" |
13 #include "net/proxy/proxy_info.h" | 13 #include "net/proxy/proxy_info.h" |
14 | 14 |
15 // TODO(eroman): Have the MultiThreadedProxyResolver clear its PAC script | 15 // TODO(eroman): Have the MultiThreadedProxyResolver clear its PAC script |
16 // data when SetPacScript fails. That will reclaim memory when | 16 // data when SetPacScript fails. That will reclaim memory when |
17 // testing bogus scripts. | 17 // testing bogus scripts. |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 return; | 555 return; |
556 | 556 |
557 // Get the next job to process (FIFO). Transfer it from the pending queue | 557 // Get the next job to process (FIFO). Transfer it from the pending queue |
558 // to the executor. | 558 // to the executor. |
559 scoped_refptr<Job> job = pending_jobs_.front(); | 559 scoped_refptr<Job> job = pending_jobs_.front(); |
560 pending_jobs_.pop_front(); | 560 pending_jobs_.pop_front(); |
561 executor->StartJob(job); | 561 executor->StartJob(job); |
562 } | 562 } |
563 | 563 |
564 } // namespace net | 564 } // namespace net |
OLD | NEW |