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/disk_cache/in_flight_backend_io.h" | 5 #include "net/disk_cache/in_flight_backend_io.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/disk_cache/backend_impl.h" | 10 #include "net/disk_cache/backend_impl.h" |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 scoped_refptr<BackendIO> next_op = from_list->front(); | 506 scoped_refptr<BackendIO> next_op = from_list->front(); |
507 from_list->pop_front(); | 507 from_list->pop_front(); |
508 PostOperation(next_op); | 508 PostOperation(next_op); |
509 } | 509 } |
510 | 510 |
511 void InFlightBackendIO::QueueOperationToList(BackendIO* operation, | 511 void InFlightBackendIO::QueueOperationToList(BackendIO* operation, |
512 OperationList* list) { | 512 OperationList* list) { |
513 if (list->empty()) | 513 if (list->empty()) |
514 return PostOperation(operation); | 514 return PostOperation(operation); |
515 | 515 |
516 list->push_back(operation); | 516 list->push_back(make_scoped_refptr(operation)); |
517 } | 517 } |
518 | 518 |
519 } // namespace | 519 } // namespace |
OLD | NEW |