| OLD | NEW |
| (Empty) | |
| 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 // Implementations must not change the contents of the BrowserList inside any |
| 13 // of these methods. |
| 14 class BrowserListObserver { |
| 15 public: |
| 16 // Called immediately after a browser is added to the list |
| 17 virtual void OnBrowserAdded(Browser* browser) {} |
| 18 |
| 19 // Called immediately after a browser is removed from the list |
| 20 virtual void OnBrowserRemoved(Browser* browser) {} |
| 21 |
| 22 // Called immediately after a browser is set active (SetLastActive) |
| 23 virtual void OnBrowserSetLastActive(Browser* browser) {} |
| 24 |
| 25 protected: |
| 26 virtual ~BrowserListObserver() {} |
| 27 }; |
| 28 |
| 29 } // namespace chrome |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_ |
| OLD | NEW |