| 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 #include "components/sync/engine/attachments/on_disk_attachment_store.h" | 5 #include "components/sync/engine/attachments/on_disk_attachment_store.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> |
| 9 #include <utility> | 10 #include <utility> |
| 10 | 11 |
| 11 #include "base/bind.h" | 12 #include "base/bind.h" |
| 12 #include "base/callback.h" | 13 #include "base/callback.h" |
| 13 #include "base/location.h" | 14 #include "base/location.h" |
| 14 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 15 #include "base/metrics/histogram_macros.h" | 16 #include "base/metrics/histogram_macros.h" |
| 16 #include "base/sequenced_task_runner.h" | 17 #include "base/sequenced_task_runner.h" |
| 17 #include "components/sync/engine/attachments/attachment_util.h" | 18 #include "components/sync/engine/attachments/attachment_util.h" |
| 18 #include "components/sync/engine_impl/attachments/proto/attachment_store.pb.h" | 19 #include "components/sync/engine_impl/attachments/proto/attachment_store.pb.h" |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 return key; | 532 return key; |
| 532 } | 533 } |
| 533 | 534 |
| 534 AttachmentMetadata OnDiskAttachmentStore::MakeAttachmentMetadata( | 535 AttachmentMetadata OnDiskAttachmentStore::MakeAttachmentMetadata( |
| 535 const AttachmentId& attachment_id, | 536 const AttachmentId& attachment_id, |
| 536 const attachment_store_pb::RecordMetadata& record_metadata) { | 537 const attachment_store_pb::RecordMetadata& record_metadata) { |
| 537 return AttachmentMetadata(attachment_id, record_metadata.attachment_size()); | 538 return AttachmentMetadata(attachment_id, record_metadata.attachment_size()); |
| 538 } | 539 } |
| 539 | 540 |
| 540 } // namespace syncer | 541 } // namespace syncer |
| OLD | NEW |