#include "chrome/browser/ui/views/side_panel/side_panel_registry.h"
#include "base/containers/unique_ptr_adapters.h"
#include "base/observer_list.h"
#include "base/ranges/algorithm.h"
#include "chrome/browser/ui/tabs/public/tab_features.h"
#include "chrome/browser/ui/tabs/public/tab_interface.h"
#include "chrome/browser/ui/views/side_panel/side_panel_entry.h"
#include "chrome/browser/ui/views/side_panel/side_panel_registry_observer.h"
#include "content/public/browser/web_contents.h"
#include "extensions/common/extension_id.h"
SidePanelRegistry::SidePanelRegistry() = default;
SidePanelRegistry::~SidePanelRegistry() { … }
SidePanelRegistry* SidePanelRegistry::GetDeprecated(
content::WebContents* web_contents) { … }
SidePanelEntry* SidePanelRegistry::GetEntryForKey(
const SidePanelEntry::Key& entry_key) { … }
void SidePanelRegistry::ResetActiveEntry() { … }
void SidePanelRegistry::ResetLastActiveEntry() { … }
void SidePanelRegistry::ClearCachedEntryViews() { … }
void SidePanelRegistry::AddObserver(SidePanelRegistryObserver* observer) { … }
void SidePanelRegistry::RemoveObserver(SidePanelRegistryObserver* observer) { … }
bool SidePanelRegistry::Register(std::unique_ptr<SidePanelEntry> entry) { … }
bool SidePanelRegistry::Deregister(const SidePanelEntry::Key& key) { … }
std::unique_ptr<SidePanelEntry> SidePanelRegistry::DeregisterAndReturnEntry(
const SidePanelEntry::Key& key) { … }
void SidePanelRegistry::SetActiveEntry(SidePanelEntry* entry) { … }
void SidePanelRegistry::OnEntryShown(SidePanelEntry* entry) { … }
std::unique_ptr<SidePanelEntry> SidePanelRegistry::RemoveEntry(
SidePanelEntry* entry) { … }