| OLD | NEW |
| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| 11 #include "base/memory/scoped_nsobject.h" | 11 #include "base/memory/scoped_nsobject.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/download/download_item.h" | |
| 14 #include "chrome/browser/download/download_manager.h" | |
| 15 #include "chrome/browser/icon_manager.h" | 13 #include "chrome/browser/icon_manager.h" |
| 16 #include "content/browser/cancelable_request.h" | 14 #include "content/browser/cancelable_request.h" |
| 15 #include "content/browser/download/download_item.h" |
| 16 #include "content/browser/download/download_manager.h" |
| 17 | 17 |
| 18 class BaseDownloadItemModel; | 18 class BaseDownloadItemModel; |
| 19 @class DownloadItemController; | 19 @class DownloadItemController; |
| 20 | 20 |
| 21 namespace gfx{ | 21 namespace gfx{ |
| 22 class Image; | 22 class Image; |
| 23 } | 23 } |
| 24 | 24 |
| 25 // A class that bridges the visible mac download items to chromium's download | 25 // A class that bridges the visible mac download items to chromium's download |
| 26 // model. The owning object (DownloadItemController) must explicitly call | 26 // model. The owning object (DownloadItemController) must explicitly call |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // For canceling an in progress icon request. | 58 // For canceling an in progress icon request. |
| 59 CancelableRequestConsumerT<int, 0> icon_consumer_; | 59 CancelableRequestConsumerT<int, 0> icon_consumer_; |
| 60 | 60 |
| 61 // Stores the last known path where the file will be saved. | 61 // Stores the last known path where the file will be saved. |
| 62 FilePath lastFilePath_; | 62 FilePath lastFilePath_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(DownloadItemMac); | 64 DISALLOW_COPY_AND_ASSIGN(DownloadItemMac); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_MAC_H_ | 67 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_ITEM_MAC_H_ |
| OLD | NEW |