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

Unified Diff: chrome/browser/history/history_utils.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: chrome/browser/history/history_utils.h
diff --git a/chrome/browser/history/history_utils.h b/chrome/browser/history/history_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5b80f30aef6cd7d87c9a8981778e5da4ff260b0
--- /dev/null
+++ b/chrome/browser/history/history_utils.h
@@ -0,0 +1,14 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_HISTORY_HISTORY_UTILS_H_
+#define CHROME_BROWSER_HISTORY_HISTORY_UTILS_H_
+
+class GURL;
+
+// Returns true if this looks like the type of URL that should be added to the
+// history. This filters out URLs such a JavaScript.
+bool CanAddURLToHistory(const GURL& url);
+
+#endif // CHROME_BROWSER_HISTORY_HISTORY_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698