| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_HISTORY_REPORT_HISTORIC_VISITS_MIGRATION_TASK_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_HISTORY_REPORT_HISTORIC_VISITS_MIGRATION_TASK_H_ |
| 6 #define CHROME_BROWSER_ANDROID_HISTORY_REPORT_HISTORIC_VISITS_MIGRATION_TASK_H_ | 6 #define CHROME_BROWSER_ANDROID_HISTORY_REPORT_HISTORIC_VISITS_MIGRATION_TASK_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 9 #include "components/history/core/browser/history_db_task.h" | 10 #include "components/history/core/browser/history_db_task.h" |
| 10 | 11 |
| 11 namespace history_report { | 12 namespace history_report { |
| 12 class UsageReportsBufferService; | 13 class UsageReportsBufferService; |
| 13 | 14 |
| 14 class HistoricVisitsMigrationTask : public history::HistoryDBTask { | 15 class HistoricVisitsMigrationTask : public history::HistoryDBTask { |
| 15 public: | 16 public: |
| 16 HistoricVisitsMigrationTask(base::WaitableEvent* event, | 17 HistoricVisitsMigrationTask(base::WaitableEvent* event, |
| 17 UsageReportsBufferService* report_buffer_service); | 18 UsageReportsBufferService* report_buffer_service); |
| 18 | 19 |
| 19 bool RunOnDBThread(history::HistoryBackend* backend, | 20 bool RunOnDBThread(history::HistoryBackend* backend, |
| 20 history::HistoryDatabase* db) override; | 21 history::HistoryDatabase* db) override; |
| 21 void DoneRunOnMainThread() override {} | 22 void DoneRunOnMainThread() override {} |
| 22 | 23 |
| 23 private: | 24 private: |
| 24 ~HistoricVisitsMigrationTask() override {} | 25 ~HistoricVisitsMigrationTask() override {} |
| 25 | 26 |
| 26 base::WaitableEvent* wait_event_; | 27 base::WaitableEvent* wait_event_; |
| 27 UsageReportsBufferService* usage_reports_buffer_service_; | 28 UsageReportsBufferService* usage_reports_buffer_service_; |
| 28 | 29 |
| 29 DISALLOW_COPY_AND_ASSIGN(HistoricVisitsMigrationTask); | 30 DISALLOW_COPY_AND_ASSIGN(HistoricVisitsMigrationTask); |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 } // namespace history_report | 33 } // namespace history_report |
| 33 | 34 |
| 34 #endif // CHROME_BROWSER_ANDROID_HISTORY_REPORT_HISTORIC_VISITS_MIGRATION_TASK_
H_ | 35 #endif // CHROME_BROWSER_ANDROID_HISTORY_REPORT_HISTORIC_VISITS_MIGRATION_TASK_
H_ |
| OLD | NEW |