#include "components/user_notes/storage/user_note_storage_impl.h"
#include <unordered_set>
#include <vector>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/threading/sequence_bound.h"
namespace user_notes {
UserNoteStorageImpl::UserNoteStorageImpl(
const base::FilePath& path_to_database_dir)
: … { … }
UserNoteStorageImpl::~UserNoteStorageImpl() = default;
void UserNoteStorageImpl::AddObserver(Observer* observer) { … }
void UserNoteStorageImpl::RemoveObserver(Observer* observer) { … }
void UserNoteStorageImpl::GetNoteMetadataForUrls(
const UserNoteStorage::UrlSet& urls,
base::OnceCallback<void(UserNoteMetadataSnapshot)> callback) { … }
void UserNoteStorageImpl::GetNotesById(
const UserNoteStorage::IdSet& ids,
base::OnceCallback<void(std::vector<std::unique_ptr<UserNote>>)> callback) { … }
void UserNoteStorageImpl::UpdateNote(const UserNote* model,
std::u16string note_body_text,
bool is_creation) { … }
void UserNoteStorageImpl::DeleteNote(const base::UnguessableToken& id) { … }
void UserNoteStorageImpl::DeleteAllForUrl(const GURL& url) { … }
void UserNoteStorageImpl::DeleteAllForOrigin(const url::Origin& origin) { … }
void UserNoteStorageImpl::DeleteAllNotes() { … }
void UserNoteStorageImpl::OnNotesChanged(bool notes_changed) { … }
}