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

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

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 5 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/history/archived_database.cc ('k') | chrome/browser/history/history.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/statement.h"
11 #include "base/file_path.h" 10 #include "base/file_path.h"
12 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
13 #include "build/build_config.h" 12 #include "build/build_config.h"
14 #include "chrome/browser/download/download_item.h" 13 #include "chrome/browser/download/download_item.h"
15 #include "chrome/browser/history/download_history_info.h" 14 #include "chrome/browser/history/download_history_info.h"
15 #include "sql/statement.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.
23 // received_bytes Total size downloaded. 23 // received_bytes Total size downloaded.
24 // total_bytes Total size of the download. 24 // total_bytes Total size of the download.
25 // state Identifies if this download is completed or not. Not used 25 // state Identifies if this download is completed or not. Not used
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 statement.BindInt64( 191 statement.BindInt64(
192 1, 192 1,
193 end_time ? end_time : std::numeric_limits<int64>::max()); 193 end_time ? end_time : std::numeric_limits<int64>::max());
194 statement.BindInt(2, DownloadItem::COMPLETE); 194 statement.BindInt(2, DownloadItem::COMPLETE);
195 statement.BindInt(3, DownloadItem::CANCELLED); 195 statement.BindInt(3, DownloadItem::CANCELLED);
196 statement.BindInt(4, DownloadItem::INTERRUPTED); 196 statement.BindInt(4, DownloadItem::INTERRUPTED);
197 statement.Run(); 197 statement.Run();
198 } 198 }
199 199
200 } // namespace history 200 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/archived_database.cc ('k') | chrome/browser/history/history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698