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_SEARCH_INSTANT_SERVICE_OBSERVER_H_ 6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_ 7 8 #include <vector> 9 10 struct InstantMostVisitedItem; 11 struct ThemeBackgroundInfo; 12 13 // InstantServiceObserver defines the observer interface for InstantService. 14 class InstantServiceObserver { 15 public: 16 // Indicates that the user's custom theme has changed in some way. 17 virtual void ThemeInfoChanged(const ThemeBackgroundInfo&) = 0; 18 19 // Indicates that the most visited items has changed. 20 virtual void MostVisitedItemsChanged( 21 const std::vector<InstantMostVisitedItem>&) = 0; 22 23 protected: 24 virtual ~InstantServiceObserver() {} 25 }; 26 27 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_ 28