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 "sync/api/attachments/attachment.h" | 5 #include "sync/api/attachments/attachment.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace syncer { | 9 namespace syncer { |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 const AttachmentId& Attachment::GetId() const { return id_; } | 26 const AttachmentId& Attachment::GetId() const { return id_; } |
27 | 27 |
28 const scoped_refptr<base::RefCountedMemory>& Attachment::GetData() const { | 28 const scoped_refptr<base::RefCountedMemory>& Attachment::GetData() const { |
29 return data_; | 29 return data_; |
30 } | 30 } |
31 | 31 |
32 Attachment::Attachment(const AttachmentId& id, | 32 Attachment::Attachment(const AttachmentId& id, |
33 const scoped_refptr<base::RefCountedMemory>& data) | 33 const scoped_refptr<base::RefCountedMemory>& data) |
34 : id_(id), data_(data) { | 34 : id_(id), data_(data) { |
35 DCHECK(data); | 35 DCHECK(data.get()); |
36 } | 36 } |
37 | 37 |
38 } // namespace syncer | 38 } // namespace syncer |
OLD | NEW |