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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « components/sync/api/attachments/README ('k') | components/sync/api/attachments/attachment.cc » ('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 #ifndef SYNC_API_ATTACHMENTS_ATTACHMENT_H_ 5 #ifndef COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_
6 #define 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>
11 #include <memory> 11 #include <memory>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/ref_counted_memory.h" 15 #include "base/memory/ref_counted_memory.h"
16 #include "sync/api/attachments/attachment_id.h" 16 #include "components/sync/api/attachments/attachment_id.h"
17 #include "sync/base/sync_export.h" 17 #include "components/sync/base/sync_export.h"
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 // A blob of in-memory data attached to a sync item. 21 // A blob of in-memory data attached to a sync item.
22 // 22 //
23 // While Attachment objects themselves aren't immutable (they are assignable) 23 // While Attachment objects themselves aren't immutable (they are assignable)
24 // the data they wrap is immutable. 24 // the data they wrap is immutable.
25 // 25 //
26 // It is cheap to copy Attachments. Feel free to store and return by value. 26 // It is cheap to copy Attachments. Feel free to store and return by value.
27 class SYNC_EXPORT Attachment { 27 class SYNC_EXPORT Attachment {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 Attachment(const AttachmentId& id, 63 Attachment(const AttachmentId& id,
64 const scoped_refptr<base::RefCountedMemory>& data); 64 const scoped_refptr<base::RefCountedMemory>& data);
65 }; 65 };
66 66
67 typedef std::vector<syncer::Attachment> AttachmentList; 67 typedef std::vector<syncer::Attachment> AttachmentList;
68 typedef std::map<AttachmentId, Attachment> AttachmentMap; 68 typedef std::map<AttachmentId, Attachment> AttachmentMap;
69 69
70 } // namespace syncer 70 } // namespace syncer
71 71
72 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_H_ 72 #endif // COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_H_
OLDNEW
« no previous file with comments | « components/sync/api/attachments/README ('k') | components/sync/api/attachments/attachment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698