| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "sync/api/attachments/attachment_metadata.h" | 7 #include "components/sync/api/attachments/attachment_metadata.h" |
| 8 | 8 |
| 9 namespace syncer { | 9 namespace syncer { |
| 10 | 10 |
| 11 AttachmentMetadata::AttachmentMetadata(const AttachmentId& id, size_t size) | 11 AttachmentMetadata::AttachmentMetadata(const AttachmentId& id, size_t size) |
| 12 : id_(id), size_(size) { | 12 : id_(id), size_(size) {} |
| 13 } | |
| 14 | 13 |
| 15 AttachmentMetadata::~AttachmentMetadata() { | 14 AttachmentMetadata::~AttachmentMetadata() {} |
| 16 } | |
| 17 | 15 |
| 18 const AttachmentId& AttachmentMetadata::GetId() const { | 16 const AttachmentId& AttachmentMetadata::GetId() const { |
| 19 return id_; | 17 return id_; |
| 20 } | 18 } |
| 21 | 19 |
| 22 size_t AttachmentMetadata::GetSize() const { | 20 size_t AttachmentMetadata::GetSize() const { |
| 23 return size_; | 21 return size_; |
| 24 } | 22 } |
| 25 | 23 |
| 26 } // namespace syncer | 24 } // namespace syncer |
| OLD | NEW |