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

Side by Side Diff: components/sync/api/attachments/attachment.h

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 years, 2 months 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
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 #ifndef COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ 5 #ifndef COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_
6 #define COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ 6 #define COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 uint32_t GetCrc32c() const; 56 uint32_t GetCrc32c() const;
57 57
58 private: 58 private:
59 AttachmentId id_; 59 AttachmentId id_;
60 scoped_refptr<base::RefCountedMemory> data_; 60 scoped_refptr<base::RefCountedMemory> data_;
61 61
62 Attachment(const AttachmentId& id, 62 Attachment(const AttachmentId& id,
63 const scoped_refptr<base::RefCountedMemory>& data); 63 const scoped_refptr<base::RefCountedMemory>& data);
64 }; 64 };
65 65
66 typedef std::vector<syncer::Attachment> AttachmentList; 66 typedef std::vector<Attachment> AttachmentList;
67 typedef std::map<AttachmentId, Attachment> AttachmentMap; 67 typedef std::map<AttachmentId, Attachment> AttachmentMap;
68 68
69 } // namespace syncer 69 } // namespace syncer
70 70
71 #endif // COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_ 71 #endif // COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698