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

Unified Diff: components/history/core/browser/history_client.h

Issue 971423002: Abstract code filtering URLs added to the history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keyed-service
Patch Set: Created 5 years, 10 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: components/history/core/browser/history_client.h
diff --git a/components/history/core/browser/history_client.h b/components/history/core/browser/history_client.h
index 9bfb193a8d5054605a6a63167f1c86eda51223ce..9b718142bc023d26bc89185d6eff6f5b0e94c76b 100644
--- a/components/history/core/browser/history_client.h
+++ b/components/history/core/browser/history_client.h
@@ -52,6 +52,10 @@ class HistoryClient : public KeyedService {
// If not on the main thread, then BlockUntilBookmarksLoaded must be called.
virtual void GetBookmarks(std::vector<URLAndTitle>* bookmarks);
+ // Returns true if this look like the type of URL that should be added to the
+ // history.
+ virtual bool CanAddURL(const GURL& url);
+
// Notifies the embedder that there was a problem reading the database.
//
// Must be called from the main thread.

Powered by Google App Engine
This is Rietveld 408576698