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