| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // was invoked in using |filter|. | 62 // was invoked in using |filter|. |
| 63 WindowController* CurrentWindowForFunctionWithFilter( | 63 WindowController* CurrentWindowForFunctionWithFilter( |
| 64 const UIThreadExtensionFunction* function, | 64 const UIThreadExtensionFunction* function, |
| 65 WindowController::TypeFilter filter) const; | 65 WindowController::TypeFilter filter) const; |
| 66 | 66 |
| 67 const ControllerList& windows() const { return windows_; } | 67 const ControllerList& windows() const { return windows_; } |
| 68 | 68 |
| 69 static WindowControllerList* GetInstance(); | 69 static WindowControllerList* GetInstance(); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 friend struct DefaultSingletonTraits<WindowControllerList>; | 72 friend struct base::DefaultSingletonTraits<WindowControllerList>; |
| 73 | 73 |
| 74 // Entries are not owned by this class and must be removed when destroyed. | 74 // Entries are not owned by this class and must be removed when destroyed. |
| 75 ControllerList windows_; | 75 ControllerList windows_; |
| 76 | 76 |
| 77 base::ObserverList<WindowControllerListObserver> observers_; | 77 base::ObserverList<WindowControllerListObserver> observers_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(WindowControllerList); | 79 DISALLOW_COPY_AND_ASSIGN(WindowControllerList); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace extensions | 82 } // namespace extensions |
| 83 | 83 |
| 84 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ | 84 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ |
| OLD | NEW |