Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: ios/shared/chrome/browser/ui/browser_list/browser_list_observer.h

Issue 2831363002: [ios] Add a BrowserListObserver interface. (Closed)
Patch Set: Rebase. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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 IOS_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_LIST_OBSERVER_H_
6 #define IOS_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_LIST_OBSERVER_H_
7
8 #include "base/macros.h"
9
10 class Browser;
11 class BrowserList;
12
13 // Interface for observing modifications of a BrowserList.
14 class BrowserListObserver {
15 public:
16 BrowserListObserver();
17 virtual ~BrowserListObserver();
18
19 // Invoked after |browser| has been added to |browser_list|.
20 virtual void OnBrowserCreated(BrowserList* browser_list, Browser* browser);
21
22 // Invoked before |browser| is removed from |browser_list|.
23 virtual void OnBrowserRemoved(BrowserList* browser_list, Browser* browser);
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(BrowserListObserver);
27 };
28
29 #endif // IOS_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_LIST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698