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

Unified Diff: chrome/browser/history/history_types.h

Issue 10096015: Single URL Expires Were Not Being Deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history_types.h
===================================================================
--- chrome/browser/history/history_types.h (revision 132411)
+++ chrome/browser/history/history_types.h (working copy)
@@ -132,6 +132,19 @@
hidden_ = hidden;
}
+ // Helper functor that determines if an URLRow refers to a given URL.
+ class URLRowHasURL {
+ public:
+ explicit URLRowHasURL(const GURL& url) : url_(url) {}
+
+ bool operator()(const URLRow& row) {
+ return row.url() == url_;
+ }
+
+ private:
+ const GURL& url_;
+ };
+
protected:
// Swaps the contents of this URLRow with another, which allows it to be
// destructively copied without memory allocations.
« no previous file with comments | « chrome/browser/history/history_notifications.h ('k') | chrome/browser/history/in_memory_url_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698