| 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 30 matching lines...) Expand all Loading... |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 // Details for NOTIFICATION_HISTORY_URLS_DELETED. | 43 // Details for NOTIFICATION_HISTORY_URLS_DELETED. |
| 44 struct URLsDeletedDetails : public HistoryDetails { | 44 struct URLsDeletedDetails : public HistoryDetails { |
| 45 URLsDeletedDetails(); | 45 URLsDeletedDetails(); |
| 46 virtual ~URLsDeletedDetails(); | 46 virtual ~URLsDeletedDetails(); |
| 47 | 47 |
| 48 // Set when all history was deleted. False means just a subset was deleted. | 48 // Set when all history was deleted. False means just a subset was deleted. |
| 49 bool all_history; | 49 bool all_history; |
| 50 | 50 |
| 51 // True if the data was archived. False if the data was deleted in response to | 51 // True if the data was expired due to old age. False if the data was deleted |
| 52 // an explicit user action through the History UI. | 52 // in response to an explicit user action through the History UI. |
| 53 bool archived; | 53 bool expired; |
| 54 | 54 |
| 55 // The URLRows of URLs deleted. This is valid only when |all_history| is false | 55 // The URLRows of URLs deleted. This is valid only when |all_history| is false |
| 56 // indicating that a subset of history has been deleted. | 56 // indicating that a subset of history has been deleted. |
| 57 URLRows rows; | 57 URLRows rows; |
| 58 | 58 |
| 59 // The list of deleted favicon urls. This is valid only when |all_history| is | 59 // The list of deleted favicon urls. This is valid only when |all_history| is |
| 60 // false, indicating that a subset of history has been deleted. | 60 // false, indicating that a subset of history has been deleted. |
| 61 std::set<GURL> favicon_urls; | 61 std::set<GURL> favicon_urls; |
| 62 }; | 62 }; |
| 63 | 63 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 77 struct KeywordSearchDeletedDetails : public HistoryDetails { | 77 struct KeywordSearchDeletedDetails : public HistoryDetails { |
| 78 explicit KeywordSearchDeletedDetails(const GURL& url); | 78 explicit KeywordSearchDeletedDetails(const GURL& url); |
| 79 virtual ~KeywordSearchDeletedDetails(); | 79 virtual ~KeywordSearchDeletedDetails(); |
| 80 | 80 |
| 81 GURL url; | 81 GURL url; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace history | 84 } // namespace history |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ | 86 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ |
| OLD | NEW |