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

Unified Diff: chrome/browser/android/history_report/get_all_urls_from_history_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/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_

Powered by Google App Engine
This is Rietveld 408576698