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

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

Issue 901803005: Remove dependency of HistoryService on WebHistoryServiceFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DEPS
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..e5545d345210c6525a6d6e27f1cad1df82121bca
--- /dev/null
+++ b/chrome/browser/history/history_utils.h
@@ -0,0 +1,38 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
droger 2015/02/05 16:16:13 Nit: I think utility files are usually called "uti
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_HISTORY_HISTORY_UTILS_H_
+#define CHROME_BROWSER_HISTORY_HISTORY_UTILS_H_
+
+#include <set>
+
+#include "base/callback_forward.h"
+
+class HistoryService;
+class GURL;
+
+namespace base {
+class CancelableTaskTrasker;
+class Time;
+}
+
+namespace history {
+
+class WebHistoryService;
+
+// Removes all visits to the given URLs in the specified time range in both
+// |local_history| and |web_history|. Calls HistoryService::ExpireHistoryBetween
+// to delete local visits, and handles deletion of synced visits if appropriate.
+void ExpireLocalAndRemoteHistoryBetween(HistoryService* local_history,
+ history::WebHistoryService* web_history,
+ const std::set<GURL>& restrict_urls,
+ base::Time begin_time,
+ base::Time end_time,
+ const base::Closure& callback,
+ base::CancelableTaskTrasker* tracker);
+
droger 2015/02/05 16:16:13 Remove on blank line.
+
+} // namespace history
+
+#endif // CHROME_BROWSER_HISTORY_HISTORY_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698