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 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
18 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
20 #include "base/stl_util.h" | 20 #include "base/stl_util.h" |
21 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
24 #include "base/task_runner_util.h" | 24 #include "base/task_runner_util.h" |
25 #include "base/thread_task_runner_handle.h" | |
26 #include "base/threading/thread_restrictions.h" | 25 #include "base/threading/thread_restrictions.h" |
| 26 #include "base/threading/thread_task_runner_handle.h" |
27 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 27 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
28 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" | 28 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" |
29 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" | 29 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" |
30 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 30 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
31 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index.
h" | 31 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index.
h" |
32 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
interface.h" | 32 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
interface.h" |
33 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
on_disk.h" | 33 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_
on_disk.h" |
34 #include "chrome/browser/sync_file_system/drive_backend/metadata_db_migration_ut
il.h" | 34 #include "chrome/browser/sync_file_system/drive_backend/metadata_db_migration_ut
il.h" |
35 #include "chrome/browser/sync_file_system/logger.h" | 35 #include "chrome/browser/sync_file_system/logger.h" |
36 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 36 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 return false; | 1804 return false; |
1805 | 1805 |
1806 if (!parents.empty()) | 1806 if (!parents.empty()) |
1807 return false; | 1807 return false; |
1808 | 1808 |
1809 return true; | 1809 return true; |
1810 } | 1810 } |
1811 | 1811 |
1812 } // namespace drive_backend | 1812 } // namespace drive_backend |
1813 } // namespace sync_file_system | 1813 } // namespace sync_file_system |
OLD | NEW |