• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
6 #define CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
7 
8 class Browser;
9 
10 namespace chrome {
11 
12 class BrowserListObserver {
13   public:
14   // Called immediately after a browser is added to the list
OnBrowserAdded(Browser * browser)15   virtual void OnBrowserAdded(Browser* browser) {}
16 
17   // Called immediately after a browser is removed from the list
OnBrowserRemoved(Browser * browser)18   virtual void OnBrowserRemoved(Browser* browser) {}
19 
20   // Called immediately after a browser is set active (SetLastActive)
OnBrowserSetLastActive(Browser * browser)21   virtual void OnBrowserSetLastActive(Browser* browser) {}
22 
23  protected:
~BrowserListObserver()24   virtual ~BrowserListObserver() {}
25 };
26 
27 }  // namespace chrome
28 
29 #endif  // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
30