#include "chrome/browser/extensions/api/web_authentication_proxy/remote_session_state_change.h"
#include <memory>
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/task/bind_post_task.h"
#include "base/task/sequenced_task_runner.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/extensions/api/web_authentication_proxy.h"
namespace extensions {
namespace {
void OnSessionStateChangeFileUpdate(
const base::FilePath& watched_path,
const base::RepeatingCallback<void()>& update_callback,
const base::FilePath& path,
bool is_error) { … }
void WatchSessionStateChangeFile(
base::FilePathWatcher* watcher,
const ExtensionId& extension_id,
base::RepeatingCallback<void()> update_callback) { … }
}
bool WebAuthenticationProxyRemoteSessionStateChangeNotifier::
GetSessionStateChangeDir(base::FilePath* out) { … }
WebAuthenticationProxyRemoteSessionStateChangeNotifier::
WebAuthenticationProxyRemoteSessionStateChangeNotifier(
EventRouter* event_router,
ExtensionId extension_id)
: … { … }
WebAuthenticationProxyRemoteSessionStateChangeNotifier::
~WebAuthenticationProxyRemoteSessionStateChangeNotifier() = default;
void WebAuthenticationProxyRemoteSessionStateChangeNotifier::
BroadcastRemoteSessionStateChangeEvent() { … }
}