| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/sync/syncable/syncable.h" | 5 #include "chrome/browser/sync/syncable/syncable.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
| 10 #if defined(OS_POSIX) | 10 #if defined(OS_POSIX) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "chrome/browser/sync/protocol/proto_value_conversions.h" | 42 #include "chrome/browser/sync/protocol/proto_value_conversions.h" |
| 43 #include "chrome/browser/sync/protocol/service_constants.h" | 43 #include "chrome/browser/sync/protocol/service_constants.h" |
| 44 #include "chrome/browser/sync/syncable/directory_backing_store.h" | 44 #include "chrome/browser/sync/syncable/directory_backing_store.h" |
| 45 #include "chrome/browser/sync/syncable/directory_change_listener.h" | 45 #include "chrome/browser/sync/syncable/directory_change_listener.h" |
| 46 #include "chrome/browser/sync/syncable/directory_manager.h" | 46 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 47 #include "chrome/browser/sync/syncable/model_type.h" | 47 #include "chrome/browser/sync/syncable/model_type.h" |
| 48 #include "chrome/browser/sync/syncable/syncable-inl.h" | 48 #include "chrome/browser/sync/syncable/syncable-inl.h" |
| 49 #include "chrome/browser/sync/syncable/syncable_changes_version.h" | 49 #include "chrome/browser/sync/syncable/syncable_changes_version.h" |
| 50 #include "chrome/browser/sync/syncable/syncable_columns.h" | 50 #include "chrome/browser/sync/syncable/syncable_columns.h" |
| 51 #include "chrome/browser/sync/syncable/syncable_enum_conversions.h" | 51 #include "chrome/browser/sync/syncable/syncable_enum_conversions.h" |
| 52 #include "chrome/browser/sync/util/crypto_helpers.h" | |
| 53 #include "chrome/common/deprecated/event_sys-inl.h" | 52 #include "chrome/common/deprecated/event_sys-inl.h" |
| 54 #include "net/base/escape.h" | 53 #include "net/base/escape.h" |
| 55 | 54 |
| 56 namespace { | 55 namespace { |
| 57 enum InvariantCheckLevel { | 56 enum InvariantCheckLevel { |
| 58 OFF = 0, | 57 OFF = 0, |
| 59 VERIFY_IN_MEMORY = 1, | 58 VERIFY_IN_MEMORY = 1, |
| 60 FULL_DB_VERIFICATION = 2 | 59 FULL_DB_VERIFICATION = 2 |
| 61 }; | 60 }; |
| 62 | 61 |
| (...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1897 Directory::ParentIdChildIndex::iterator | 1896 Directory::ParentIdChildIndex::iterator |
| 1898 Directory::GetParentChildIndexUpperBound(const ScopedKernelLock& lock, | 1897 Directory::GetParentChildIndexUpperBound(const ScopedKernelLock& lock, |
| 1899 const Id& parent_id) { | 1898 const Id& parent_id) { |
| 1900 // The upper bound of |parent_id|'s range is the lower | 1899 // The upper bound of |parent_id|'s range is the lower |
| 1901 // bound of |++parent_id|'s range. | 1900 // bound of |++parent_id|'s range. |
| 1902 return GetParentChildIndexLowerBound(lock, | 1901 return GetParentChildIndexLowerBound(lock, |
| 1903 parent_id.GetLexicographicSuccessor()); | 1902 parent_id.GetLexicographicSuccessor()); |
| 1904 } | 1903 } |
| 1905 | 1904 |
| 1906 } // namespace syncable | 1905 } // namespace syncable |
| OLD | NEW |