| 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/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.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 SerialWorker::SerialWorker() | 14 SerialWorker::SerialWorker() |
| 15 : task_runner_(base::ThreadTaskRunnerHandle::Get()), state_(IDLE) { | 15 : task_runner_(base::ThreadTaskRunnerHandle::Get()), state_(IDLE) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 SerialWorker::~SerialWorker() {} | 18 SerialWorker::~SerialWorker() {} |
| 19 | 19 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 state_ = IDLE; | 91 state_ = IDLE; |
| 92 WorkNow(); | 92 WorkNow(); |
| 93 return; | 93 return; |
| 94 default: | 94 default: |
| 95 NOTREACHED() << "Unexpected state " << state_; | 95 NOTREACHED() << "Unexpected state " << state_; |
| 96 } | 96 } |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace net | 99 } // namespace net |
| 100 | 100 |
| OLD | NEW |