| Index: content/browser/download/download_manager_impl.h
|
| diff --git a/content/browser/download/download_manager_impl.h b/content/browser/download/download_manager_impl.h
|
| index ad1a0278e6fba3a3fd7bf624b66c5ac6fafdd40f..4c4bfeec7e1f07cf5b4b1e6d097b50841b5a4088 100644
|
| --- a/content/browser/download/download_manager_impl.h
|
| +++ b/content/browser/download/download_manager_impl.h
|
| @@ -1,7 +1,6 @@
|
| // Copyright (c) 2012 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.
|
| -//
|
|
|
| #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
|
| #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
|
| @@ -17,15 +16,20 @@
|
| #include "base/message_loop_helpers.h"
|
| #include "base/observer_list.h"
|
| #include "base/synchronization/lock.h"
|
| +#include "content/browser/download/download_item_factory.h"
|
| #include "content/browser/download/download_item_impl.h"
|
| #include "content/common/content_export.h"
|
| #include "content/public/browser/download_manager.h"
|
|
|
| +class DownloadFileManager;
|
| +
|
| class CONTENT_EXPORT DownloadManagerImpl
|
| : public content::DownloadManager,
|
| public DownloadItemImpl::Delegate {
|
| public:
|
| DownloadManagerImpl(content::DownloadManagerDelegate* delegate,
|
| + DownloadFileManager* file_manager,
|
| + content::DownloadItemFactory* factory,
|
| net::NetLog* net_log);
|
|
|
| // content::DownloadManager functions.
|
| @@ -111,9 +115,6 @@ class CONTENT_EXPORT DownloadManagerImpl
|
| virtual void AssertStateConsistent(
|
| content::DownloadItem* download) const OVERRIDE;
|
|
|
| - // For unit tests only.
|
| - void SetFileManagerForTesting(DownloadFileManager* file_manager);
|
| -
|
| private:
|
| typedef std::set<content::DownloadItem*> DownloadSet;
|
| typedef base::hash_map<int64, content::DownloadItem*> DownloadMap;
|
| @@ -181,6 +182,9 @@ class CONTENT_EXPORT DownloadManagerImpl
|
| // Called when Save Page As entry is committed to the persistent store.
|
| void OnSavePageItemAddedToPersistentStore(int32 download_id, int64 db_handle);
|
|
|
| + // Factory for creation of downloads items.
|
| + scoped_ptr<content::DownloadItemFactory> factory_;
|
| +
|
| // |downloads_| is the owning set for all downloads known to the
|
| // DownloadManager. This includes downloads started by the user in
|
| // this session, downloads initialized from the history system, and
|
|
|