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

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

Issue 6969009: Reduced the lifetime of DownloadCreateInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stupid clang! Created 9 years, 7 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/download_history_info.h ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/history/download_history_info.h"
6
7 #include "chrome/browser/download/download_item.h"
8
9 DownloadHistoryInfo::DownloadHistoryInfo()
10 : received_bytes(0),
11 total_bytes(0),
12 state(0),
13 db_handle(0) {
14 }
15
16 DownloadHistoryInfo::DownloadHistoryInfo(const FilePath& path,
17 const GURL& url,
18 const GURL& referrer,
19 const base::Time& start,
20 int64 received,
21 int64 total,
22 int32 download_state,
23 int64 handle)
24 : path(path),
25 url(url),
26 referrer_url(referrer),
27 start_time(start),
28 received_bytes(received),
29 total_bytes(total),
30 state(download_state),
31 db_handle(handle) {
32 }
33
34 DownloadHistoryInfo::~DownloadHistoryInfo() { // For linux-clang.
35 }
OLDNEW
« no previous file with comments | « chrome/browser/history/download_history_info.h ('k') | chrome/browser/history/history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698