| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/history/core/browser/history_types.h" | 9 #include "components/history/core/browser/history_types.h" |
| 10 #include "components/history/core/browser/keyword_id.h" | 10 #include "components/history/core/browser/keyword_id.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 // Sent when a keyword search term is updated. | 52 // Sent when a keyword search term is updated. |
| 53 // | 53 // |
| 54 // |row| contains the URL information for search |term|. | 54 // |row| contains the URL information for search |term|. |
| 55 // |keyword_id| associated with a URL and search term. | 55 // |keyword_id| associated with a URL and search term. |
| 56 virtual void OnKeywordSearchTermUpdated(HistoryService* history_service, | 56 virtual void OnKeywordSearchTermUpdated(HistoryService* history_service, |
| 57 const URLRow& row, | 57 const URLRow& row, |
| 58 KeywordID keyword_id, | 58 KeywordID keyword_id, |
| 59 const base::string16& term) {} | 59 const base::string16& term) {} |
| 60 | 60 |
| 61 // Sent when a keyword search term is deleted. |
| 62 // |url_id| is the id of the url row. |
| 63 virtual void OnKeywordSearchTermDeleted(HistoryService* history_service, |
| 64 URLID url_id) {} |
| 65 |
| 61 private: | 66 private: |
| 62 DISALLOW_COPY_AND_ASSIGN(HistoryServiceObserver); | 67 DISALLOW_COPY_AND_ASSIGN(HistoryServiceObserver); |
| 63 }; | 68 }; |
| 64 | 69 |
| 65 } // namespace history | 70 } // namespace history |
| 66 | 71 |
| 67 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ | 72 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |
| OLD | NEW |