Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/browser/history/history_notifications.h

Issue 235863023: Eliminate the archived history database and clean up related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, improved comments, fixed minor formatting nits. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 }; 45 };
46 46
47 // Details for NOTIFICATION_HISTORY_URLS_DELETED. 47 // Details for NOTIFICATION_HISTORY_URLS_DELETED.
48 struct URLsDeletedDetails : public HistoryDetails { 48 struct URLsDeletedDetails : public HistoryDetails {
49 URLsDeletedDetails(); 49 URLsDeletedDetails();
50 virtual ~URLsDeletedDetails(); 50 virtual ~URLsDeletedDetails();
51 51
52 // Set when all history was deleted. False means just a subset was deleted. 52 // Set when all history was deleted. False means just a subset was deleted.
53 bool all_history; 53 bool all_history;
54 54
55 // True if the data was archived. False if the data was deleted in response to 55 // True if the data was expired due to old age. False if the data was deleted
56 // an explicit user action through the History UI. 56 // in response to an explicit user action through the History UI.
57 bool archived; 57 bool expired;
58 58
59 // The URLRows of URLs deleted. This is valid only when |all_history| is false 59 // The URLRows of URLs deleted. This is valid only when |all_history| is false
60 // indicating that a subset of history has been deleted. The rows will have 60 // indicating that a subset of history has been deleted. The rows will have
61 // the IDs that had been in effect before the deletion in the main history 61 // the IDs that had been in effect before the deletion in the main history
62 // database. 62 // database.
63 URLRows rows; 63 URLRows rows;
64 64
65 // The list of deleted favicon urls. This is valid only when |all_history| is 65 // The list of deleted favicon urls. This is valid only when |all_history| is
66 // false, indicating that a subset of history has been deleted. 66 // false, indicating that a subset of history has been deleted.
67 std::set<GURL> favicon_urls; 67 std::set<GURL> favicon_urls;
(...skipping 18 matching lines...) Expand all
86 explicit KeywordSearchDeletedDetails(URLID url_row_id); 86 explicit KeywordSearchDeletedDetails(URLID url_row_id);
87 virtual ~KeywordSearchDeletedDetails(); 87 virtual ~KeywordSearchDeletedDetails();
88 88
89 // The ID of the corresponding URLRow in the main history database. 89 // The ID of the corresponding URLRow in the main history database.
90 URLID url_row_id; 90 URLID url_row_id;
91 }; 91 };
92 92
93 } // namespace history 93 } // namespace history
94 94
95 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__ 95 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698