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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 const GURL& icon_url, | 229 const GURL& icon_url, |
230 IconType icon_type); | 230 IconType icon_type); |
231 | 231 |
232 void SetFaviconOutOfDateForPage(const GURL& page_url); | 232 void SetFaviconOutOfDateForPage(const GURL& page_url); |
233 | 233 |
234 void SetImportedFavicons( | 234 void SetImportedFavicons( |
235 const std::vector<ImportedFaviconUsage>& favicon_usage); | 235 const std::vector<ImportedFaviconUsage>& favicon_usage); |
236 | 236 |
237 // Downloads ----------------------------------------------------------------- | 237 // Downloads ----------------------------------------------------------------- |
238 | 238 |
| 239 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request); |
239 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); | 240 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); |
240 void CleanUpInProgressEntries(); | 241 void CleanUpInProgressEntries(); |
241 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle); | 242 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle); |
242 void UpdateDownloadPath(const FilePath& path, int64 db_handle); | 243 void UpdateDownloadPath(const FilePath& path, int64 db_handle); |
243 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, | 244 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, |
244 int32 id, | 245 int32 id, |
245 const DownloadPersistentStoreInfo& info); | 246 const DownloadPersistentStoreInfo& info); |
246 void RemoveDownload(int64 db_handle); | 247 void RemoveDownload(int64 db_handle); |
247 void RemoveDownloadsBetween(const base::Time remove_begin, | 248 void RemoveDownloadsBetween(const base::Time remove_begin, |
248 const base::Time remove_end); | 249 const base::Time remove_end); |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 // Publishes the history to all indexers which are registered to receive | 604 // Publishes the history to all indexers which are registered to receive |
604 // history data from us. Can be NULL if there are no listeners. | 605 // history data from us. Can be NULL if there are no listeners. |
605 scoped_ptr<HistoryPublisher> history_publisher_; | 606 scoped_ptr<HistoryPublisher> history_publisher_; |
606 | 607 |
607 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 608 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
608 }; | 609 }; |
609 | 610 |
610 } // namespace history | 611 } // namespace history |
611 | 612 |
612 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 613 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |