save_file.cc revision 3345a6884c488ff3a535c2c9acdd33d74b37e311
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/download/save_file.h" 6 7#include "base/logging.h" 8#include "chrome/browser/chrome_thread.h" 9#include "net/base/file_stream.h" 10 11SaveFile::SaveFile(const SaveFileCreateInfo* info) 12 : BaseFile(FilePath(), info->url, GURL(), 0, linked_ptr<net::FileStream>()), 13 info_(info) { 14 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE)); 15 16 DCHECK(info); 17 DCHECK(info->path.empty()); 18} 19 20SaveFile::~SaveFile() { 21 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE)); 22} 23