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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/download_history_info.h ('k') | chrome/browser/history/history.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/download_history_info.cc
diff --git a/chrome/browser/history/download_history_info.cc b/chrome/browser/history/download_history_info.cc
new file mode 100644
index 0000000000000000000000000000000000000000..439f714ef478bd3c3944426ac488b63c6d089aec
--- /dev/null
+++ b/chrome/browser/history/download_history_info.cc
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/history/download_history_info.h"
+
+#include "chrome/browser/download/download_item.h"
+
+DownloadHistoryInfo::DownloadHistoryInfo()
+ : received_bytes(0),
+ total_bytes(0),
+ state(0),
+ db_handle(0) {
+}
+
+DownloadHistoryInfo::DownloadHistoryInfo(const FilePath& path,
+ const GURL& url,
+ const GURL& referrer,
+ const base::Time& start,
+ int64 received,
+ int64 total,
+ int32 download_state,
+ int64 handle)
+ : path(path),
+ url(url),
+ referrer_url(referrer),
+ start_time(start),
+ received_bytes(received),
+ total_bytes(total),
+ state(download_state),
+ db_handle(handle) {
+}
+
+DownloadHistoryInfo::~DownloadHistoryInfo() { // For linux-clang.
+}
« 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