| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/history/download_database.h" | 5 #include "chrome/browser/history/download_database.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/sql/connection.h" | 10 #include "app/sql/connection.h" |
| 11 #include "app/sql/statement.h" | 11 #include "app/sql/statement.h" |
| 12 #include "base/string_util.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/download/download_manager.h" | 14 #include "chrome/browser/download/download_manager.h" |
| 15 #include "chrome/browser/history/download_types.h" | 15 #include "chrome/browser/history/download_types.h" |
| 16 | 16 |
| 17 // Download schema: | 17 // Download schema: |
| 18 // | 18 // |
| 19 // id SQLite-generated primary key. | 19 // id SQLite-generated primary key. |
| 20 // full_path Location of the download on disk. | 20 // full_path Location of the download on disk. |
| 21 // url URL of the downloaded file. | 21 // url URL of the downloaded file. |
| 22 // start_time When the download was started. | 22 // start_time When the download was started. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 text.append(WideToUTF8(search_text)); | 198 text.append(WideToUTF8(search_text)); |
| 199 text.push_back('%'); | 199 text.push_back('%'); |
| 200 statement.BindString(0, text); | 200 statement.BindString(0, text); |
| 201 statement.BindString(1, text); | 201 statement.BindString(1, text); |
| 202 | 202 |
| 203 while (statement.Step()) | 203 while (statement.Step()) |
| 204 results->push_back(statement.ColumnInt64(0)); | 204 results->push_back(statement.ColumnInt64(0)); |
| 205 } | 205 } |
| 206 | 206 |
| 207 } // namespace history | 207 } // namespace history |
| OLD | NEW |