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 COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ |
6 #define COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // download table. | 89 // download table. |
90 bool MigrateDownloadTabUrl(); | 90 bool MigrateDownloadTabUrl(); |
91 | 91 |
92 // Returns true if able to add the site_url column to the download | 92 // Returns true if able to add the site_url column to the download |
93 // table. | 93 // table. |
94 bool MigrateDownloadSiteInstanceUrl(); | 94 bool MigrateDownloadSiteInstanceUrl(); |
95 | 95 |
96 // Returns true if able to add last_access_time column to the download table. | 96 // Returns true if able to add last_access_time column to the download table. |
97 bool MigrateDownloadLastAccessTime(); | 97 bool MigrateDownloadLastAccessTime(); |
98 | 98 |
| 99 // Returns true if able to add transient column to the download table. |
| 100 bool MigrateDownloadTransient(); |
| 101 |
99 // Creates the downloads table if needed. | 102 // Creates the downloads table if needed. |
100 bool InitDownloadTable(); | 103 bool InitDownloadTable(); |
101 | 104 |
102 // Used to quickly clear the downloads. First you would drop it, then you | 105 // Used to quickly clear the downloads. First you would drop it, then you |
103 // would re-initialize it. | 106 // would re-initialize it. |
104 bool DropDownloadTable(); | 107 bool DropDownloadTable(); |
105 | 108 |
106 private: | 109 private: |
107 FRIEND_TEST_ALL_PREFIXES(HistoryBackendDBTest, | 110 FRIEND_TEST_ALL_PREFIXES(HistoryBackendDBTest, |
108 ConfirmDownloadInProgressCleanup); | 111 ConfirmDownloadInProgressCleanup); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // to use for respectively an undefined value and in case of a crash. | 148 // to use for respectively an undefined value and in case of a crash. |
146 DownloadInterruptReason download_interrupt_reason_none_; | 149 DownloadInterruptReason download_interrupt_reason_none_; |
147 DownloadInterruptReason download_interrupt_reason_crash_; | 150 DownloadInterruptReason download_interrupt_reason_crash_; |
148 | 151 |
149 DISALLOW_COPY_AND_ASSIGN(DownloadDatabase); | 152 DISALLOW_COPY_AND_ASSIGN(DownloadDatabase); |
150 }; | 153 }; |
151 | 154 |
152 } // namespace history | 155 } // namespace history |
153 | 156 |
154 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ | 157 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ |
OLD | NEW |