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

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

Issue 11640007: Make the UI an observer of downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android clang build Created 7 years, 9 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 static void DisableSafeBrowsing(content::DownloadItem* item); 61 static void DisableSafeBrowsing(content::DownloadItem* item);
62 62
63 void SetDownloadManager(content::DownloadManager* dm); 63 void SetDownloadManager(content::DownloadManager* dm);
64 64
65 // content::DownloadManagerDelegate 65 // content::DownloadManagerDelegate
66 virtual void Shutdown() OVERRIDE; 66 virtual void Shutdown() OVERRIDE;
67 virtual content::DownloadId GetNextId() OVERRIDE; 67 virtual content::DownloadId GetNextId() OVERRIDE;
68 virtual bool DetermineDownloadTarget( 68 virtual bool DetermineDownloadTarget(
69 content::DownloadItem* item, 69 content::DownloadItem* item,
70 const content::DownloadTargetCallback& callback) OVERRIDE; 70 const content::DownloadTargetCallback& callback) OVERRIDE;
71 virtual content::WebContents*
72 GetAlternativeWebContentsToNotifyForDownload() OVERRIDE;
73 virtual bool ShouldOpenFileBasedOnExtension( 71 virtual bool ShouldOpenFileBasedOnExtension(
74 const base::FilePath& path) OVERRIDE; 72 const base::FilePath& path) OVERRIDE;
75 virtual bool ShouldCompleteDownload( 73 virtual bool ShouldCompleteDownload(
76 content::DownloadItem* item, 74 content::DownloadItem* item,
77 const base::Closure& complete_callback) OVERRIDE; 75 const base::Closure& complete_callback) OVERRIDE;
78 virtual bool ShouldOpenDownload( 76 virtual bool ShouldOpenDownload(
79 content::DownloadItem* item, 77 content::DownloadItem* item,
80 const content::DownloadOpenDelayedCallback& callback) OVERRIDE; 78 const content::DownloadOpenDelayedCallback& callback) OVERRIDE;
81 virtual bool GenerateFileHash() OVERRIDE; 79 virtual bool GenerateFileHash() OVERRIDE;
82 virtual void GetSaveDir(content::BrowserContext* browser_context, 80 virtual void GetSaveDir(content::BrowserContext* browser_context,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 content::NotificationRegistrar registrar_; 243 content::NotificationRegistrar registrar_;
246 244
247 // The directory most recently chosen by the user in response to a Save As 245 // The directory most recently chosen by the user in response to a Save As
248 // dialog for a regular download. 246 // dialog for a regular download.
249 base::FilePath last_download_path_; 247 base::FilePath last_download_path_;
250 248
251 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 249 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
252 }; 250 };
253 251
254 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 252 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/all_download_item_notifier.h ('k') | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698