Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / search / instant_service_observer.h
blob7d88b1acd2b41420b9a7a4ea3fd4f32c542994da
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.
5 #ifndef CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_
6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_
8 #include <vector>
10 struct InstantMostVisitedItem;
11 struct ThemeBackgroundInfo;
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&);
19 // Indicates that the most visited items has changed.
20 virtual void MostVisitedItemsChanged(
21 const std::vector<InstantMostVisitedItem>&);
23 // Indicates that the default search provider changed.
24 virtual void DefaultSearchProviderChanged();
26 // Indicates that the Google URL has changed as a result of searchdomaincheck.
27 // Note that the search domain change triggers a yellow infobar at the top of
28 // the page, and the actual change is triggered after the user accepts.
29 virtual void GoogleURLUpdated();
31 protected:
32 virtual ~InstantServiceObserver() {}
35 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_