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 12 matching lines...) Expand all Loading... |
23 #include <functional> | 23 #include <functional> |
24 #include <iomanip> | 24 #include <iomanip> |
25 #include <iterator> | 25 #include <iterator> |
26 #include <limits> | 26 #include <limits> |
27 #include <set> | 27 #include <set> |
28 #include <string> | 28 #include <string> |
29 | 29 |
30 #include "base/compiler_specific.h" | 30 #include "base/compiler_specific.h" |
31 #include "base/file_util.h" | 31 #include "base/file_util.h" |
32 #include "base/hash_tables.h" | 32 #include "base/hash_tables.h" |
| 33 #include "base/location.h" |
33 #include "base/logging.h" | 34 #include "base/logging.h" |
34 #include "base/memory/scoped_ptr.h" | 35 #include "base/memory/scoped_ptr.h" |
35 #include "base/perftimer.h" | 36 #include "base/perftimer.h" |
36 #include "base/stl_util.h" | 37 #include "base/stl_util.h" |
37 #include "base/string_number_conversions.h" | 38 #include "base/string_number_conversions.h" |
38 #include "base/string_util.h" | 39 #include "base/string_util.h" |
39 #include "base/time.h" | 40 #include "base/time.h" |
40 #include "base/tracked.h" | |
41 #include "base/utf_string_conversions.h" | 41 #include "base/utf_string_conversions.h" |
42 #include "base/values.h" | 42 #include "base/values.h" |
43 #include "chrome/browser/sync/protocol/proto_value_conversions.h" | 43 #include "chrome/browser/sync/protocol/proto_value_conversions.h" |
44 #include "chrome/browser/sync/protocol/service_constants.h" | 44 #include "chrome/browser/sync/protocol/service_constants.h" |
45 #include "chrome/browser/sync/syncable/directory_backing_store.h" | 45 #include "chrome/browser/sync/syncable/directory_backing_store.h" |
46 #include "chrome/browser/sync/syncable/directory_change_delegate.h" | 46 #include "chrome/browser/sync/syncable/directory_change_delegate.h" |
47 #include "chrome/browser/sync/syncable/directory_manager.h" | 47 #include "chrome/browser/sync/syncable/directory_manager.h" |
48 #include "chrome/browser/sync/syncable/model_type.h" | 48 #include "chrome/browser/sync/syncable/model_type.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" |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1948 CHECK(result); | 1948 CHECK(result); |
1949 for (iterator i = GetParentChildIndexLowerBound(lock, parent_id), | 1949 for (iterator i = GetParentChildIndexLowerBound(lock, parent_id), |
1950 end = GetParentChildIndexUpperBound(lock, parent_id); | 1950 end = GetParentChildIndexUpperBound(lock, parent_id); |
1951 i != end; ++i) { | 1951 i != end; ++i) { |
1952 DCHECK_EQ(parent_id, (*i)->ref(PARENT_ID)); | 1952 DCHECK_EQ(parent_id, (*i)->ref(PARENT_ID)); |
1953 result->push_back((*i)->ref(META_HANDLE)); | 1953 result->push_back((*i)->ref(META_HANDLE)); |
1954 } | 1954 } |
1955 } | 1955 } |
1956 | 1956 |
1957 } // namespace syncable | 1957 } // namespace syncable |
OLD | NEW |