| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DOWNLOAD_TARGET_DETERMINER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_DELEGATE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 | 9 |
| 10 #include "chrome/browser/download/download_path_reservation_tracker.h" | 10 #include "chrome/browser/download/download_path_reservation_tracker.h" |
| 11 #include "content/public/browser/download_danger_type.h" | 11 #include "content/public/browser/download_danger_type.h" |
| 12 | 12 |
| 13 class ExtensionDownloadsEventRouter; | |
| 14 | |
| 15 namespace base { | 13 namespace base { |
| 16 class FilePath; | 14 class FilePath; |
| 17 } | 15 } |
| 18 | 16 |
| 19 namespace content { | 17 namespace content { |
| 20 class DownloadItem; | 18 class DownloadItem; |
| 21 } | 19 } |
| 22 | 20 |
| 23 // Delegate for DownloadTargetDeterminer. The delegate isn't owned by | 21 // Delegate for DownloadTargetDeterminer. The delegate isn't owned by |
| 24 // DownloadTargetDeterminer and is expected to outlive it. | 22 // DownloadTargetDeterminer and is expected to outlive it. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 const CheckDownloadUrlCallback& callback) = 0; | 114 const CheckDownloadUrlCallback& callback) = 0; |
| 117 | 115 |
| 118 // Get the MIME type for the given file. | 116 // Get the MIME type for the given file. |
| 119 virtual void GetFileMimeType(const base::FilePath& path, | 117 virtual void GetFileMimeType(const base::FilePath& path, |
| 120 const GetFileMimeTypeCallback& callback) = 0; | 118 const GetFileMimeTypeCallback& callback) = 0; |
| 121 protected: | 119 protected: |
| 122 virtual ~DownloadTargetDeterminerDelegate(); | 120 virtual ~DownloadTargetDeterminerDelegate(); |
| 123 }; | 121 }; |
| 124 | 122 |
| 125 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_DELEGATE_H_ | 123 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_DETERMINER_DELEGATE_H_ |
| OLD | NEW |