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

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

Issue 29003: Make download manager treat mixed-case extensions the same as lower-case exte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/download/download_exe.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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 StringPrefMember download_path_; 554 StringPrefMember download_path_;
555 555
556 // The user's last choice for download directory. This is only used when the 556 // The user's last choice for download directory. This is only used when the
557 // user wants us to prompt for a save location for each download. 557 // user wants us to prompt for a save location for each download.
558 FilePath last_download_path_; 558 FilePath last_download_path_;
559 559
560 // Set of file extensions to open at download completion. 560 // Set of file extensions to open at download completion.
561 std::set<FilePath::StringType> auto_open_; 561 std::set<FilePath::StringType> auto_open_;
562 562
563 // Set of file extensions that are executables and shouldn't be auto opened. 563 // Set of file extensions that are executables and shouldn't be auto opened.
564 std::set<FilePath::StringType> exe_types_; 564 std::set<std::string> exe_types_;
565 565
566 // Keep track of downloads that are completed before the user selects the 566 // Keep track of downloads that are completed before the user selects the
567 // destination, so that observers are appropriately notified of completion 567 // destination, so that observers are appropriately notified of completion
568 // after this determination is made. 568 // after this determination is made.
569 // The map is of download_id->remaining size (bytes), both of which are 569 // The map is of download_id->remaining size (bytes), both of which are
570 // required when calling DownloadFinished. 570 // required when calling DownloadFinished.
571 typedef std::map<int32, int64> PendingFinishedMap; 571 typedef std::map<int32, int64> PendingFinishedMap;
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/download/download_exe.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698