| 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 // Details for NOTIFICATION_HISTORY_URLS_DELETED. | 52 // Details for NOTIFICATION_HISTORY_URLS_DELETED. |
| 53 struct URLsDeletedDetails : public HistoryDetails { | 53 struct URLsDeletedDetails : public HistoryDetails { |
| 54 URLsDeletedDetails(); | 54 URLsDeletedDetails(); |
| 55 virtual ~URLsDeletedDetails(); | 55 virtual ~URLsDeletedDetails(); |
| 56 | 56 |
| 57 // Set when all history was deleted. False means just a subset was deleted. | 57 // Set when all history was deleted. False means just a subset was deleted. |
| 58 bool all_history; | 58 bool all_history; |
| 59 | 59 |
| 60 // True if the data was archived. False if the data was deleted in response to |
| 61 // an explicit user action through the History UI. |
| 62 bool archived; |
| 63 |
| 60 // The URLRows of URLs deleted. This is valid only when all_history is false | 64 // The URLRows of URLs deleted. This is valid only when all_history is false |
| 61 // indicating that a subset of history has been deleted. | 65 // indicating that a subset of history has been deleted. |
| 62 URLRows rows; | 66 URLRows rows; |
| 63 }; | 67 }; |
| 64 | 68 |
| 65 // Details for NOTIFY_URLS_STARRED. | 69 // Details for NOTIFY_URLS_STARRED. |
| 66 struct URLsStarredDetails : public HistoryDetails { | 70 struct URLsStarredDetails : public HistoryDetails { |
| 67 explicit URLsStarredDetails(bool being_starred); | 71 explicit URLsStarredDetails(bool being_starred); |
| 68 virtual ~URLsStarredDetails(); | 72 virtual ~URLsStarredDetails(); |
| 69 | 73 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 89 virtual ~KeywordSearchTermDetails(); | 93 virtual ~KeywordSearchTermDetails(); |
| 90 | 94 |
| 91 GURL url; | 95 GURL url; |
| 92 TemplateURLID keyword_id; | 96 TemplateURLID keyword_id; |
| 93 string16 term; | 97 string16 term; |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 } // namespace history | 100 } // namespace history |
| 97 | 101 |
| 98 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ | 102 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ |
| OLD | NEW |