| 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 "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h" | 5 #include "chrome/browser/media_galleries/chromeos/mtp_device_object_enumerator.h
" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 MTPDeviceObjectEnumerator::MTPDeviceObjectEnumerator( | 9 MTPDeviceObjectEnumerator::MTPDeviceObjectEnumerator( |
| 10 const std::vector<MtpFileEntry>& entries) | 10 const std::vector<MtpFileEntry>& entries) |
| 11 : file_entries_(entries), | 11 : file_entries_(entries), |
| 12 index_(0U), | 12 index_(0U), |
| 13 is_index_ready_(false) { | 13 is_index_ready_(false) { |
| 14 } | 14 } |
| 15 | 15 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return true; | 54 return true; |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool MTPDeviceObjectEnumerator::HasMoreEntries() const { | 57 bool MTPDeviceObjectEnumerator::HasMoreEntries() const { |
| 58 return index_ < file_entries_.size(); | 58 return index_ < file_entries_.size(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool MTPDeviceObjectEnumerator::IsIndexReadyAndInRange() const { | 61 bool MTPDeviceObjectEnumerator::IsIndexReadyAndInRange() const { |
| 62 return is_index_ready_ && HasMoreEntries(); | 62 return is_index_ready_ && HasMoreEntries(); |
| 63 } | 63 } |
| OLD | NEW |