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_DRIVE_BACKEND_METADATA_DATABASE_INDEX_ON
_DISK_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX_ON
_DISK_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX_ON
_DISK_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX_ON
_DISK_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
interface.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
interface.h" |
18 #include "chrome/browser/sync_file_system/drive_backend/tracker_id_set.h" | 18 #include "chrome/browser/sync_file_system/drive_backend/tracker_id_set.h" |
19 | 19 |
20 namespace sync_file_system { | 20 namespace sync_file_system { |
21 namespace drive_backend { | 21 namespace drive_backend { |
22 | 22 |
23 class FileMetadata; | 23 class FileMetadata; |
24 class FileTracker; | 24 class FileTracker; |
25 class LevelDBWrapper; | 25 class LevelDBWrapper; |
26 class ServiceMetadata; | 26 class ServiceMetadata; |
27 struct DatabaseContents; | |
28 // TODO(peria): Migrate implementation of ParentIDAndTitle structure from | 27 // TODO(peria): Migrate implementation of ParentIDAndTitle structure from |
29 // metadata_database_index.{cc,h} to here, on removing the files. | 28 // metadata_database_index.{cc,h} to here, on removing the files. |
30 struct ParentIDAndTitle; | 29 struct ParentIDAndTitle; |
31 | 30 |
32 // Maintains indexes of MetadataDatabase on disk. | 31 // Maintains indexes of MetadataDatabase on disk. |
33 class MetadataDatabaseIndexOnDisk : public MetadataDatabaseIndexInterface { | 32 class MetadataDatabaseIndexOnDisk : public MetadataDatabaseIndexInterface { |
34 public: | 33 public: |
35 static std::unique_ptr<MetadataDatabaseIndexOnDisk> Create( | 34 static std::unique_ptr<MetadataDatabaseIndexOnDisk> Create( |
36 LevelDBWrapper* db); | 35 LevelDBWrapper* db); |
37 | 36 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 171 |
173 size_t num_dirty_trackers_; | 172 size_t num_dirty_trackers_; |
174 | 173 |
175 DISALLOW_COPY_AND_ASSIGN(MetadataDatabaseIndexOnDisk); | 174 DISALLOW_COPY_AND_ASSIGN(MetadataDatabaseIndexOnDisk); |
176 }; | 175 }; |
177 | 176 |
178 } // namespace drive_backend | 177 } // namespace drive_backend |
179 } // namespace sync_file_system | 178 } // namespace sync_file_system |
180 | 179 |
181 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX
_ON_DISK_H_ | 180 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX
_ON_DISK_H_ |
OLD | NEW |