Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: sync/api/attachments/attachment_id.cc

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sync/api/attachments/attachment_id.h ('k') | sync/api/attachments/attachment_metadata.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_id.h" 5 #include "sync/api/attachments/attachment_id.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include "base/logging.h" 10 #include "base/logging.h"
8 #include "sync/internal_api/public/base/attachment_id_proto.h" 11 #include "sync/internal_api/public/base/attachment_id_proto.h"
9 #include "sync/protocol/sync.pb.h" 12 #include "sync/protocol/sync.pb.h"
10 13
11 namespace syncer { 14 namespace syncer {
12 15
13 void AttachmentId::ImmutableAttachmentIdProtoTraits::InitializeWrapper( 16 void AttachmentId::ImmutableAttachmentIdProtoTraits::InitializeWrapper(
14 Wrapper* wrapper) { 17 Wrapper* wrapper) {
15 *wrapper = new sync_pb::AttachmentIdProto(); 18 *wrapper = new sync_pb::AttachmentIdProto();
16 } 19 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 76
74 size_t AttachmentId::GetSize() const { 77 size_t AttachmentId::GetSize() const {
75 return proto_.Get().size_bytes(); 78 return proto_.Get().size_bytes();
76 } 79 }
77 80
78 uint32_t AttachmentId::GetCrc32c() const { 81 uint32_t AttachmentId::GetCrc32c() const {
79 return proto_.Get().crc32c(); 82 return proto_.Get().crc32c();
80 } 83 }
81 84
82 } // namespace syncer 85 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/api/attachments/attachment_id.h ('k') | sync/api/attachments/attachment_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698