1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "components/download/database/download_db.h"
6 
7 #include "base/callback.h"
8 #include "components/download/database/download_db_entry.h"
9 
10 namespace download {
11 
12 DownloadDB::DownloadDB() = default;
13 
14 DownloadDB::~DownloadDB() = default;
15 
Initialize(DownloadDBCallback callback)16 void DownloadDB::Initialize(DownloadDBCallback callback) {
17   std::move(callback).Run(true);
18 }
19 
AddOrReplace(const DownloadDBEntry & entry)20 void DownloadDB::AddOrReplace(const DownloadDBEntry& entry) {}
21 
AddOrReplaceEntries(const std::vector<DownloadDBEntry> & entry,DownloadDBCallback callback)22 void DownloadDB::AddOrReplaceEntries(const std::vector<DownloadDBEntry>& entry,
23                                      DownloadDBCallback callback) {
24   std::move(callback).Run(true);
25 }
26 
LoadEntries(LoadEntriesCallback callback)27 void DownloadDB::LoadEntries(LoadEntriesCallback callback) {
28   std::move(callback).Run(true,
29                           std::make_unique<std::vector<DownloadDBEntry>>());
30 }
31 
Remove(const std::string & guid)32 void DownloadDB::Remove(const std::string& guid) {}
33 
34 }  // namespace download
35