| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "chrome/browser/extensions/window_controller.h" | 14 #include "chrome/browser/extensions/window_controller.h" |
| 15 | 15 |
| 16 class Profile; | |
| 17 class UIThreadExtensionFunction; | 16 class UIThreadExtensionFunction; |
| 18 | 17 |
| 19 namespace extensions { | 18 namespace extensions { |
| 20 | 19 |
| 21 class WindowControllerListObserver; | 20 class WindowControllerListObserver; |
| 22 | 21 |
| 23 // Class to maintain a list of WindowControllers. | 22 // Class to maintain a list of WindowControllers. |
| 24 class WindowControllerList { | 23 class WindowControllerList { |
| 25 public: | 24 public: |
| 26 typedef std::list<WindowController*> ControllerList; | 25 typedef std::list<WindowController*> ControllerList; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ControllerList windows_; | 70 ControllerList windows_; |
| 72 | 71 |
| 73 base::ObserverList<WindowControllerListObserver> observers_; | 72 base::ObserverList<WindowControllerListObserver> observers_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(WindowControllerList); | 74 DISALLOW_COPY_AND_ASSIGN(WindowControllerList); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace extensions | 77 } // namespace extensions |
| 79 | 78 |
| 80 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ | 79 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ |
| OLD | NEW |