OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_file_system/drive_backend/metadata_database.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <stack> | 8 #include <stack> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
21 #include "base/task_runner_util.h" | 21 #include "base/task_runner_util.h" |
22 #include "base/thread_task_runner_handle.h" | 22 #include "base/thread_task_runner_handle.h" |
23 #include "base/threading/thread_restrictions.h" | 23 #include "base/threading/thread_restrictions.h" |
24 #include "chrome/browser/drive/drive_api_util.h" | |
25 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 24 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
26 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" | 25 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" |
27 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" | 26 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" |
28 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 27 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
29 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index.
h" | 28 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index.
h" |
30 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
interface.h" | 29 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
interface.h" |
31 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
on_disk.h" | 30 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
on_disk.h" |
32 #include "chrome/browser/sync_file_system/drive_backend/metadata_db_migration_ut
il.h" | 31 #include "chrome/browser/sync_file_system/drive_backend/metadata_db_migration_ut
il.h" |
33 #include "chrome/browser/sync_file_system/logger.h" | 32 #include "chrome/browser/sync_file_system/logger.h" |
34 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 33 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
| 34 #include "components/drive/drive_api_util.h" |
35 #include "google_apis/drive/drive_api_parser.h" | 35 #include "google_apis/drive/drive_api_parser.h" |
36 #include "storage/common/fileapi/file_system_util.h" | 36 #include "storage/common/fileapi/file_system_util.h" |
37 #include "third_party/leveldatabase/env_chromium.h" | 37 #include "third_party/leveldatabase/env_chromium.h" |
38 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 38 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
39 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 39 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
40 #include "third_party/leveldatabase/src/include/leveldb/status.h" | 40 #include "third_party/leveldatabase/src/include/leveldb/status.h" |
41 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 41 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
42 | 42 |
43 namespace sync_file_system { | 43 namespace sync_file_system { |
44 namespace drive_backend { | 44 namespace drive_backend { |
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1801 return false; | 1801 return false; |
1802 | 1802 |
1803 if (!parents.empty()) | 1803 if (!parents.empty()) |
1804 return false; | 1804 return false; |
1805 | 1805 |
1806 return true; | 1806 return true; |
1807 } | 1807 } |
1808 | 1808 |
1809 } // namespace drive_backend | 1809 } // namespace drive_backend |
1810 } // namespace sync_file_system | 1810 } // namespace sync_file_system |
OLD | NEW |