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

Unified Diff: chrome/browser/android/history_report/data_provider.h

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 years, 7 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/android/history_report/data_provider.h
diff --git a/chrome/browser/android/history_report/data_provider.h b/chrome/browser/android/history_report/data_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..1959a9e81c000b44351a974abeae354c32ca8b9f
--- /dev/null
+++ b/chrome/browser/android/history_report/data_provider.h
@@ -0,0 +1,56 @@
+// 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_ANDROID_HISTORY_REPORT_DATA_PROVIDER_H_
+#define CHROME_BROWSER_ANDROID_HISTORY_REPORT_DATA_PROVIDER_H_
+
+#include <vector>
+
+#include "base/memory/scoped_ptr.h"
+#include "base/task/cancelable_task_tracker.h"
+
+class Profile;
+
+namespace history {
+class HistoryService;
+}
+
+namespace bookmarks {
+class BookmarkModel;
+}
+
+namespace history_report {
+
+class DeltaFileEntryWithData;
+class DeltaFileService;
+class UsageReportsBufferService;
+
+// Provides data from History and Bookmark backends.
+class DataProvider {
+ public:
+ DataProvider(Profile* profile,
+ DeltaFileService* delta_file_service,
+ bookmarks::BookmarkModel* bookmark_model);
+ ~DataProvider();
+
+ // Provides up to limit delta file entries with sequence number > last_seq_no.
+ scoped_ptr<std::vector<DeltaFileEntryWithData> > Query(int64 last_seq_no,
+ int32 limit);
+ void StartVisitMigrationToUsageBuffer(
+ UsageReportsBufferService* buffer_service);
+
+ private:
+ void RecreateLog();
+
+ history::HistoryService* history_service_;
+ bookmarks::BookmarkModel* bookmark_model_;
+ DeltaFileService* delta_file_service_;
+ base::CancelableTaskTracker history_task_tracker_;
+
+ DISALLOW_COPY_AND_ASSIGN(DataProvider);
+};
+
+} // namespace history_report
+
+#endif // CHROME_BROWSER_ANDROID_HISTORY_REPORT_DATA_PROVIDER_H_
« no previous file with comments | « chrome/browser/android/history_report/data_observer.cc ('k') | chrome/browser/android/history_report/data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698