summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search/instant_service_observer.h
blob: 68b4c973196b403b5fe73c076628d199eb02f329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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>

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.
  virtual void MostVisitedItemsChanged(
      const std::vector<InstantMostVisitedItem>&);

  // Indicates that the default search provider changed.
  virtual void DefaultSearchProviderChanged();

  // Indicates that the omnibox start margin has changed.
  virtual void OmniboxStartMarginChanged(int omnibox_start_margin);

 protected:
  virtual ~InstantServiceObserver() {}
};

#endif  // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_