Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 void SetFaviconOutOfDateForPage(const GURL& page_url); | 239 void SetFaviconOutOfDateForPage(const GURL& page_url); |
| 240 | 240 |
| 241 void SetImportedFavicons( | 241 void SetImportedFavicons( |
| 242 const std::vector<ImportedFaviconUsage>& favicon_usage); | 242 const std::vector<ImportedFaviconUsage>& favicon_usage); |
| 243 | 243 |
| 244 // Downloads ----------------------------------------------------------------- | 244 // Downloads ----------------------------------------------------------------- |
| 245 | 245 |
| 246 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request); | 246 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request); |
| 247 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); | 247 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); |
| 248 void CleanUpInProgressEntries(); | 248 void CleanUpInProgressEntries(); |
| 249 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle); | 249 void UpdateDownload(int64 received_bytes, int32 state, |
| 250 const base::Time& end_time, int64 db_handle); | |
| 250 void UpdateDownloadPath(const FilePath& path, int64 db_handle); | 251 void UpdateDownloadPath(const FilePath& path, int64 db_handle); |
| 251 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, | 252 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, |
| 252 int32 id, | 253 int32 id, |
| 253 const DownloadPersistentStoreInfo& info); | 254 const DownloadPersistentStoreInfo& info); |
| 254 void RemoveDownload(int64 db_handle); | 255 void RemoveDownload(int64 db_handle); |
| 255 void RemoveDownloadsBetween(const base::Time remove_begin, | 256 void RemoveDownloadsBetween(const base::Time remove_begin, |
| 256 const base::Time remove_end); | 257 const base::Time remove_end); |
| 257 void RemoveDownloads(const base::Time remove_end); | 258 void RRemoveDownloademoveDownloads(const base::Time remove_end); |
|
Randy Smith (Not in Mondays)
2011/09/26 18:27:26
???
benjhayden
2011/09/28 17:35:23
Done.
| |
| 259 void MarkDownloadOpened(int64 db_handle); | |
| 258 | 260 |
| 259 // Segment usage ------------------------------------------------------------- | 261 // Segment usage ------------------------------------------------------------- |
| 260 | 262 |
| 261 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, | 263 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, |
| 262 const base::Time from_time, | 264 const base::Time from_time, |
| 263 int max_result_count); | 265 int max_result_count); |
| 264 void DeleteOldSegmentData(); | 266 void DeleteOldSegmentData(); |
| 265 void SetSegmentPresentationIndex(SegmentID segment_id, int index); | 267 void SetSegmentPresentationIndex(SegmentID segment_id, int index); |
| 266 | 268 |
| 267 // Keyword search terms ------------------------------------------------------ | 269 // Keyword search terms ------------------------------------------------------ |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 621 // Publishes the history to all indexers which are registered to receive | 623 // Publishes the history to all indexers which are registered to receive |
| 622 // history data from us. Can be NULL if there are no listeners. | 624 // history data from us. Can be NULL if there are no listeners. |
| 623 scoped_ptr<HistoryPublisher> history_publisher_; | 625 scoped_ptr<HistoryPublisher> history_publisher_; |
| 624 | 626 |
| 625 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 627 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 626 }; | 628 }; |
| 627 | 629 |
| 628 } // namespace history | 630 } // namespace history |
| 629 | 631 |
| 630 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 632 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |