Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 324 typedef base::Callback<void(const FilteredURLList*)> | 324 typedef base::Callback<void(const FilteredURLList*)> |
| 325 QueryFilteredURLsCallback; | 325 QueryFilteredURLsCallback; |
| 326 | 326 |
| 327 base::CancelableTaskTracker::TaskId QueryFilteredURLs( | 327 base::CancelableTaskTracker::TaskId QueryFilteredURLs( |
| 328 int result_count, | 328 int result_count, |
| 329 const VisitFilter& filter, | 329 const VisitFilter& filter, |
| 330 bool extended_info, | 330 bool extended_info, |
| 331 const QueryFilteredURLsCallback& callback, | 331 const QueryFilteredURLsCallback& callback, |
| 332 base::CancelableTaskTracker* tracker); | 332 base::CancelableTaskTracker* tracker); |
| 333 | 333 |
| 334 // Statistics ---------------------------------------------------------------- | |
| 335 | |
| 336 // Returns the count of URLs in the url database. The argument is the count. | |
| 337 // The count is zero if query to the database failed. | |
| 338 typedef base::Callback<void(int)> CountURLsCallback; | |
| 339 | |
| 340 // Returns the count of URLs in the url database. | |
| 341 base::CancelableTaskTracker::TaskId HistoryService::CountURLs( | |
|
lwchkg
2015/07/29 14:46:05
The extra "HistoryService::" is causing errors in
| |
| 342 const CountURLsCallback& callback, | |
| 343 base::CancelableTaskTracker* tracker); | |
| 344 | |
| 334 // Database management operations -------------------------------------------- | 345 // Database management operations -------------------------------------------- |
| 335 | 346 |
| 336 // Delete all the information related to a single url. | 347 // Delete all the information related to a single url. |
| 337 void DeleteURL(const GURL& url); | 348 void DeleteURL(const GURL& url); |
| 338 | 349 |
| 339 // Delete all the information related to a list of urls. (Deleting | 350 // Delete all the information related to a list of urls. (Deleting |
| 340 // URLs one by one is slow as it has to flush to disk each time.) | 351 // URLs one by one is slow as it has to flush to disk each time.) |
| 341 void DeleteURLsForTest(const std::vector<GURL>& urls); | 352 void DeleteURLsForTest(const std::vector<GURL>& urls); |
| 342 | 353 |
| 343 // Removes all visits in the selected time range (including the | 354 // Removes all visits in the selected time range (including the |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 827 | 838 |
| 828 // All vended weak pointers are invalidated in Cleanup(). | 839 // All vended weak pointers are invalidated in Cleanup(). |
| 829 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 840 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
| 830 | 841 |
| 831 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 842 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 832 }; | 843 }; |
| 833 | 844 |
| 834 } // namespace history | 845 } // namespace history |
| 835 | 846 |
| 836 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 847 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
| OLD | NEW |