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

Side by Side Diff: content/public/browser/download_item.h

Issue 26938003: Don't prompt to save malicious downloads on exit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comments 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 // Each download is represented by a DownloadItem, and all DownloadItems 5 // Each download is represented by a DownloadItem, and all DownloadItems
6 // are owned by the DownloadManager which maintains a global list of all 6 // are owned by the DownloadManager which maintains a global list of all
7 // downloads. DownloadItems are created when a user initiates a download, 7 // downloads. DownloadItems are created when a user initiates a download,
8 // and exist for the duration of the browser life time. 8 // and exist for the duration of the browser life time.
9 // 9 //
10 // Download observers: 10 // Download observers:
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 // Mark the download as having been opened (without actually opening it). 316 // Mark the download as having been opened (without actually opening it).
317 virtual void SetOpened(bool opened) = 0; 317 virtual void SetOpened(bool opened) = 0;
318 318
319 // Set a display name for the download that will be independent of the target 319 // Set a display name for the download that will be independent of the target
320 // filename. If |name| is not empty, then GetFileNameToReportUser() will 320 // filename. If |name| is not empty, then GetFileNameToReportUser() will
321 // return |name|. Has no effect on the final target filename. 321 // return |name|. Has no effect on the final target filename.
322 virtual void SetDisplayName(const base::FilePath& name) = 0; 322 virtual void SetDisplayName(const base::FilePath& name) = 0;
323 323
324 // Debug/testing ------------------------------------------------------------- 324 // Debug/testing -------------------------------------------------------------
325 virtual std::string DebugString(bool verbose) const = 0; 325 virtual std::string DebugString(bool verbose) const = 0;
Jói 2013/10/15 19:00:44 Are these two methods only used by tests? Could th
asanka 2013/10/15 21:39:08 DebugString() is supposed to be used for logging a
felt 2013/10/18 01:50:53 Removed.
326 virtual void SetDangerType(DownloadDangerType danger_type) = 0;
326 }; 327 };
327 328
328 } // namespace content 329 } // namespace content
329 330
330 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ 331 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698