| 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/dns/serial_worker.h" | 5 #include "net/dns/serial_worker.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "base/threading/worker_pool.h" | 10 #include "base/threading/worker_pool.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 // Delay between calls to WorkerPool::PostTask | 15 // Delay between calls to WorkerPool::PostTask |
| 16 const int kWorkerPoolRetryDelayMs = 100; | 16 const int kWorkerPoolRetryDelayMs = 100; |
| 17 } | 17 } |
| 18 | 18 |
| 19 SerialWorker::SerialWorker() | 19 SerialWorker::SerialWorker() |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 state_ = IDLE; | 95 state_ = IDLE; |
| 96 WorkNow(); | 96 WorkNow(); |
| 97 return; | 97 return; |
| 98 default: | 98 default: |
| 99 NOTREACHED() << "Unexpected state " << state_; | 99 NOTREACHED() << "Unexpected state " << state_; |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace net | 103 } // namespace net |
| 104 | 104 |
| OLD | NEW |