| // Copyright 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_ |
| #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_ |
| |
| #include <vector> |
| |
| #include "build/build_config.h" |
| |
| #if defined(OS_ANDROID) |
| #error "Instant is only used on desktop"; |
| #endif |
| |
| struct InstantMostVisitedItem; |
| struct ThemeBackgroundInfo; |
| |
| // InstantServiceObserver defines the observer interface for InstantService. |
| class InstantServiceObserver { |
| public: |
| // Indicates that the user's custom theme has changed in some way. |
| virtual void ThemeInfoChanged(const ThemeBackgroundInfo&); |
| |
| // Indicates that the most visited items has changed. |is_custom_links| is |
| // true if the items are custom links. |
| virtual void MostVisitedItemsChanged( |
| const std::vector<InstantMostVisitedItem>&, |
| bool is_custom_links); |
| |
| protected: |
| virtual ~InstantServiceObserver() {} |
| }; |
| |
| #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_ |