| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/download/save_file.h" | 5 #include "content/browser/download/save_file.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "net/base/file_stream.h" | 9 #include "net/base/file_stream.h" |
| 10 | 10 |
| 11 using content::BrowserThread; | 11 using content::BrowserThread; |
| 12 | 12 |
| 13 SaveFile::SaveFile(const SaveFileCreateInfo* info) | 13 SaveFile::SaveFile(const SaveFileCreateInfo* info) |
| 14 : BaseFile(FilePath(), info->url, GURL(), 0, linked_ptr<net::FileStream>()), | 14 : BaseFile(FilePath(), info->url, GURL(), 0, "", |
| 15 linked_ptr<net::FileStream>()), |
| 15 info_(info) { | 16 info_(info) { |
| 16 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); | 17 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); |
| 17 | 18 |
| 18 DCHECK(info); | 19 DCHECK(info); |
| 19 DCHECK(info->path.empty()); | 20 DCHECK(info->path.empty()); |
| 20 } | 21 } |
| 21 | 22 |
| 22 SaveFile::~SaveFile() { | 23 SaveFile::~SaveFile() { |
| 23 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); | 24 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); |
| 24 } | 25 } |
| OLD | NEW |