// Copyright (c) 2010 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/download/save_file.h" #include "base/logging.h" #include "chrome/browser/browser_thread.h" #include "net/base/file_stream.h" SaveFile::SaveFile(const SaveFileCreateInfo* info) : BaseFile(FilePath(), info->url, GURL(), 0, linked_ptr()), info_(info) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); DCHECK(info); DCHECK(info->path.empty()); } SaveFile::~SaveFile() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); }