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

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

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 explicit ChromeDownloadManagerDelegate(Profile* profile); 49 explicit ChromeDownloadManagerDelegate(Profile* profile);
50 50
51 void SetDownloadManager(content::DownloadManager* dm); 51 void SetDownloadManager(content::DownloadManager* dm);
52 52
53 // Returns true if the given item is for an extension download. 53 // Returns true if the given item is for an extension download.
54 static bool IsExtensionDownload(const content::DownloadItem* item); 54 static bool IsExtensionDownload(const content::DownloadItem* item);
55 55
56 virtual void Shutdown() OVERRIDE; 56 virtual void Shutdown() OVERRIDE;
57 virtual bool ShouldStartDownload(int32 download_id) OVERRIDE; 57 virtual bool ShouldStartDownload(int32 download_id) OVERRIDE;
58 virtual void ChooseDownloadPath(TabContents* tab_contents, 58 virtual void ChooseDownloadPath(content::WebContents* web_contents,
59 const FilePath& suggested_path, 59 const FilePath& suggested_path,
60 void* data) OVERRIDE; 60 void* data) OVERRIDE;
61 virtual bool OverrideIntermediatePath(content::DownloadItem* item, 61 virtual bool OverrideIntermediatePath(content::DownloadItem* item,
62 FilePath* intermediate_path) OVERRIDE; 62 FilePath* intermediate_path) OVERRIDE;
63 virtual content::WebContents* 63 virtual content::WebContents*
64 GetAlternativeTabContentsToNotifyForDownload() OVERRIDE; 64 GetAlternativeWebContentsToNotifyForDownload() OVERRIDE;
65 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE; 65 virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path) OVERRIDE;
66 virtual bool ShouldCompleteDownload(content::DownloadItem* item) OVERRIDE; 66 virtual bool ShouldCompleteDownload(content::DownloadItem* item) OVERRIDE;
67 virtual bool ShouldOpenDownload(content::DownloadItem* item) OVERRIDE; 67 virtual bool ShouldOpenDownload(content::DownloadItem* item) OVERRIDE;
68 virtual bool GenerateFileHash() OVERRIDE; 68 virtual bool GenerateFileHash() OVERRIDE;
69 virtual void OnResponseCompleted(content::DownloadItem* item) OVERRIDE; 69 virtual void OnResponseCompleted(content::DownloadItem* item) OVERRIDE;
70 virtual void AddItemToPersistentStore(content::DownloadItem* item) OVERRIDE; 70 virtual void AddItemToPersistentStore(content::DownloadItem* item) OVERRIDE;
71 virtual void UpdateItemInPersistentStore( 71 virtual void UpdateItemInPersistentStore(
72 content::DownloadItem* item) OVERRIDE; 72 content::DownloadItem* item) OVERRIDE;
73 virtual void UpdatePathForItemInPersistentStore( 73 virtual void UpdatePathForItemInPersistentStore(
74 content::DownloadItem* item, 74 content::DownloadItem* item,
75 const FilePath& new_path) OVERRIDE; 75 const FilePath& new_path) OVERRIDE;
76 virtual void RemoveItemFromPersistentStore( 76 virtual void RemoveItemFromPersistentStore(
77 content::DownloadItem* item) OVERRIDE; 77 content::DownloadItem* item) OVERRIDE;
78 virtual void RemoveItemsFromPersistentStoreBetween( 78 virtual void RemoveItemsFromPersistentStoreBetween(
79 base::Time remove_begin, 79 base::Time remove_begin,
80 base::Time remove_end) OVERRIDE; 80 base::Time remove_end) OVERRIDE;
81 virtual void GetSaveDir(TabContents* tab_contents, 81 virtual void GetSaveDir(content::WebContents* web_contents,
82 FilePath* website_save_dir, 82 FilePath* website_save_dir,
83 FilePath* download_save_dir) OVERRIDE; 83 FilePath* download_save_dir) OVERRIDE;
84 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, 84 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package,
85 const FilePath& suggested_path, 85 const FilePath& suggested_path,
86 bool can_save_as_complete) OVERRIDE; 86 bool can_save_as_complete) OVERRIDE;
87 virtual void DownloadProgressUpdated() OVERRIDE; 87 virtual void DownloadProgressUpdated() OVERRIDE;
88 88
89 DownloadPrefs* download_prefs() { return download_prefs_.get(); } 89 DownloadPrefs* download_prefs() { return download_prefs_.get(); }
90 DownloadHistory* download_history() { return download_history_.get(); } 90 DownloadHistory* download_history() { return download_history_.get(); }
91 91
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Maps from pending extension installations to DownloadItem IDs. 154 // Maps from pending extension installations to DownloadItem IDs.
155 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; 155 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap;
156 CrxInstallerMap crx_installers_; 156 CrxInstallerMap crx_installers_;
157 157
158 content::NotificationRegistrar registrar_; 158 content::NotificationRegistrar registrar_;
159 159
160 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 160 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
161 }; 161 };
162 162
163 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 163 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_window.cc ('k') | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698