1// Copyright (c) 2010 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_types.h" 6 7DownloadCreateInfo::DownloadCreateInfo(const FilePath& path, 8 const GURL& url, 9 base::Time start_time, 10 int64 received_bytes, 11 int64 total_bytes, 12 int32 state, 13 int32 download_id) 14 : path(path), 15 url(url), 16 path_uniquifier(0), 17 start_time(start_time), 18 received_bytes(received_bytes), 19 total_bytes(total_bytes), 20 state(state), 21 download_id(download_id), 22 child_id(-1), 23 render_view_id(-1), 24 request_id(-1), 25 db_handle(0), 26 prompt_user_for_save_location(false), 27 is_dangerous(false), 28 is_extension_install(false) { 29} 30 31DownloadCreateInfo::DownloadCreateInfo() 32 : path_uniquifier(0), 33 received_bytes(0), 34 total_bytes(0), 35 state(-1), 36 download_id(-1), 37 child_id(-1), 38 render_view_id(-1), 39 request_id(-1), 40 db_handle(0), 41 prompt_user_for_save_location(false), 42 is_dangerous(false), 43 is_extension_install(false) { 44} 45 46DownloadCreateInfo::~DownloadCreateInfo() { 47} 48