#include "chrome/browser/device_notifications/device_connection_tracker.h"
#include <string>
#include "base/containers/contains.h"
#include "base/notreached.h"
#include "build/build_config.h"
#include "chrome/browser/device_notifications/device_system_tray_icon.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/buildflags/buildflags.h"
#include "url/origin.h"
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "extensions/browser/extension_registry.h"
#include "extensions/common/constants.h"
#endif
namespace {
TimeTicks;
std::string GetOriginName(Profile* profile, const url::Origin& origin) { … }
}
DeviceConnectionTracker::DeviceConnectionTracker(Profile* profile)
: … { … }
DeviceConnectionTracker::~DeviceConnectionTracker() { … }
void DeviceConnectionTracker::IncrementConnectionCount(
const url::Origin& origin) { … }
void DeviceConnectionTracker::DecrementConnectionCount(
const url::Origin& origin) { … }
void DeviceConnectionTracker::ShowSiteSettings(const url::Origin& origin) { … }
void DeviceConnectionTracker::CleanUp() { … }
void DeviceConnectionTracker::CleanUpOrigin(const url::Origin& origin,
const TimeTicks& timestamp) { … }