#include "components/omnibox/browser/on_device_model_update_listener.h"
#include "base/files/file_enumerator.h"
#include "base/no_destructor.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/thread_pool.h"
#include "components/optimization_guide/core/model_util.h"
namespace {
std::string GetModelFilenameFromDirectory(const base::FilePath& model_dir) { … }
}
OnDeviceModelUpdateListener* OnDeviceModelUpdateListener::GetInstance() { … }
std::string OnDeviceModelUpdateListener::head_model_filename() const { … }
OnDeviceModelUpdateListener::OnDeviceModelUpdateListener() = default;
OnDeviceModelUpdateListener::~OnDeviceModelUpdateListener() = default;
void OnDeviceModelUpdateListener::OnHeadModelUpdate(
const base::FilePath& model_dir) { … }
void OnDeviceModelUpdateListener::ResetListenerForTest() { … }