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