summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/search/search_model_observer.h
blob: 7b766d67aa36a4d4ad85ab3a912485feb5123c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2012 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_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_
#define CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_

#include "chrome/browser/ui/search/search_model.h"

// This class defines the observer interface for the |SearchModel|.
class SearchModelObserver {
 public:
  // Informs the observer that the model's state has changed.
  virtual void ModelChanged(const SearchModel::State& old_state,
                            const SearchModel::State& new_state) = 0;

 protected:
  virtual ~SearchModelObserver() {}
};

#endif  // CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_