| 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/base/prioritized_dispatcher.h" | 5 #include "net/base/prioritized_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 if (num_running_jobs_ >= max_running_jobs_[job_priority]) | 92 if (num_running_jobs_ >= max_running_jobs_[job_priority]) |
| 93 return false; | 93 return false; |
| 94 Job* job = handle.value(); | 94 Job* job = handle.value(); |
| 95 queue_.Erase(handle); | 95 queue_.Erase(handle); |
| 96 ++num_running_jobs_; | 96 ++num_running_jobs_; |
| 97 job->Start(); | 97 job->Start(); |
| 98 return true; | 98 return true; |
| 99 } | 99 } |
| 100 | 100 |
| 101 } // namespace net | 101 } // namespace net |
| 102 | |
| 103 | |
| OLD | NEW |