Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / chrome / browser / extensions / window_controller_list_observer.h
blobdaa1a8e90f66f0148f285c6eb65439a212a7320a
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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_OBSERVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_OBSERVER_H_
8 namespace extensions {
10 class WindowController;
12 // Implementations must not change the contents of the WindowControllerList
13 // inside any of these methods.
14 class WindowControllerListObserver {
15 public:
16 // Called immediately after a window controller is added to the list
17 virtual void OnWindowControllerAdded(WindowController* window_controller) {}
19 // Called immediately after a window controller is removed from the list
20 virtual void OnWindowControllerRemoved(WindowController* window_controller) {}
22 protected:
23 virtual ~WindowControllerListObserver() {}
26 } // namespace extensions
28 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_OBSERVER_H_