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> |
11 | 11 |
12 #include "chrome/browser/history/history_details.h" | 12 #include "chrome/browser/history/history_details.h" |
13 #include "components/history/core/browser/history_types.h" | 13 #include "components/history/core/browser/history_types.h" |
14 #include "components/history/core/browser/keyword_id.h" | 14 #include "components/history/core/browser/keyword_id.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 namespace history { | 17 namespace history { |
18 | 18 |
19 // Details for NOTIFICATION_HISTORY_TYPED_URLS_MODIFIED. | 19 // Details for History URLs Modified Notification. |
20 struct URLsModifiedDetails : public HistoryDetails { | 20 struct URLsModifiedDetails : public HistoryDetails { |
sdefresne
2014/12/04 17:21:13
Please delete this struct, it is no longer used.
nshaik
2014/12/07 09:34:50
Done.
| |
21 URLsModifiedDetails(); | 21 URLsModifiedDetails(); |
22 ~URLsModifiedDetails() override; | 22 ~URLsModifiedDetails() override; |
23 | 23 |
24 // Lists the information for each of the URLs affected. The rows will have the | 24 // Lists the information for each of the URLs affected. The rows will have the |
25 // IDs that are currently in effect in the main history database. | 25 // IDs that are currently in effect in the main history database. |
26 URLRows changed_urls; | 26 URLRows changed_urls; |
27 }; | 27 }; |
28 | 28 |
29 // Details for NOTIFICATION_HISTORY_URLS_DELETED. | 29 // Details for History URLs Deleted Notification. |
30 struct URLsDeletedDetails : public HistoryDetails { | 30 struct URLsDeletedDetails : public HistoryDetails { |
sdefresne
2014/12/04 17:21:13
I'd like to get this removed; please see my commen
nshaik
2014/12/07 09:34:50
had the same thoughts. done.
| |
31 URLsDeletedDetails(); | 31 URLsDeletedDetails(); |
32 URLsDeletedDetails(bool all_history, | |
33 bool expired, | |
34 const URLRows& rows, | |
35 const std::set<GURL>& favicon_urls); | |
32 ~URLsDeletedDetails() override; | 36 ~URLsDeletedDetails() override; |
33 | 37 |
34 // Set when all history was deleted. False means just a subset was deleted. | 38 // Set when all history was deleted. False means just a subset was deleted. |
35 bool all_history; | 39 bool all_history; |
36 | 40 |
37 // True if the data was expired due to old age. False if the data was deleted | 41 // True if the data was expired due to old age. False if the data was deleted |
38 // in response to an explicit user action through the History UI. | 42 // in response to an explicit user action through the History UI. |
39 bool expired; | 43 bool expired; |
40 | 44 |
41 // The URLRows of URLs deleted. This is valid only when |all_history| is false | 45 // The URLRows of URLs deleted. This is valid only when |all_history| is false |
(...skipping 26 matching lines...) Expand all Loading... | |
68 explicit KeywordSearchDeletedDetails(URLID url_row_id); | 72 explicit KeywordSearchDeletedDetails(URLID url_row_id); |
69 ~KeywordSearchDeletedDetails() override; | 73 ~KeywordSearchDeletedDetails() override; |
70 | 74 |
71 // The ID of the corresponding URLRow in the main history database. | 75 // The ID of the corresponding URLRow in the main history database. |
72 URLID url_row_id; | 76 URLID url_row_id; |
73 }; | 77 }; |
74 | 78 |
75 } // namespace history | 79 } // namespace history |
76 | 80 |
77 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ | 81 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ |
OLD | NEW |