#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) { … }
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) { … }
}