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

Side by Side Diff: chrome/browser/android/history_report/get_all_urls_from_history_task.h

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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_GET_ALL_URLS_FROM_HISTORY_TASK_H_ 5 #ifndef CHROME_BROWSER_ANDROID_HISTORY_REPORT_GET_ALL_URLS_FROM_HISTORY_TASK_H_
6 #define CHROME_BROWSER_ANDROID_HISTORY_REPORT_GET_ALL_URLS_FROM_HISTORY_TASK_H_ 6 #define CHROME_BROWSER_ANDROID_HISTORY_REPORT_GET_ALL_URLS_FROM_HISTORY_TASK_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h"
11 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
12 #include "components/history/core/browser/history_db_task.h" 13 #include "components/history/core/browser/history_db_task.h"
13 #include "components/history/core/browser/history_service.h" 14 #include "components/history/core/browser/history_service.h"
14 #include "components/history/core/browser/history_types.h" 15 #include "components/history/core/browser/history_types.h"
15 16
16 namespace history_report { 17 namespace history_report {
17 18
18 class GetAllUrlsFromHistoryTask : public history::HistoryDBTask { 19 class GetAllUrlsFromHistoryTask : public history::HistoryDBTask {
19 public: 20 public:
20 GetAllUrlsFromHistoryTask(base::WaitableEvent* wait_event, 21 GetAllUrlsFromHistoryTask(base::WaitableEvent* wait_event,
21 std::vector<std::string>* urls); 22 std::vector<std::string>* urls);
22 23
23 bool RunOnDBThread(history::HistoryBackend* backend, 24 bool RunOnDBThread(history::HistoryBackend* backend,
24 history::HistoryDatabase* db) override; 25 history::HistoryDatabase* db) override;
25 void DoneRunOnMainThread() override {} 26 void DoneRunOnMainThread() override {}
26 27
27 protected: 28 protected:
28 ~GetAllUrlsFromHistoryTask() override {} 29 ~GetAllUrlsFromHistoryTask() override {}
29 30
30 private: 31 private:
31 std::vector<std::string>* urls_; 32 std::vector<std::string>* urls_;
32 base::WaitableEvent* wait_event_; 33 base::WaitableEvent* wait_event_;
33 34
34 DISALLOW_COPY_AND_ASSIGN(GetAllUrlsFromHistoryTask); 35 DISALLOW_COPY_AND_ASSIGN(GetAllUrlsFromHistoryTask);
35 }; 36 };
36 37
37 } // namespace history_report 38 } // namespace history_report
38 39
39 #endif // CHROME_BROWSER_ANDROID_HISTORY_REPORT_GET_ALL_URLS_FROM_HISTORY_TASK_ H_ 40 #endif // CHROME_BROWSER_ANDROID_HISTORY_REPORT_GET_ALL_URLS_FROM_HISTORY_TASK_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698