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

Side by Side Diff: components/sync/engine/attachments/on_disk_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/core/attachments/on_disk_attachment_store.h" 5 #include "components/sync/engine/attachments/on_disk_attachment_store.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/metrics/histogram_macros.h" 15 #include "base/metrics/histogram_macros.h"
16 #include "base/sequenced_task_runner.h" 16 #include "base/sequenced_task_runner.h"
17 #include "components/sync/core/attachments/attachment_util.h" 17 #include "components/sync/engine/attachments/attachment_util.h"
18 #include "components/sync/core_impl/attachments/proto/attachment_store.pb.h" 18 #include "components/sync/engine_impl/attachments/proto/attachment_store.pb.h"
19 #include "components/sync/protocol/attachments.pb.h" 19 #include "components/sync/protocol/attachments.pb.h"
20 #include "third_party/leveldatabase/env_chromium.h" 20 #include "third_party/leveldatabase/env_chromium.h"
21 #include "third_party/leveldatabase/src/include/leveldb/db.h" 21 #include "third_party/leveldatabase/src/include/leveldb/db.h"
22 #include "third_party/leveldatabase/src/include/leveldb/options.h" 22 #include "third_party/leveldatabase/src/include/leveldb/options.h"
23 #include "third_party/leveldatabase/src/include/leveldb/slice.h" 23 #include "third_party/leveldatabase/src/include/leveldb/slice.h"
24 #include "third_party/leveldatabase/src/include/leveldb/status.h" 24 #include "third_party/leveldatabase/src/include/leveldb/status.h"
25 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" 25 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
26 26
27 namespace syncer { 27 namespace syncer {
28 28
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 return key; 531 return key;
532 } 532 }
533 533
534 AttachmentMetadata OnDiskAttachmentStore::MakeAttachmentMetadata( 534 AttachmentMetadata OnDiskAttachmentStore::MakeAttachmentMetadata(
535 const AttachmentId& attachment_id, 535 const AttachmentId& attachment_id,
536 const attachment_store_pb::RecordMetadata& record_metadata) { 536 const attachment_store_pb::RecordMetadata& record_metadata) {
537 return AttachmentMetadata(attachment_id, record_metadata.attachment_size()); 537 return AttachmentMetadata(attachment_id, record_metadata.attachment_size());
538 } 538 }
539 539
540 } // namespace syncer 540 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698