OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SUBTREE_SET_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SUBTREE_SET_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SUBTREE_SET_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SUBTREE_SET_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
10 | 12 |
11 namespace base { | 13 namespace base { |
12 class FilePath; | 14 class FilePath; |
13 } // namespace base | 15 } // namespace base |
14 | 16 |
15 namespace sync_file_system { | 17 namespace sync_file_system { |
16 | 18 |
17 // Stores disjoint subtrees of a directory tree. | 19 // Stores disjoint subtrees of a directory tree. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 typedef base::hash_map<StringType, Node> Subtrees; | 51 typedef base::hash_map<StringType, Node> Subtrees; |
50 | 52 |
51 // Contains the root of subtrees and all upward node to root. | 53 // Contains the root of subtrees and all upward node to root. |
52 // Each subtree root has |contained_as_subtree_root| flag true. | 54 // Each subtree root has |contained_as_subtree_root| flag true. |
53 Subtrees inclusive_ancestors_of_subtree_roots_; | 55 Subtrees inclusive_ancestors_of_subtree_roots_; |
54 }; | 56 }; |
55 | 57 |
56 } // namespace sync_file_system | 58 } // namespace sync_file_system |
57 | 59 |
58 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SUBTREE_SET_H_ | 60 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SUBTREE_SET_H_ |
OLD | NEW |