OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <limits> | 5 #include <limits> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "chrome/browser/history/download_database.h" | 8 #include "chrome/browser/history/download_database.h" |
9 | 9 |
10 #include "chrome/browser/download_manager.h" | 10 #include "chrome/browser/download/download_manager.h" |
11 #include "chrome/browser/history/download_types.h" | 11 #include "chrome/browser/history/download_types.h" |
12 #include "chrome/common/sqlite_utils.h" | 12 #include "chrome/common/sqlite_utils.h" |
13 #include "chrome/common/sqlite_compiled_statement.h" | 13 #include "chrome/common/sqlite_compiled_statement.h" |
14 | 14 |
15 // Download schema: | 15 // Download schema: |
16 // | 16 // |
17 // id SQLite-generated primary key. | 17 // id SQLite-generated primary key. |
18 // full_path Location of the download on disk. | 18 // full_path Location of the download on disk. |
19 // url URL of the downloaded file. | 19 // url URL of the downloaded file. |
20 // start_time When the download was started. | 20 // start_time When the download was started. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 text.append(L"%"); | 155 text.append(L"%"); |
156 statement->bind_wstring(0, text); | 156 statement->bind_wstring(0, text); |
157 statement->bind_wstring(1, text); | 157 statement->bind_wstring(1, text); |
158 | 158 |
159 while (statement->step() == SQLITE_ROW) | 159 while (statement->step() == SQLITE_ROW) |
160 results->push_back(statement->column_int64(0)); | 160 results->push_back(statement->column_int64(0)); |
161 } | 161 } |
162 | 162 |
163 } // namespace history | 163 } // namespace history |
164 | 164 |
OLD | NEW |