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 "sync/syncable/syncable.h" | 5 #include "sync/syncable/syncable.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstring> | 8 #include <cstring> |
9 #include <functional> | 9 #include <functional> |
10 #include <iomanip> | 10 #include <iomanip> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/logging.h" | 23 #include "base/logging.h" |
24 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
25 #include "base/perftimer.h" | 25 #include "base/perftimer.h" |
26 #include "base/stl_util.h" | 26 #include "base/stl_util.h" |
27 #include "base/string_number_conversions.h" | 27 #include "base/string_number_conversions.h" |
28 #include "base/string_util.h" | 28 #include "base/string_util.h" |
29 #include "base/time.h" | 29 #include "base/time.h" |
30 #include "base/utf_string_conversions.h" | 30 #include "base/utf_string_conversions.h" |
31 #include "base/values.h" | 31 #include "base/values.h" |
32 #include "sync/protocol/proto_value_conversions.h" | 32 #include "sync/protocol/proto_value_conversions.h" |
33 #include "sync/protocol/service_constants.h" | |
34 #include "sync/syncable/directory_backing_store.h" | 33 #include "sync/syncable/directory_backing_store.h" |
35 #include "sync/syncable/directory_change_delegate.h" | 34 #include "sync/syncable/directory_change_delegate.h" |
36 #include "sync/syncable/in_memory_directory_backing_store.h" | 35 #include "sync/syncable/in_memory_directory_backing_store.h" |
37 #include "sync/syncable/model_type.h" | 36 #include "sync/syncable/model_type.h" |
38 #include "sync/syncable/on_disk_directory_backing_store.h" | 37 #include "sync/syncable/on_disk_directory_backing_store.h" |
39 #include "sync/syncable/syncable-inl.h" | 38 #include "sync/syncable/syncable-inl.h" |
40 #include "sync/syncable/syncable_changes_version.h" | 39 #include "sync/syncable/syncable_changes_version.h" |
41 #include "sync/syncable/syncable_columns.h" | 40 #include "sync/syncable/syncable_columns.h" |
42 #include "sync/syncable/syncable_enum_conversions.h" | 41 #include "sync/syncable/syncable_enum_conversions.h" |
43 #include "sync/syncable/transaction_observer.h" | 42 #include "sync/syncable/transaction_observer.h" |
(...skipping 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2370 if (entry->ref(NEXT_ID).IsRoot() || | 2369 if (entry->ref(NEXT_ID).IsRoot() || |
2371 entry->ref(NEXT_ID) != entry->ref(PREV_ID)) { | 2370 entry->ref(NEXT_ID) != entry->ref(PREV_ID)) { |
2372 return entry; | 2371 return entry; |
2373 } | 2372 } |
2374 } | 2373 } |
2375 // There were no children in the linked list. | 2374 // There were no children in the linked list. |
2376 return NULL; | 2375 return NULL; |
2377 } | 2376 } |
2378 | 2377 |
2379 } // namespace syncable | 2378 } // namespace syncable |
OLD | NEW |