Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: content/browser/download/mock_download_manager.h

Issue 8401001: Fix history importing by delaying DownloadManager creation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix ifndefs Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/download/download_manager.h" 9 #include "content/browser/download/download_manager.h"
10 10
11 class DownloadStatusUpdater; 11 class DownloadStatusUpdater;
12 class DownloadItem; 12 class DownloadItem;
13 13
14 class MockDownloadManager : public DownloadManager { 14 class MockDownloadManager : public DownloadManager {
15 public: 15 public:
16 explicit MockDownloadManager(content::DownloadManagerDelegate* delegate, 16 explicit MockDownloadManager(content::DownloadManagerDelegate* delegate,
17 DownloadIdFactory* id_factory,
17 DownloadStatusUpdater* updater) 18 DownloadStatusUpdater* updater)
18 : DownloadManager(delegate, updater) { 19 : DownloadManager(delegate, id_factory, updater) {
19 } 20 }
20 21
21 // Override some functions. 22 // Override some functions.
22 virtual void UpdateHistoryForDownload(DownloadItem*) { } 23 virtual void UpdateHistoryForDownload(DownloadItem*) { }
23 }; 24 };
24 25
25 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 26 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698