#include "apps/app_lifetime_monitor.h"
#include "base/observer_list.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/app_window/app_window.h"
#include "extensions/browser/extension_host.h"
#include "extensions/common/extension.h"
namespace apps {
AppWindow;
AppWindowRegistry;
Extension;
ExtensionHost;
AppLifetimeMonitor::AppLifetimeMonitor(content::BrowserContext* context)
: … { … }
AppLifetimeMonitor::~AppLifetimeMonitor() = default;
void AppLifetimeMonitor::AddObserver(Observer* observer) { … }
void AppLifetimeMonitor::RemoveObserver(Observer* observer) { … }
void AppLifetimeMonitor::OnExtensionHostCompletedFirstLoad(
content::BrowserContext* browser_context,
ExtensionHost* host) { … }
void AppLifetimeMonitor::OnExtensionHostDestroyed(
content::BrowserContext* browser_context,
extensions::ExtensionHost* host) { … }
void AppLifetimeMonitor::OnAppWindowRemoved(AppWindow* app_window) { … }
void AppLifetimeMonitor::OnAppWindowHidden(AppWindow* app_window) { … }
void AppLifetimeMonitor::OnAppWindowShown(AppWindow* app_window,
bool was_hidden) { … }
void AppLifetimeMonitor::Shutdown() { … }
bool AppLifetimeMonitor::HasOtherVisibleAppWindows(
AppWindow* app_window) const { … }
void AppLifetimeMonitor::NotifyAppStart(const std::string& app_id) { … }
void AppLifetimeMonitor::NotifyAppActivated(const std::string& app_id) { … }
void AppLifetimeMonitor::NotifyAppDeactivated(const std::string& app_id) { … }
void AppLifetimeMonitor::NotifyAppStop(const std::string& app_id) { … }
}