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