chromium/components/user_notes/storage/user_note_storage_impl.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// `BLOCK_SHUTDOWN` is used to delay browser shutdown until storage operations
// are complete to prevent possible data corruption.
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) {}

}  // namespace user_notes