blob: 6cd13167561f1e63f1ace1eb331e1bd9ced81d0d [file]
// 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/macros.h"
#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_