| 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 "webkit/fileapi/syncable/local_file_sync_status.h" | 5 #include "webkit/browser/fileapi/syncable/local_file_sync_status.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 using fileapi::FileSystemURL; | 9 using fileapi::FileSystemURL; |
| 10 using fileapi::FileSystemURLSet; | 10 using fileapi::FileSystemURLSet; |
| 11 | 11 |
| 12 namespace sync_file_system { | 12 namespace sync_file_system { |
| 13 | 13 |
| 14 LocalFileSyncStatus::LocalFileSyncStatus() {} | 14 LocalFileSyncStatus::LocalFileSyncStatus() {} |
| 15 | 15 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 FileSystemURLSet::const_reverse_iterator rupper(upper); | 88 FileSystemURLSet::const_reverse_iterator rupper(upper); |
| 89 if (upper != syncing_.end() && url.IsParent(*upper)) | 89 if (upper != syncing_.end() && url.IsParent(*upper)) |
| 90 return true; | 90 return true; |
| 91 if (rupper != syncing_.rend() && | 91 if (rupper != syncing_.rend() && |
| 92 (*rupper == url || rupper->IsParent(url))) | 92 (*rupper == url || rupper->IsParent(url))) |
| 93 return true; | 93 return true; |
| 94 return false; | 94 return false; |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace sync_file_system | 97 } // namespace sync_file_system |
| OLD | NEW |