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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 bool MigrateDownloadValidators(); | 80 bool MigrateDownloadValidators(); |
81 | 81 |
82 // Returns true if able to add GUID, hash and HTTP method columns to the | 82 // Returns true if able to add GUID, hash and HTTP method columns to the |
83 // download table. | 83 // download table. |
84 bool MigrateHashHttpMethodAndGenerateGuids(); | 84 bool MigrateHashHttpMethodAndGenerateGuids(); |
85 | 85 |
86 // Returns true if able to add tab_url and tab_referrer_url columns to the | 86 // Returns true if able to add tab_url and tab_referrer_url columns to the |
87 // download table. | 87 // download table. |
88 bool MigrateDownloadTabUrl(); | 88 bool MigrateDownloadTabUrl(); |
89 | 89 |
| 90 // Returns true if able to add the site_url column to the download |
| 91 // table. |
| 92 bool MigrateDownloadSiteInstanceUrl(); |
| 93 |
90 // Creates the downloads table if needed. | 94 // Creates the downloads table if needed. |
91 bool InitDownloadTable(); | 95 bool InitDownloadTable(); |
92 | 96 |
93 // Used to quickly clear the downloads. First you would drop it, then you | 97 // Used to quickly clear the downloads. First you would drop it, then you |
94 // would re-initialize it. | 98 // would re-initialize it. |
95 bool DropDownloadTable(); | 99 bool DropDownloadTable(); |
96 | 100 |
97 private: | 101 private: |
98 FRIEND_TEST_ALL_PREFIXES(HistoryBackendDBTest, | 102 FRIEND_TEST_ALL_PREFIXES(HistoryBackendDBTest, |
99 ConfirmDownloadInProgressCleanup); | 103 ConfirmDownloadInProgressCleanup); |
(...skipping 24 matching lines...) Expand all Loading... |
124 // to use for respectively an undefined value and in case of a crash. | 128 // to use for respectively an undefined value and in case of a crash. |
125 DownloadInterruptReason download_interrupt_reason_none_; | 129 DownloadInterruptReason download_interrupt_reason_none_; |
126 DownloadInterruptReason download_interrupt_reason_crash_; | 130 DownloadInterruptReason download_interrupt_reason_crash_; |
127 | 131 |
128 DISALLOW_COPY_AND_ASSIGN(DownloadDatabase); | 132 DISALLOW_COPY_AND_ASSIGN(DownloadDatabase); |
129 }; | 133 }; |
130 | 134 |
131 } // namespace history | 135 } // namespace history |
132 | 136 |
133 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ | 137 #endif // COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_DATABASE_H_ |
OLD | NEW |