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

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

Issue 26938003: Don't prompt to save malicious downloads on exit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unneeded code Created 7 years, 2 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DOWNLOAD_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const base::Time& end_time, 82 const base::Time& end_time,
83 const std::string& etag, 83 const std::string& etag,
84 const std::string& last_modified, 84 const std::string& last_modified,
85 int64 received_bytes, 85 int64 received_bytes,
86 int64 total_bytes, 86 int64 total_bytes,
87 content::DownloadItem::DownloadState state, 87 content::DownloadItem::DownloadState state,
88 DownloadDangerType danger_type, 88 DownloadDangerType danger_type,
89 DownloadInterruptReason interrupt_reason, 89 DownloadInterruptReason interrupt_reason,
90 bool opened) OVERRIDE; 90 bool opened) OVERRIDE;
91 virtual int InProgressCount() const OVERRIDE; 91 virtual int InProgressCount() const OVERRIDE;
92 virtual int NonMaliciousInProgressCount() const OVERRIDE;
92 virtual BrowserContext* GetBrowserContext() const OVERRIDE; 93 virtual BrowserContext* GetBrowserContext() const OVERRIDE;
93 virtual void CheckForHistoryFilesRemoval() OVERRIDE; 94 virtual void CheckForHistoryFilesRemoval() OVERRIDE;
94 virtual DownloadItem* GetDownload(uint32 id) OVERRIDE; 95 virtual DownloadItem* GetDownload(uint32 id) OVERRIDE;
95 96
96 // For testing; specifically, accessed from TestFileErrorInjector. 97 // For testing; specifically, accessed from TestFileErrorInjector.
97 void SetDownloadItemFactoryForTesting( 98 void SetDownloadItemFactoryForTesting(
98 scoped_ptr<DownloadItemFactory> item_factory); 99 scoped_ptr<DownloadItemFactory> item_factory);
99 void SetDownloadFileFactoryForTesting( 100 void SetDownloadFileFactoryForTesting(
100 scoped_ptr<DownloadFileFactory> file_factory); 101 scoped_ptr<DownloadFileFactory> file_factory);
101 virtual DownloadFileFactory* GetDownloadFileFactoryForTesting(); 102 virtual DownloadFileFactory* GetDownloadFileFactoryForTesting();
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 net::NetLog* net_log_; 187 net::NetLog* net_log_;
187 188
188 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; 189 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_;
189 190
190 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 191 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
191 }; 192 };
192 193
193 } // namespace content 194 } // namespace content
194 195
195 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 196 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_close_browsertest.cc ('k') | content/browser/download/download_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698