Index: chrome/browser/android/history_report/get_all_urls_from_history_task.h |
diff --git a/chrome/browser/android/history_report/get_all_urls_from_history_task.h b/chrome/browser/android/history_report/get_all_urls_from_history_task.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..04ece01194c3b332c938762b82ec6104f8722db4 |
--- /dev/null |
+++ b/chrome/browser/android/history_report/get_all_urls_from_history_task.h |
@@ -0,0 +1,39 @@ |
+// 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_GET_ALL_URLS_FROM_HISTORY_TASK_H_ |
+#define CHROME_BROWSER_ANDROID_HISTORY_REPORT_GET_ALL_URLS_FROM_HISTORY_TASK_H_ |
+ |
+#include <string> |
+#include <vector> |
+ |
+#include "base/synchronization/waitable_event.h" |
+#include "components/history/core/browser/history_db_task.h" |
+#include "components/history/core/browser/history_service.h" |
+#include "components/history/core/browser/history_types.h" |
+ |
+namespace history_report { |
+ |
+class GetAllUrlsFromHistoryTask : public history::HistoryDBTask { |
+ public: |
+ GetAllUrlsFromHistoryTask(base::WaitableEvent* wait_event, |
+ std::vector<std::string>* urls); |
+ |
+ bool RunOnDBThread(history::HistoryBackend* backend, |
+ history::HistoryDatabase* db) override; |
+ void DoneRunOnMainThread() override {} |
+ |
+ protected: |
+ ~GetAllUrlsFromHistoryTask() override {} |
+ |
+ private: |
+ std::vector<std::string>* urls_; |
+ base::WaitableEvent* wait_event_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(GetAllUrlsFromHistoryTask); |
+}; |
+ |
+} // namespace history_report |
+ |
+#endif // CHROME_BROWSER_ANDROID_HISTORY_REPORT_GET_ALL_URLS_FROM_HISTORY_TASK_H_ |