blob: 9f37d3e9131cba37c2e465e482ca6b630f8e25ab [file] [log] [blame]
// Copyright 2012 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_UI_BROWSER_LIST_OBSERVER_H_
#define CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
#include "base/observer_list_types.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_ANDROID)
#error This file should only be included on desktop.
#endif
class Browser;
class BrowserListObserver : public base::CheckedObserver {
public:
// Called immediately after a browser is added to the list.
virtual void OnBrowserAdded(Browser* browser) {}
// Called immediately after a browser is removed from the list.
virtual void OnBrowserRemoved(Browser* browser) {}
// Called immediately after a browser is set active (SetLastActive).
virtual void OnBrowserSetLastActive(Browser* browser) {}
// Called immediately after a browser becomes not active.
virtual void OnBrowserNoLongerActive(Browser* browser) {}
};
#endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_