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 // Structs that hold data used in broadcasting notifications. | 5 // Structs that hold data used in broadcasting notifications. |
6 | 6 |
7 #ifndef CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ | 7 #ifndef CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ |
8 #define CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ | 8 #define CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // indicating that a subset of history has been deleted. The rows will have | 42 // indicating that a subset of history has been deleted. The rows will have |
43 // the IDs that had been in effect before the deletion in the main history | 43 // the IDs that had been in effect before the deletion in the main history |
44 // database. | 44 // database. |
45 URLRows rows; | 45 URLRows rows; |
46 | 46 |
47 // The list of deleted favicon urls. This is valid only when |all_history| is | 47 // The list of deleted favicon urls. This is valid only when |all_history| is |
48 // false, indicating that a subset of history has been deleted. | 48 // false, indicating that a subset of history has been deleted. |
49 std::set<GURL> favicon_urls; | 49 std::set<GURL> favicon_urls; |
50 }; | 50 }; |
51 | 51 |
52 // Details for HISTORY_KEYWORD_SEARCH_TERM_UPDATED. | |
53 struct KeywordSearchUpdatedDetails : public HistoryDetails { | |
54 KeywordSearchUpdatedDetails(const URLRow& url_row, | |
55 KeywordID keyword_id, | |
56 const base::string16& term); | |
57 ~KeywordSearchUpdatedDetails() override; | |
58 | |
59 // The affected URLRow. The ID will be set to the value that is currently in | |
60 // effect in the main history database. | |
61 URLRow url_row; | |
62 KeywordID keyword_id; | |
63 base::string16 term; | |
64 }; | |
65 | |
66 // Details for HISTORY_KEYWORD_SEARCH_TERM_DELETED. | 52 // Details for HISTORY_KEYWORD_SEARCH_TERM_DELETED. |
67 struct KeywordSearchDeletedDetails : public HistoryDetails { | 53 struct KeywordSearchDeletedDetails : public HistoryDetails { |
68 explicit KeywordSearchDeletedDetails(URLID url_row_id); | 54 explicit KeywordSearchDeletedDetails(URLID url_row_id); |
69 ~KeywordSearchDeletedDetails() override; | 55 ~KeywordSearchDeletedDetails() override; |
70 | 56 |
71 // The ID of the corresponding URLRow in the main history database. | 57 // The ID of the corresponding URLRow in the main history database. |
72 URLID url_row_id; | 58 URLID url_row_id; |
73 }; | 59 }; |
74 | 60 |
75 } // namespace history | 61 } // namespace history |
76 | 62 |
77 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ | 63 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ |
OLD | NEW |