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

Unified Diff: chrome/browser/android/history_report/historic_visits_migration_task.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/historic_visits_migration_task.h
diff --git a/chrome/browser/android/history_report/historic_visits_migration_task.h b/chrome/browser/android/history_report/historic_visits_migration_task.h
new file mode 100644
index 0000000000000000000000000000000000000000..482167ea763c85ac58d0839cffc4562526f24fd8
--- /dev/null
+++ b/chrome/browser/android/history_report/historic_visits_migration_task.h
@@ -0,0 +1,34 @@
+// 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_HISTORIC_VISITS_MIGRATION_TASK_H_
+#define CHROME_BROWSER_ANDROID_HISTORY_REPORT_HISTORIC_VISITS_MIGRATION_TASK_H_
+
+#include "base/synchronization/waitable_event.h"
+#include "components/history/core/browser/history_db_task.h"
+
+namespace history_report {
+class UsageReportsBufferService;
+
+class HistoricVisitsMigrationTask : public history::HistoryDBTask {
+ public:
+ HistoricVisitsMigrationTask(base::WaitableEvent* event,
+ UsageReportsBufferService* report_buffer_service);
+
+ bool RunOnDBThread(history::HistoryBackend* backend,
+ history::HistoryDatabase* db) override;
+ void DoneRunOnMainThread() override {}
+
+ private:
+ ~HistoricVisitsMigrationTask() override {}
+
+ base::WaitableEvent* wait_event_;
+ UsageReportsBufferService* usage_reports_buffer_service_;
+
+ DISALLOW_COPY_AND_ASSIGN(HistoricVisitsMigrationTask);
+};
+
+} // namespace history_report
+
+#endif // CHROME_BROWSER_ANDROID_HISTORY_REPORT_HISTORIC_VISITS_MIGRATION_TASK_H_

Powered by Google App Engine
This is Rietveld 408576698