| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "chrome/common/search_types.h" | 10 #include "chrome/common/search/search_types.h" |
| 11 | 11 |
| 12 class SearchModelObserver; | 12 class SearchModelObserver; |
| 13 | 13 |
| 14 // Represents whether a page supports Instant. | 14 // Represents whether a page supports Instant. |
| 15 enum InstantSupportState { | 15 enum InstantSupportState { |
| 16 INSTANT_SUPPORT_NO, | 16 INSTANT_SUPPORT_NO, |
| 17 INSTANT_SUPPORT_YES, | 17 INSTANT_SUPPORT_YES, |
| 18 INSTANT_SUPPORT_UNKNOWN, | 18 INSTANT_SUPPORT_UNKNOWN, |
| 19 }; | 19 }; |
| 20 | 20 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Current state of model. | 67 // Current state of model. |
| 68 State state_; | 68 State state_; |
| 69 | 69 |
| 70 // Observers. | 70 // Observers. |
| 71 base::ObserverList<SearchModelObserver> observers_; | 71 base::ObserverList<SearchModelObserver> observers_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(SearchModel); | 73 DISALLOW_COPY_AND_ASSIGN(SearchModel); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_H_ | 76 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_H_ |
| OLD | NEW |