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

Side by Side Diff: components/sync/core_impl/attachments/attachment_store_frontend.cc

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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/internal_api/public/attachments/attachment_store_frontend.h" 5 #include "components/sync/core/attachments/attachment_store_frontend.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/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "sync/api/attachments/attachment.h" 12 #include "components/sync/api/attachments/attachment.h"
13 #include "sync/api/attachments/attachment_store_backend.h" 13 #include "components/sync/api/attachments/attachment_store_backend.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 16
17 namespace { 17 namespace {
18 18
19 // NoOp is needed to bind base::Passed(backend) in AttachmentStoreFrontend dtor. 19 // NoOp is needed to bind base::Passed(backend) in AttachmentStoreFrontend dtor.
20 // It doesn't need to do anything. 20 // It doesn't need to do anything.
21 void NoOp(std::unique_ptr<AttachmentStoreBackend> backend) {} 21 void NoOp(std::unique_ptr<AttachmentStoreBackend> backend) {}
22 22
23 } // namespace 23 } // namespace
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 AttachmentStore::Component component, 103 AttachmentStore::Component component,
104 const AttachmentStore::ReadMetadataCallback& callback) { 104 const AttachmentStore::ReadMetadataCallback& callback) {
105 DCHECK(CalledOnValidThread()); 105 DCHECK(CalledOnValidThread());
106 backend_task_runner_->PostTask( 106 backend_task_runner_->PostTask(
107 FROM_HERE, 107 FROM_HERE,
108 base::Bind(&AttachmentStoreBackend::ReadMetadata, 108 base::Bind(&AttachmentStoreBackend::ReadMetadata,
109 base::Unretained(backend_.get()), component, callback)); 109 base::Unretained(backend_.get()), component, callback));
110 } 110 }
111 111
112 } // namespace syncer 112 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698