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

Side by Side Diff: components/sync/api/attachments/attachment_store.cc

Issue 2399953002: [Sync] Move attachments code out of core/. (Closed)
Patch Set: Address comments. 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 #include "components/sync/api/attachments/attachment_store.h" 5 #include "components/sync/api/attachments/attachment_store.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "components/sync/core/attachments/attachment_store_frontend.h" 14 #include "components/sync/engine/attachments/attachment_store_frontend.h"
15 #include "components/sync/core/attachments/in_memory_attachment_store.h" 15 #include "components/sync/engine/attachments/in_memory_attachment_store.h"
16 #include "components/sync/core/attachments/on_disk_attachment_store.h" 16 #include "components/sync/engine/attachments/on_disk_attachment_store.h"
17 17
18 namespace syncer { 18 namespace syncer {
19 19
20 namespace { 20 namespace {
21 21
22 void NoOpDropCallback(const AttachmentStore::Result& result) {} 22 void NoOpDropCallback(const AttachmentStore::Result& result) {}
23 } 23 }
24 24
25 AttachmentStore::AttachmentStore( 25 AttachmentStore::AttachmentStore(
26 const scoped_refptr<AttachmentStoreFrontend>& frontend, 26 const scoped_refptr<AttachmentStoreFrontend>& frontend,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 frontend()->DropReference(sync_component_, ids, 129 frontend()->DropReference(sync_component_, ids,
130 base::Bind(&NoOpDropCallback)); 130 base::Bind(&NoOpDropCallback));
131 } 131 }
132 132
133 void AttachmentStoreForSync::ReadMetadataForSync( 133 void AttachmentStoreForSync::ReadMetadataForSync(
134 const ReadMetadataCallback& callback) { 134 const ReadMetadataCallback& callback) {
135 frontend()->ReadMetadata(sync_component_, callback); 135 frontend()->ReadMetadata(sync_component_, callback);
136 } 136 }
137 137
138 } // namespace syncer 138 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698