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 // The URLRows of URLs deleted. This is valid only when all_history is false | 60 // The URLRows which have been deleted. |
61 // indicating that a subset of history has been deleted. | |
62 URLRows rows; | 61 URLRows rows; |
| 62 |
| 63 // The list of unique URLs affected. This is valid only when a subset of |
| 64 // history is deleted. When all of it is deleted, this will be empty, since |
| 65 // we do not bother to list all URLs. (This information can be gleaned from |
| 66 // |rows| but, since there are several clients who need the set, we pre-build |
| 67 // it so that the clients don't have to.) |
| 68 std::set<GURL> urls; |
63 }; | 69 }; |
64 | 70 |
65 // Details for NOTIFY_URLS_STARRED. | 71 // Details for NOTIFY_URLS_STARRED. |
66 struct URLsStarredDetails : public HistoryDetails { | 72 struct URLsStarredDetails : public HistoryDetails { |
67 explicit URLsStarredDetails(bool being_starred); | 73 explicit URLsStarredDetails(bool being_starred); |
68 virtual ~URLsStarredDetails(); | 74 virtual ~URLsStarredDetails(); |
69 | 75 |
70 // The new starred state of the list of URLs. True when they are being | 76 // The new starred state of the list of URLs. True when they are being |
71 // starred, false when they are being unstarred. | 77 // starred, false when they are being unstarred. |
72 bool starred; | 78 bool starred; |
(...skipping 16 matching lines...) Expand all Loading... |
89 virtual ~KeywordSearchTermDetails(); | 95 virtual ~KeywordSearchTermDetails(); |
90 | 96 |
91 GURL url; | 97 GURL url; |
92 TemplateURLID keyword_id; | 98 TemplateURLID keyword_id; |
93 string16 term; | 99 string16 term; |
94 }; | 100 }; |
95 | 101 |
96 } // namespace history | 102 } // namespace history |
97 | 103 |
98 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ | 104 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ |
OLD | NEW |