OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/disk_cache/simple/simple_backend_impl.h" | 5 #include "net/disk_cache/simple/simple_backend_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstdlib> | 8 #include <cstdlib> |
9 | 9 |
10 #if defined(OS_POSIX) | 10 #if defined(OS_POSIX) |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 Entry** entry, | 560 Entry** entry, |
561 const CompletionCallback& callback, | 561 const CompletionCallback& callback, |
562 int error_code) { | 562 int error_code) { |
563 if (error_code == net::ERR_FAILED) { | 563 if (error_code == net::ERR_FAILED) { |
564 OpenNextEntry(iter, entry, callback); | 564 OpenNextEntry(iter, entry, callback); |
565 return; | 565 return; |
566 } | 566 } |
567 CallCompletionCallback(callback, error_code); | 567 CallCompletionCallback(callback, error_code); |
568 } | 568 } |
569 | 569 |
| 570 void SimpleBackendImpl::FlushWorkerPoolForTesting() { |
| 571 if (g_sequenced_worker_pool) |
| 572 g_sequenced_worker_pool->FlushForTesting(); |
| 573 } |
| 574 |
570 } // namespace disk_cache | 575 } // namespace disk_cache |
OLD | NEW |