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 16 matching lines...) Expand all Loading... |
27 #include <set> | 27 #include <set> |
28 #include <string> | 28 #include <string> |
29 | 29 |
30 #include "base/hash_tables.h" | 30 #include "base/hash_tables.h" |
31 #include "base/file_util.h" | 31 #include "base/file_util.h" |
32 #include "base/logging.h" | 32 #include "base/logging.h" |
33 #include "base/memory/scoped_ptr.h" | 33 #include "base/memory/scoped_ptr.h" |
34 #include "base/perftimer.h" | 34 #include "base/perftimer.h" |
35 #include "base/string_number_conversions.h" | 35 #include "base/string_number_conversions.h" |
36 #include "base/string_util.h" | 36 #include "base/string_util.h" |
37 #include "base/stl_util-inl.h" | 37 #include "base/stl_util.h" |
38 #include "base/time.h" | 38 #include "base/time.h" |
39 #include "base/tracked.h" | 39 #include "base/tracked.h" |
40 #include "base/utf_string_conversions.h" | 40 #include "base/utf_string_conversions.h" |
41 #include "base/values.h" | 41 #include "base/values.h" |
42 #include "chrome/browser/sync/engine/syncer.h" | 42 #include "chrome/browser/sync/engine/syncer.h" |
43 #include "chrome/browser/sync/engine/syncer_util.h" | 43 #include "chrome/browser/sync/engine/syncer_util.h" |
44 #include "chrome/browser/sync/protocol/proto_value_conversions.h" | 44 #include "chrome/browser/sync/protocol/proto_value_conversions.h" |
45 #include "chrome/browser/sync/protocol/service_constants.h" | 45 #include "chrome/browser/sync/protocol/service_constants.h" |
46 #include "chrome/browser/sync/syncable/directory_backing_store.h" | 46 #include "chrome/browser/sync/syncable/directory_backing_store.h" |
47 #include "chrome/browser/sync/syncable/directory_change_delegate.h" | 47 #include "chrome/browser/sync/syncable/directory_change_delegate.h" |
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 CHECK(result); | 1941 CHECK(result); |
1942 for (iterator i = GetParentChildIndexLowerBound(lock, parent_id), | 1942 for (iterator i = GetParentChildIndexLowerBound(lock, parent_id), |
1943 end = GetParentChildIndexUpperBound(lock, parent_id); | 1943 end = GetParentChildIndexUpperBound(lock, parent_id); |
1944 i != end; ++i) { | 1944 i != end; ++i) { |
1945 DCHECK_EQ(parent_id, (*i)->ref(PARENT_ID)); | 1945 DCHECK_EQ(parent_id, (*i)->ref(PARENT_ID)); |
1946 result->push_back((*i)->ref(META_HANDLE)); | 1946 result->push_back((*i)->ref(META_HANDLE)); |
1947 } | 1947 } |
1948 } | 1948 } |
1949 | 1949 |
1950 } // namespace syncable | 1950 } // namespace syncable |
OLD | NEW |