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

Side by Side Diff: components/sync/engine/attachments/in_memory_attachment_store.h

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_
6 #define COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ 6 #define COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "components/sync/api/attachments/attachment.h"
15 #include "components/sync/api/attachments/attachment_id.h"
16 #include "components/sync/api/attachments/attachment_store.h"
17 #include "components/sync/engine/attachments/attachment_store_backend.h" 14 #include "components/sync/engine/attachments/attachment_store_backend.h"
15 #include "components/sync/model/attachments/attachment.h"
16 #include "components/sync/model/attachments/attachment_id.h"
17 #include "components/sync/model/attachments/attachment_store.h"
18 18
19 namespace base { 19 namespace base {
20 class SequencedTaskRunner; 20 class SequencedTaskRunner;
21 } // namespace base 21 } // namespace base
22 22
23 namespace syncer { 23 namespace syncer {
24 24
25 // An in-memory implementation of AttachmentStore used for testing. 25 // An in-memory implementation of AttachmentStore used for testing.
26 // InMemoryAttachmentStore is not threadsafe, it lives on backend thread and 26 // InMemoryAttachmentStore is not threadsafe, it lives on backend thread and
27 // posts callbacks with results on |callback_task_runner|. 27 // posts callbacks with results on |callback_task_runner|.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 typedef std::map<AttachmentId, AttachmentEntry> AttachmentEntryMap; 67 typedef std::map<AttachmentId, AttachmentEntry> AttachmentEntryMap;
68 AttachmentEntryMap attachments_; 68 AttachmentEntryMap attachments_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(InMemoryAttachmentStore); 70 DISALLOW_COPY_AND_ASSIGN(InMemoryAttachmentStore);
71 }; 71 };
72 72
73 } // namespace syncer 73 } // namespace syncer
74 74
75 #endif // COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_ 75 #endif // COMPONENTS_SYNC_ENGINE_ATTACHMENTS_IN_MEMORY_ATTACHMENT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698