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

Side by Side Diff: chrome/browser/download/download_manager.h

Issue 45048: Remove Windows "Save As" dialogs from Save Page code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // The DownloadManager object manages the process of downloading, including 5 // The DownloadManager object manages the process of downloading, including
6 // updates to the history system and providing the information for displaying 6 // updates to the history system and providing the information for displaying
7 // the downloads view in the Destinations tab. There is one DownloadManager per 7 // the downloads view in the Destinations tab. There is one DownloadManager per
8 // active profile in Chrome. 8 // active profile in Chrome.
9 // 9 //
10 // Each download is represented by a DownloadItem, and all DownloadItems 10 // Each download is represented by a DownloadItem, and all DownloadItems
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 397
398 // Resets the automatic open preference. 398 // Resets the automatic open preference.
399 void ResetAutoOpenFiles(); 399 void ResetAutoOpenFiles();
400 400
401 // Returns true if there are automatic handlers registered for any file 401 // Returns true if there are automatic handlers registered for any file
402 // types. 402 // types.
403 bool HasAutoOpenFileTypesRegistered() const; 403 bool HasAutoOpenFileTypesRegistered() const;
404 404
405 // Overridden from SelectFileDialog::Listener: 405 // Overridden from SelectFileDialog::Listener:
406 // TODO(port): convert this to FilePath when SelectFileDialog gets converted. 406 // TODO(port): convert this to FilePath when SelectFileDialog gets converted.
407 virtual void FileSelected(const std::wstring& path, void* params); 407 virtual void FileSelected(const std::wstring& path, int index, void* params);
408 virtual void FileSelectionCanceled(void* params); 408 virtual void FileSelectionCanceled(void* params);
409 409
410 // Deletes the specified path on the file thread. 410 // Deletes the specified path on the file thread.
411 void DeleteDownload(const FilePath& path); 411 void DeleteDownload(const FilePath& path);
412 412
413 // Called when the user has validated the donwload of a dangerous file. 413 // Called when the user has validated the donwload of a dangerous file.
414 void DangerousDownloadValidated(DownloadItem* download); 414 void DangerousDownloadValidated(DownloadItem* download);
415 415
416 // Used to make sure we have a safe file extension and filename for a 416 // Used to make sure we have a safe file extension and filename for a
417 // download. |file_name| can either be just the file name or it can be a 417 // download. |file_name| can either be just the file name or it can be a
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 PendingFinishedMap pending_finished_downloads_; 572 PendingFinishedMap pending_finished_downloads_;
573 573
574 // The "Save As" dialog box used to ask the user where a file should be 574 // The "Save As" dialog box used to ask the user where a file should be
575 // saved. 575 // saved.
576 scoped_refptr<SelectFileDialog> select_file_dialog_; 576 scoped_refptr<SelectFileDialog> select_file_dialog_;
577 577
578 DISALLOW_COPY_AND_ASSIGN(DownloadManager); 578 DISALLOW_COPY_AND_ASSIGN(DownloadManager);
579 }; 579 };
580 580
581 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ 581 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698