| 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> |
| 11 | 11 |
| 12 #include "app/sql/init_status.h" | 12 #include "app/sql/init_status.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/memory/mru_cache.h" | 15 #include "base/memory/mru_cache.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "chrome/browser/history/archived_database.h" | 17 #include "chrome/browser/history/archived_database.h" |
| 18 #include "chrome/browser/history/expire_history_backend.h" | 18 #include "chrome/browser/history/expire_history_backend.h" |
| 19 #include "chrome/browser/history/history_database.h" | 19 #include "chrome/browser/history/history_database.h" |
| 20 #include "chrome/browser/history/history_marshaling.h" | 20 #include "chrome/browser/history/history_marshaling.h" |
| 21 #include "chrome/browser/history/history_types.h" | 21 #include "chrome/browser/history/history_types.h" |
| 22 #include "chrome/browser/history/text_database_manager.h" | 22 #include "chrome/browser/history/text_database_manager.h" |
| 23 #include "chrome/browser/history/thumbnail_database.h" | 23 #include "chrome/browser/history/thumbnail_database.h" |
| 24 #include "chrome/browser/history/visit_tracker.h" | 24 #include "chrome/browser/history/visit_tracker.h" |
| 25 #include "chrome/browser/search_engines/template_url_id.h" | 25 #include "chrome/browser/search_engines/template_url_id.h" |
| 26 | 26 |
| 27 class BookmarkService; | 27 class BookmarkService; |
| 28 struct DownloadCreateInfo; | 28 struct DownloadHistoryInfo; |
| 29 class TestingProfile; | 29 class TestingProfile; |
| 30 struct ThumbnailScore; | 30 struct ThumbnailScore; |
| 31 | 31 |
| 32 namespace history { | 32 namespace history { |
| 33 | 33 |
| 34 class CommitLaterTask; | 34 class CommitLaterTask; |
| 35 class HistoryPublisher; | 35 class HistoryPublisher; |
| 36 | 36 |
| 37 // *See the .cc file for more information on the design.* | 37 // *See the .cc file for more information on the design.* |
| 38 // | 38 // |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 void SetImportedFavicons( | 233 void SetImportedFavicons( |
| 234 const std::vector<ImportedFaviconUsage>& favicon_usage); | 234 const std::vector<ImportedFaviconUsage>& favicon_usage); |
| 235 | 235 |
| 236 // Downloads ----------------------------------------------------------------- | 236 // Downloads ----------------------------------------------------------------- |
| 237 | 237 |
| 238 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); | 238 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); |
| 239 void CleanUpInProgressEntries(); | 239 void CleanUpInProgressEntries(); |
| 240 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle); | 240 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle); |
| 241 void UpdateDownloadPath(const FilePath& path, int64 db_handle); | 241 void UpdateDownloadPath(const FilePath& path, int64 db_handle); |
| 242 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, | 242 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, |
| 243 const DownloadCreateInfo& info); | 243 const DownloadHistoryInfo& info); |
| 244 void RemoveDownload(int64 db_handle); | 244 void RemoveDownload(int64 db_handle); |
| 245 void RemoveDownloadsBetween(const base::Time remove_begin, | 245 void RemoveDownloadsBetween(const base::Time remove_begin, |
| 246 const base::Time remove_end); | 246 const base::Time remove_end); |
| 247 void RemoveDownloads(const base::Time remove_end); | 247 void RemoveDownloads(const base::Time remove_end); |
| 248 | 248 |
| 249 // Segment usage ------------------------------------------------------------- | 249 // Segment usage ------------------------------------------------------------- |
| 250 | 250 |
| 251 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, | 251 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, |
| 252 const base::Time from_time, | 252 const base::Time from_time, |
| 253 int max_result_count); | 253 int max_result_count); |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 // Publishes the history to all indexers which are registered to receive | 599 // Publishes the history to all indexers which are registered to receive |
| 600 // history data from us. Can be NULL if there are no listeners. | 600 // history data from us. Can be NULL if there are no listeners. |
| 601 scoped_ptr<HistoryPublisher> history_publisher_; | 601 scoped_ptr<HistoryPublisher> history_publisher_; |
| 602 | 602 |
| 603 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 603 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 604 }; | 604 }; |
| 605 | 605 |
| 606 } // namespace history | 606 } // namespace history |
| 607 | 607 |
| 608 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 608 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |