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

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

Issue 1924773002: TopSites: filter out non-WebSafe URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@topsites_cleanup
Patch Set: comment Created 4 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: components/history/core/browser/history_backend_client.h
diff --git a/components/history/core/browser/history_backend_client.h b/components/history/core/browser/history_backend_client.h
index 8327bd26f7371ea825df03ed36936cd85be13d55..512170478d20015dac17c286dacbe8634146f363 100644
--- a/components/history/core/browser/history_backend_client.h
+++ b/components/history/core/browser/history_backend_client.h
@@ -44,6 +44,10 @@ class HistoryBackendClient {
// Returns whether database errors should be reported to the crash server.
virtual bool ShouldReportDatabaseError() = 0;
+ // Returns whether |url| should be considered web-safe (see
+ // content::ChildProcessSecurityPolicy).
+ virtual bool IsWebSafe(const GURL& url) = 0;
+
#if defined(OS_ANDROID)
// Called upon initialization of the HistoryBackend.
virtual void OnHistoryBackendInitialized(
« no previous file with comments | « components/history/core/browser/history_backend.cc ('k') | components/history/core/browser/history_backend_db_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698