chromium/chrome/browser/media/router/discovery/access_code/access_code_cast_pref_updater_impl.cc

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

#include "chrome/browser/media/router/discovery/access_code/access_code_cast_pref_updater_impl.h"

#include "base/json/values_util.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_feature.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_media_sink_util.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"

namespace media_router {
AccessCodeCastPrefUpdaterImpl::AccessCodeCastPrefUpdaterImpl(
    PrefService* service)
    :{}

void AccessCodeCastPrefUpdaterImpl::UpdateDevicesDict(
    const MediaSinkInternal& sink,
    base::OnceClosure on_updated_callback) {}

// This stored preference looks like:
//   "prefs::kAccessCodeCastDeviceAdditionTime": {
//     A string-flavored base::value representing the int64_t number of
//     microseconds since the Windows epoch, using base::TimeToValue().
//     "<sink_id_1>": "1237234734723747234",
//     "<sink_id_2>": "12372347312312347234",
//   }
void AccessCodeCastPrefUpdaterImpl::UpdateDeviceAddedTimeDict(
    const MediaSink::Id sink_id,
    base::OnceClosure on_updated_callback) {}

void AccessCodeCastPrefUpdaterImpl::GetDevicesDict(
    base::OnceCallback<void(base::Value::Dict)> get_devices_callback) {}

void AccessCodeCastPrefUpdaterImpl::GetDeviceAddedTimeDict(
    base::OnceCallback<void(base::Value::Dict)>
        get_device_added_time_callback) {}

void AccessCodeCastPrefUpdaterImpl::RemoveSinkIdFromDevicesDict(
    const MediaSink::Id sink_id,
    base::OnceClosure on_sink_removed_callback) {}

void AccessCodeCastPrefUpdaterImpl::RemoveSinkIdFromDeviceAddedTimeDict(
    const MediaSink::Id sink_id,
    base::OnceClosure on_sink_removed_callback) {}

void AccessCodeCastPrefUpdaterImpl::ClearDevicesDict(
    base::OnceClosure on_cleared_callback) {}

void AccessCodeCastPrefUpdaterImpl::ClearDeviceAddedTimeDict(
    base::OnceClosure on_cleared_callback) {}

void AccessCodeCastPrefUpdaterImpl::UpdateDevicesDictForTesting(
    const MediaSinkInternal& sink) {}

}  // namespace media_router