| 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_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 | 486 |
| 487 // Begins a request to clean up entries that has been corrupted (because of | 487 // Begins a request to clean up entries that has been corrupted (because of |
| 488 // the crash, for example). | 488 // the crash, for example). |
| 489 void CleanUpInProgressEntries(); | 489 void CleanUpInProgressEntries(); |
| 490 | 490 |
| 491 // Called to update the history service about the current state of a download. | 491 // Called to update the history service about the current state of a download. |
| 492 // This is a 'fire and forget' query, so just pass the relevant state info to | 492 // This is a 'fire and forget' query, so just pass the relevant state info to |
| 493 // the database with no need for a callback. | 493 // the database with no need for a callback. |
| 494 void UpdateDownload(const content::DownloadPersistentStoreInfo& data); | 494 void UpdateDownload(const content::DownloadPersistentStoreInfo& data); |
| 495 | 495 |
| 496 // Called to update the history service about the path of a download. | 496 // Called to update the history service about the paths of a download. |
| 497 // This is a 'fire and forget' query. | 497 // This is a 'fire and forget' query. |
| 498 void UpdateDownloadPath(const FilePath& path, int64 db_handle); | 498 void UpdateDownloadPath(const FilePath& target_path, |
| 499 const FilePath& current_path, |
| 500 int64 db_handle); |
| 499 | 501 |
| 500 // Permanently remove a download from the history system. This is a 'fire and | 502 // Permanently remove a download from the history system. This is a 'fire and |
| 501 // forget' operation. | 503 // forget' operation. |
| 502 void RemoveDownload(int64 db_handle); | 504 void RemoveDownload(int64 db_handle); |
| 503 | 505 |
| 504 // Permanently removes all completed download from the history system within | 506 // Permanently removes all completed download from the history system within |
| 505 // the specified range. This function does not delete downloads that are in | 507 // the specified range. This function does not delete downloads that are in |
| 506 // progress or in the process of being cancelled. This is a 'fire and forget' | 508 // progress or in the process of being cancelled. This is a 'fire and forget' |
| 507 // operation. You can pass is_null times to get unbounded time in either or | 509 // operation. You can pass is_null times to get unbounded time in either or |
| 508 // both directions. | 510 // both directions. |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1123 // TODO(mrossetti): Move in_memory_url_index out of history_service. | 1125 // TODO(mrossetti): Move in_memory_url_index out of history_service. |
| 1124 // See http://crbug.com/138321 | 1126 // See http://crbug.com/138321 |
| 1125 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 1127 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
| 1126 | 1128 |
| 1127 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; | 1129 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; |
| 1128 | 1130 |
| 1129 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 1131 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 1130 }; | 1132 }; |
| 1131 | 1133 |
| 1132 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ | 1134 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ |
| OLD | NEW |