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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 bool MigrateHashHttpMethodAndGenerateGuids(); | 86 bool MigrateHashHttpMethodAndGenerateGuids(); |
87 | 87 |
88 // Returns true if able to add tab_url and tab_referrer_url columns to the | 88 // Returns true if able to add tab_url and tab_referrer_url columns to the |
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. |
| 97 bool MigrateDownloadLastAccessTime(); |
| 98 |
96 // Creates the downloads table if needed. | 99 // Creates the downloads table if needed. |
97 bool InitDownloadTable(); | 100 bool InitDownloadTable(); |
98 | 101 |
99 // Used to quickly clear the downloads. First you would drop it, then you | 102 // Used to quickly clear the downloads. First you would drop it, then you |
100 // would re-initialize it. | 103 // would re-initialize it. |
101 bool DropDownloadTable(); | 104 bool DropDownloadTable(); |
102 | 105 |
103 private: | 106 private: |
104 FRIEND_TEST_ALL_PREFIXES(HistoryBackendDBTest, | 107 FRIEND_TEST_ALL_PREFIXES(HistoryBackendDBTest, |
105 ConfirmDownloadInProgressCleanup); | 108 ConfirmDownloadInProgressCleanup); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // to use for respectively an undefined value and in case of a crash. | 145 // to use for respectively an undefined value and in case of a crash. |
143 DownloadInterruptReason download_interrupt_reason_none_; | 146 DownloadInterruptReason download_interrupt_reason_none_; |
144 DownloadInterruptReason download_interrupt_reason_crash_; | 147 DownloadInterruptReason download_interrupt_reason_crash_; |
145 | 148 |
146 DISALLOW_COPY_AND_ASSIGN(DownloadDatabase); | 149 DISALLOW_COPY_AND_ASSIGN(DownloadDatabase); |
147 }; | 150 }; |
148 | 151 |
149 } // namespace history | 152 } // namespace history |
150 | 153 |
151 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ | 154 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ |
OLD | NEW |