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

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

Issue 773103004: Remove NOTIFICATION_HISTORY_URLS_DELETED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to tip Created 5 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Structs that hold data used in broadcasting notifications.
6
7 #ifndef CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__
8 #define CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__
9
10 #include <set>
11
12 #include "chrome/browser/history/history_details.h"
13 #include "components/history/core/browser/history_types.h"
14 #include "url/gurl.h"
15
16 namespace history {
17
18 // Details for NOTIFICATION_HISTORY_TYPED_URLS_MODIFIED.
19 struct URLsModifiedDetails : public HistoryDetails {
20 URLsModifiedDetails();
21 ~URLsModifiedDetails() override;
22
23 // Lists the information for each of the URLs affected. The rows will have the
24 // IDs that are currently in effect in the main history database.
25 URLRows changed_urls;
26 };
27
28 // Details for NOTIFICATION_HISTORY_URLS_DELETED.
29 struct URLsDeletedDetails : public HistoryDetails {
30 URLsDeletedDetails();
31 ~URLsDeletedDetails() override;
32
33 // Set when all history was deleted. False means just a subset was deleted.
34 bool all_history;
35
36 // True if the data was expired due to old age. False if the data was deleted
37 // in response to an explicit user action through the History UI.
38 bool expired;
39
40 // The URLRows of URLs deleted. This is valid only when |all_history| is false
41 // indicating that a subset of history has been deleted. The rows will have
42 // the IDs that had been in effect before the deletion in the main history
43 // database.
44 URLRows rows;
45
46 // The list of deleted favicon urls. This is valid only when |all_history| is
47 // false, indicating that a subset of history has been deleted.
48 std::set<GURL> favicon_urls;
49 };
50
51 } // namespace history
52
53 #endif // CHROME_BROWSER_HISTORY_HISTORY_NOTIFICATIONS_H__
OLDNEW
« no previous file with comments | « chrome/browser/history/history_details.h ('k') | chrome/browser/history/history_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698