Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/browser/history/download_database.cc

Issue 2826: Move the download code to new directories: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/download_util.cc ('k') | chrome/browser/history/history_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/download_util.cc ('k') | chrome/browser/history/history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698