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/api/attachments/attachment_id.h" | 5 #include "components/sync/model/attachments/attachment_id.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "components/sync/base/attachment_id_proto.h" | 8 #include "components/sync/base/attachment_id_proto.h" |
9 #include "components/sync/protocol/sync.pb.h" | 9 #include "components/sync/protocol/sync.pb.h" |
10 | 10 |
11 namespace syncer { | 11 namespace syncer { |
12 | 12 |
13 void AttachmentId::ImmutableAttachmentIdProtoTraits::InitializeWrapper( | 13 void AttachmentId::ImmutableAttachmentIdProtoTraits::InitializeWrapper( |
14 Wrapper* wrapper) { | 14 Wrapper* wrapper) { |
15 *wrapper = new sync_pb::AttachmentIdProto(); | 15 *wrapper = new sync_pb::AttachmentIdProto(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 size_t AttachmentId::GetSize() const { | 75 size_t AttachmentId::GetSize() const { |
76 return proto_.Get().size_bytes(); | 76 return proto_.Get().size_bytes(); |
77 } | 77 } |
78 | 78 |
79 uint32_t AttachmentId::GetCrc32c() const { | 79 uint32_t AttachmentId::GetCrc32c() const { |
80 return proto_.Get().crc32c(); | 80 return proto_.Get().crc32c(); |
81 } | 81 } |
82 | 82 |
83 } // namespace syncer | 83 } // namespace syncer |
OLD | NEW |