| 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 CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 void CloneFavicons(const GURL& old_page_url, const GURL& new_page_url); | 302 void CloneFavicons(const GURL& old_page_url, const GURL& new_page_url); |
| 303 | 303 |
| 304 void SetImportedFavicons( | 304 void SetImportedFavicons( |
| 305 const std::vector<ImportedFaviconUsage>& favicon_usage); | 305 const std::vector<ImportedFaviconUsage>& favicon_usage); |
| 306 | 306 |
| 307 // Downloads ----------------------------------------------------------------- | 307 // Downloads ----------------------------------------------------------------- |
| 308 | 308 |
| 309 void GetNextDownloadId(int* id); | 309 void GetNextDownloadId(int* id); |
| 310 void QueryDownloads(std::vector<DownloadRow>* rows); | 310 void QueryDownloads(std::vector<DownloadRow>* rows); |
| 311 void CleanUpInProgressEntries(); | |
| 312 void UpdateDownload(const DownloadRow& data); | 311 void UpdateDownload(const DownloadRow& data); |
| 313 void CreateDownload(const history::DownloadRow& history_info, | 312 void CreateDownload(const history::DownloadRow& history_info, |
| 314 int64* db_handle); | 313 int64* db_handle); |
| 315 void RemoveDownloads(const std::set<int64>& db_handles); | 314 void RemoveDownloads(const std::set<int64>& db_handles); |
| 316 | 315 |
| 317 // Segment usage ------------------------------------------------------------- | 316 // Segment usage ------------------------------------------------------------- |
| 318 | 317 |
| 319 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, | 318 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, |
| 320 const base::Time from_time, | 319 const base::Time from_time, |
| 321 int max_result_count); | 320 int max_result_count); |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 // Used to provide the Android ContentProvider APIs. | 894 // Used to provide the Android ContentProvider APIs. |
| 896 scoped_ptr<AndroidProviderBackend> android_provider_backend_; | 895 scoped_ptr<AndroidProviderBackend> android_provider_backend_; |
| 897 #endif | 896 #endif |
| 898 | 897 |
| 899 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 898 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 900 }; | 899 }; |
| 901 | 900 |
| 902 } // namespace history | 901 } // namespace history |
| 903 | 902 |
| 904 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 903 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |