| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // was invoked in using |filter|. | 57 // was invoked in using |filter|. |
| 58 WindowController* CurrentWindowForFunctionWithFilter( | 58 WindowController* CurrentWindowForFunctionWithFilter( |
| 59 const UIThreadExtensionFunction* function, | 59 const UIThreadExtensionFunction* function, |
| 60 WindowController::TypeFilter filter) const; | 60 WindowController::TypeFilter filter) const; |
| 61 | 61 |
| 62 const ControllerList& windows() const { return windows_; } | 62 const ControllerList& windows() const { return windows_; } |
| 63 | 63 |
| 64 static WindowControllerList* GetInstance(); | 64 static WindowControllerList* GetInstance(); |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 friend struct DefaultSingletonTraits<WindowControllerList>; | 67 friend struct base::DefaultSingletonTraits<WindowControllerList>; |
| 68 | 68 |
| 69 // Entries are not owned by this class and must be removed when destroyed. | 69 // Entries are not owned by this class and must be removed when destroyed. |
| 70 ControllerList windows_; | 70 ControllerList windows_; |
| 71 | 71 |
| 72 base::ObserverList<WindowControllerListObserver> observers_; | 72 base::ObserverList<WindowControllerListObserver> observers_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(WindowControllerList); | 74 DISALLOW_COPY_AND_ASSIGN(WindowControllerList); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace extensions | 77 } // namespace extensions |
| 78 | 78 |
| 79 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ | 79 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ |
| OLD | NEW |