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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 }; | 45 }; |
46 | 46 |
47 // Details for NOTIFICATION_HISTORY_URLS_DELETED. | 47 // Details for NOTIFICATION_HISTORY_URLS_DELETED. |
48 struct URLsDeletedDetails : public HistoryDetails { | 48 struct URLsDeletedDetails : public HistoryDetails { |
49 URLsDeletedDetails(); | 49 URLsDeletedDetails(); |
50 virtual ~URLsDeletedDetails(); | 50 virtual ~URLsDeletedDetails(); |
51 | 51 |
52 // Set when all history was deleted. False means just a subset was deleted. | 52 // Set when all history was deleted. False means just a subset was deleted. |
53 bool all_history; | 53 bool all_history; |
54 | 54 |
55 // True if the data was archived. False if the data was deleted in response to | 55 // True if the data was expired due to old age. False if the data was deleted |
56 // an explicit user action through the History UI. | 56 // in response to an explicit user action through the History UI. |
57 bool archived; | 57 bool expired; |
58 | 58 |
59 // The URLRows of URLs deleted. This is valid only when |all_history| is false | 59 // The URLRows of URLs deleted. This is valid only when |all_history| is false |
60 // indicating that a subset of history has been deleted. The rows will have | 60 // indicating that a subset of history has been deleted. The rows will have |
61 // the IDs that had been in effect before the deletion in the main history | 61 // the IDs that had been in effect before the deletion in the main history |
62 // database. | 62 // database. |
63 URLRows rows; | 63 URLRows rows; |
64 | 64 |
65 // The list of deleted favicon urls. This is valid only when |all_history| is | 65 // The list of deleted favicon urls. This is valid only when |all_history| is |
66 // false, indicating that a subset of history has been deleted. | 66 // false, indicating that a subset of history has been deleted. |
67 std::set<GURL> favicon_urls; | 67 std::set<GURL> favicon_urls; |
(...skipping 18 matching lines...) Expand all Loading... |
86 explicit KeywordSearchDeletedDetails(URLID url_row_id); | 86 explicit KeywordSearchDeletedDetails(URLID url_row_id); |
87 virtual ~KeywordSearchDeletedDetails(); | 87 virtual ~KeywordSearchDeletedDetails(); |
88 | 88 |
89 // The ID of the corresponding URLRow in the main history database. | 89 // The ID of the corresponding URLRow in the main history database. |
90 URLID url_row_id; | 90 URLID url_row_id; |
91 }; | 91 }; |
92 | 92 |
93 } // namespace history | 93 } // namespace history |
94 | 94 |
95 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ | 95 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ |
OLD | NEW |