Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 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 CHROME_BROWSER_INSTANT_INSTANT_SERVICE_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_SERVICE_OBSERVER_H_ | |
| 7 | |
| 8 // This class defines the observer interface for InstantService. | |
| 9 class InstantServiceObserver { | |
|
samarth
2013/03/11 19:03:24
Did you leave out the default no-op implementation
| |
| 10 public: | |
| 11 // Indicates that either IsInstantEnabled() or IsInstantPrefEnabled() (as per | |
| 12 // chrome/browser/ui/search/search.h) has changed in value. | |
|
samarth
2013/03/11 19:03:24
nit: c/b/ui/search -> c/b/instant
| |
| 13 virtual void InstantStatusChanged() = 0; | |
| 14 | |
| 15 // Indicates that the user's custom theme has changed in some way. | |
| 16 virtual void ThemeInfoChanged() = 0; | |
| 17 | |
| 18 // Indicates that the Top Sites (Most Visited) info has changed in some way. | |
| 19 virtual void MostVisitedItemsChanged() = 0; | |
| 20 | |
| 21 protected: | |
| 22 ~InstantServiceObserver() {} | |
|
samarth
2013/03/12 21:31:21
Don't inline and make it virtual.
| |
| 23 }; | |
| 24 | |
| 25 #endif // CHROME_BROWSER_INSTANT_INSTANT_SERVICE_OBSERVER_H_ | |
| OLD | NEW |