summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_file.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-15 21:05:22 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-15 21:05:22 +0000
commit71bf3f5e4b5834e596e8b870088f94246ed3e1d8 (patch)
tree34357b6c720eefebc81008bdd8d8144cd105a02b /chrome/browser/download/download_file.cc
parent0da88255cb89cbed89a74befa900082efd2e7a04 (diff)
downloadchromium_src-71bf3f5e4b5834e596e8b870088f94246ed3e1d8.zip
chromium_src-71bf3f5e4b5834e596e8b870088f94246ed3e1d8.tar.gz
chromium_src-71bf3f5e4b5834e596e8b870088f94246ed3e1d8.tar.bz2
Move the core download files to content.
Review URL: http://codereview.chromium.org/7618048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96829 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_file.cc')
-rw-r--r--chrome/browser/download/download_file.cc52
1 files changed, 0 insertions, 52 deletions
diff --git a/chrome/browser/download/download_file.cc b/chrome/browser/download/download_file.cc
deleted file mode 100644
index a64a99f..0000000
--- a/chrome/browser/download/download_file.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2011 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/download_file.h"
-
-#include <string>
-
-#include "base/file_util.h"
-#include "base/stringprintf.h"
-#include "chrome/browser/download/download_create_info.h"
-#include "chrome/browser/download/download_manager.h"
-#include "chrome/browser/download/download_util.h"
-#include "content/browser/browser_thread.h"
-
-DownloadFile::DownloadFile(const DownloadCreateInfo* info,
- DownloadManager* download_manager)
- : BaseFile(info->save_info.file_path,
- info->url(),
- info->referrer_url,
- info->received_bytes,
- info->save_info.file_stream),
- id_(info->download_id),
- request_handle_(info->request_handle),
- download_manager_(download_manager) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
-}
-
-DownloadFile::~DownloadFile() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
-}
-
-void DownloadFile::CancelDownloadRequest() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
- request_handle_.CancelRequest();
-}
-
-DownloadManager* DownloadFile::GetDownloadManager() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
- return download_manager_.get();
-}
-
-std::string DownloadFile::DebugString() const {
- return base::StringPrintf("{"
- " id_ = " "%d"
- " request_handle = %s"
- " Base File = %s"
- " }",
- id_,
- request_handle_.DebugString().c_str(),
- BaseFile::DebugString().c_str());
-}