| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_metadata_store.h" | 5 #include "chrome/browser/sync_file_system/drive_metadata_store.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/message_loop/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.h" |
| 15 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
| 16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 17 #include "base/string_util.h" | |
| 18 #include "base/stringprintf.h" | |
| 19 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/stringprintf.h" |
| 21 #include "base/task_runner_util.h" | 20 #include "base/task_runner_util.h" |
| 22 #include "chrome/browser/sync_file_system/drive/metadata_db_migration_util.h" | 21 #include "chrome/browser/sync_file_system/drive/metadata_db_migration_util.h" |
| 23 #include "chrome/browser/sync_file_system/drive_file_sync_service.h" | 22 #include "chrome/browser/sync_file_system/drive_file_sync_service.h" |
| 24 #include "chrome/browser/sync_file_system/drive_file_sync_util.h" | 23 #include "chrome/browser/sync_file_system/drive_file_sync_util.h" |
| 25 #include "chrome/browser/sync_file_system/file_metadata.h" | 24 #include "chrome/browser/sync_file_system/file_metadata.h" |
| 26 #include "chrome/browser/sync_file_system/logger.h" | 25 #include "chrome/browser/sync_file_system/logger.h" |
| 27 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" | 26 #include "chrome/browser/sync_file_system/sync_file_system.pb.h" |
| 28 #include "googleurl/src/gurl.h" | 27 #include "googleurl/src/gurl.h" |
| 29 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 28 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
| 30 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 29 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 details << "resource_id=" << metadata.resource_id() << ", " | 787 details << "resource_id=" << metadata.resource_id() << ", " |
| 789 << "md5_checksum=" << metadata.md5_checksum() << ", " | 788 << "md5_checksum=" << metadata.md5_checksum() << ", " |
| 790 << "to_be_fetched=" << metadata.to_be_fetched(); | 789 << "to_be_fetched=" << metadata.to_be_fetched(); |
| 791 FileMetadata file_metadata(title, type, details.str()); | 790 FileMetadata file_metadata(title, type, details.str()); |
| 792 (*output_map)[origin][itr->first] = file_metadata; | 791 (*output_map)[origin][itr->first] = file_metadata; |
| 793 } | 792 } |
| 794 } | 793 } |
| 795 } | 794 } |
| 796 | 795 |
| 797 } // namespace sync_file_system | 796 } // namespace sync_file_system |
| OLD | NEW |