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

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

Issue 10069014: Save Page As MHTML (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -osall, extract_actions.py Created 8 years, 7 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 CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 base::Time remove_begin, 76 base::Time remove_begin,
77 base::Time remove_end) OVERRIDE; 77 base::Time remove_end) OVERRIDE;
78 virtual void GetSaveDir(content::WebContents* web_contents, 78 virtual void GetSaveDir(content::WebContents* web_contents,
79 FilePath* website_save_dir, 79 FilePath* website_save_dir,
80 FilePath* download_save_dir) OVERRIDE; 80 FilePath* download_save_dir) OVERRIDE;
81 virtual void ChooseSavePath( 81 virtual void ChooseSavePath(
82 content::WebContents* web_contents, 82 content::WebContents* web_contents,
83 const FilePath& suggested_path, 83 const FilePath& suggested_path,
84 const FilePath::StringType& default_extension, 84 const FilePath::StringType& default_extension,
85 bool can_save_as_complete, 85 bool can_save_as_complete,
86 content::SaveFilePathPickedCallback callback) OVERRIDE; 86 const content::SaveFilePathPickedCallback& callback) OVERRIDE;
87 87
88 DownloadPrefs* download_prefs() { return download_prefs_.get(); } 88 DownloadPrefs* download_prefs() { return download_prefs_.get(); }
89 DownloadHistory* download_history() { return download_history_.get(); } 89 DownloadHistory* download_history() { return download_history_.get(); }
90 90
91 #if defined(ENABLE_SAFE_BROWSING)
92 static void DisableSafeBrowsing(content::DownloadItem* item);
93 #endif
Randy Smith (Not in Mondays) 2012/04/27 18:24:04 It looks like CDMD has to date only used ifdefs to
benjhayden 2012/04/30 13:37:19 Done.
94
91 protected: 95 protected:
92 // So that test classes can inherit from this for override purposes. 96 // So that test classes can inherit from this for override purposes.
93 virtual ~ChromeDownloadManagerDelegate(); 97 virtual ~ChromeDownloadManagerDelegate();
94 98
95 // So that test classes that inherit from this for override purposes 99 // So that test classes that inherit from this for override purposes
96 // can call back into the DownloadManager. 100 // can call back into the DownloadManager.
97 scoped_refptr<content::DownloadManager> download_manager_; 101 scoped_refptr<content::DownloadManager> download_manager_;
98 102
99 private: 103 private:
100 friend class base::RefCountedThreadSafe<ChromeDownloadManagerDelegate>; 104 friend class base::RefCountedThreadSafe<ChromeDownloadManagerDelegate>;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // Maps from pending extension installations to DownloadItem IDs. 165 // Maps from pending extension installations to DownloadItem IDs.
162 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; 166 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap;
163 CrxInstallerMap crx_installers_; 167 CrxInstallerMap crx_installers_;
164 168
165 content::NotificationRegistrar registrar_; 169 content::NotificationRegistrar registrar_;
166 170
167 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 171 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
168 }; 172 };
169 173
170 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 174 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698