| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_SAVE_PACKAGE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class SaveFileManager; | 21 class SaveFileManager; |
| 22 class SaveItem; | 22 class SaveItem; |
| 23 class SavePackage; | 23 class SavePackage; |
| 24 class DownloadItem; | 24 class DownloadItem; |
| 25 class DownloadManager; | 25 class DownloadManager; |
| 26 class GURL; | 26 class GURL; |
| 27 class MessageLoop; | 27 class MessageLoop; |
| 28 class PrefService; | 28 class PrefService; |
| 29 class Profile; | 29 class Profile; |
| 30 class TabContents; | 30 class TabContents; |
| 31 class URLRequestContext; | 31 class URLRequestContextGetter; |
| 32 class TabContents; | 32 class TabContents; |
| 33 | 33 |
| 34 namespace base { | 34 namespace base { |
| 35 class Thread; | 35 class Thread; |
| 36 class Time; | 36 class Time; |
| 37 } | 37 } |
| 38 | 38 |
| 39 struct SaveFileCreateInfo; | 39 struct SaveFileCreateInfo; |
| 40 struct SavePackageParam; | 40 struct SavePackageParam; |
| 41 | 41 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 typedef std::queue<SaveItem*> SaveItemQueue; | 258 typedef std::queue<SaveItem*> SaveItemQueue; |
| 259 // A queue for items we are about to start saving. | 259 // A queue for items we are about to start saving. |
| 260 SaveItemQueue waiting_item_queue_; | 260 SaveItemQueue waiting_item_queue_; |
| 261 | 261 |
| 262 typedef base::hash_map<int32, SaveItem*> SavedItemMap; | 262 typedef base::hash_map<int32, SaveItem*> SavedItemMap; |
| 263 // saved_success_items_ is map of all saving job which are successfully saved. | 263 // saved_success_items_ is map of all saving job which are successfully saved. |
| 264 SavedItemMap saved_success_items_; | 264 SavedItemMap saved_success_items_; |
| 265 | 265 |
| 266 // The request context which provides application-specific context for | 266 // The request context which provides application-specific context for |
| 267 // URLRequest instances. | 267 // URLRequest instances. |
| 268 scoped_refptr<URLRequestContext> request_context_; | 268 scoped_refptr<URLRequestContextGetter> request_context_getter_; |
| 269 | 269 |
| 270 // Non-owning pointer for handling file writing on the file thread. | 270 // Non-owning pointer for handling file writing on the file thread. |
| 271 SaveFileManager* file_manager_; | 271 SaveFileManager* file_manager_; |
| 272 | 272 |
| 273 TabContents* tab_contents_; | 273 TabContents* tab_contents_; |
| 274 | 274 |
| 275 // We use a fake DownloadItem here in order to reuse the DownloadItemView. | 275 // We use a fake DownloadItem here in order to reuse the DownloadItemView. |
| 276 // This class owns the pointer. | 276 // This class owns the pointer. |
| 277 DownloadItem* download_; | 277 DownloadItem* download_; |
| 278 | 278 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 scoped_refptr<SelectFileDialog> select_file_dialog_; | 315 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 316 | 316 |
| 317 friend class SavePackageTest; | 317 friend class SavePackageTest; |
| 318 | 318 |
| 319 ScopedRunnableMethodFactory<SavePackage> method_factory_; | 319 ScopedRunnableMethodFactory<SavePackage> method_factory_; |
| 320 | 320 |
| 321 DISALLOW_COPY_AND_ASSIGN(SavePackage); | 321 DISALLOW_COPY_AND_ASSIGN(SavePackage); |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ | 324 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ |
| OLD | NEW |