blob: 73d6449799fc0a39a2b4371cdf059d628d49490f [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SITE_ISOLATION_PREFS_OBSERVER_H_
#define CHROME_BROWSER_SITE_ISOLATION_PREFS_OBSERVER_H_
#include "components/prefs/pref_change_registrar.h"
class PrefService;
// Helper for translating Site-Isolation-related prefs (and enterprise policies
// mapped to prefs) into appropriate runtime settings.
class SiteIsolationPrefsObserver {
public:
explicit SiteIsolationPrefsObserver(PrefService* pref_service);
SiteIsolationPrefsObserver(const SiteIsolationPrefsObserver&) = delete;
SiteIsolationPrefsObserver& operator=(const SiteIsolationPrefsObserver&) =
delete;
private:
void OnChangeInIsolatedOriginsPref();
PrefChangeRegistrar pref_change_registrar_;
};
#endif // CHROME_BROWSER_SITE_ISOLATION_PREFS_OBSERVER_H_