summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/save_file.cc
blob: b05f7c5ec0dc4af4acfc17abe65d758f04aef50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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/chrome_thread.h"
#include "net/base/file_stream.h"

SaveFile::SaveFile(const SaveFileCreateInfo* info)
    : BaseFile(FilePath(), info->url, GURL(), linked_ptr<net::FileStream>()),
      info_(info) {
  DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE));

  DCHECK(info);
  DCHECK(info->path.empty());
}

SaveFile::~SaveFile() {
  DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE));
}