search_model_observer.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
1// Copyright (c) 2012 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_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_
6#define CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_
7
8namespace chrome {
9namespace search {
10
11struct Mode;
12
13// This class defines the observer interface for the |SearchModel|.
14class SearchModelObserver {
15 public:
16  // Informs the observer that the mode has changed.
17  virtual void ModeChanged(const Mode& old_mode, const Mode& new_mode) = 0;
18
19 protected:
20  virtual ~SearchModelObserver() {}
21};
22
23}  // namespace search
24}  // namespace chrome
25
26#endif  // CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_
27