#include "chrome/browser/ui/tabs/organization/trigger_observer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tabs/organization/trigger.h"
#include "content/public/browser/browser_context.h"
TabOrganizationTriggerObserver::TabOrganizationTriggerObserver(
base::RepeatingCallback<void(const Browser*)> on_trigger,
content::BrowserContext* browser_context,
std::unique_ptr<TabOrganizationTrigger> trigger_logic)
: … { … }
TabOrganizationTriggerObserver::~TabOrganizationTriggerObserver() { … }
void TabOrganizationTriggerObserver::OnBrowserAdded(Browser* browser) { … }
void TabOrganizationTriggerObserver::OnBrowserRemoved(Browser* browser) { … }
void TabOrganizationTriggerObserver::OnTabStripModelChanged(
TabStripModel* tab_strip_model,
const TabStripModelChange& change,
const TabStripSelectionChange& selection) { … }
Browser* TabOrganizationTriggerObserver::BrowserForTabStripModel(
TabStripModel* tab_strip_model) const { … }