| OLD | NEW |
| 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_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/task/cancelable_task_tracker.h" |
| 10 #include "chrome/browser/download/download_item_model.h" | 11 #include "chrome/browser/download/download_item_model.h" |
| 11 #include "chrome/browser/icon_manager.h" | 12 #include "chrome/browser/icon_manager.h" |
| 12 #include "chrome/common/cancelable_task_tracker.h" | |
| 13 #include "content/public/browser/download_item.h" | 13 #include "content/public/browser/download_item.h" |
| 14 #include "content/public/browser/download_manager.h" | 14 #include "content/public/browser/download_manager.h" |
| 15 | 15 |
| 16 @class DownloadItemController; | 16 @class DownloadItemController; |
| 17 | 17 |
| 18 namespace gfx{ | 18 namespace gfx{ |
| 19 class Image; | 19 class Image; |
| 20 } | 20 } |
| 21 | 21 |
| 22 // A class that bridges the visible mac download items to chromium's download | 22 // A class that bridges the visible mac download items to chromium's download |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 // Callback for asynchronous icon loading. | 45 // Callback for asynchronous icon loading. |
| 46 void OnExtractIconComplete(gfx::Image* icon_bitmap); | 46 void OnExtractIconComplete(gfx::Image* icon_bitmap); |
| 47 | 47 |
| 48 // The download item model we represent. | 48 // The download item model we represent. |
| 49 DownloadItemModel download_model_; | 49 DownloadItemModel download_model_; |
| 50 | 50 |
| 51 // The objective-c controller object. | 51 // The objective-c controller object. |
| 52 DownloadItemController* item_controller_; // weak, owns us. | 52 DownloadItemController* item_controller_; // weak, owns us. |
| 53 | 53 |
| 54 // For canceling an in progress icon request. | 54 // For canceling an in progress icon request. |
| 55 CancelableTaskTracker cancelable_task_tracker_; | 55 base::CancelableTaskTracker cancelable_task_tracker_; |
| 56 | 56 |
| 57 // Stores the last known path where the file will be saved. | 57 // Stores the last known path where the file will be saved. |
| 58 base::FilePath lastFilePath_; | 58 base::FilePath lastFilePath_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(DownloadItemMac); | 60 DISALLOW_COPY_AND_ASSIGN(DownloadItemMac); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_MAC_H_ | 63 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_MAC_H_ |
| OLD | NEW |