| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_FILE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | |
| 10 #include <string> | |
| 11 #include <vector> | |
| 12 | |
| 13 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 14 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 15 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
| 16 #include "base/linked_ptr.h" | 12 #include "base/linked_ptr.h" |
| 17 #include "chrome/browser/download/download_types.h" | 13 #include "chrome/browser/download/download_types.h" |
| 18 #include "chrome/browser/power_save_blocker.h" | 14 #include "chrome/browser/power_save_blocker.h" |
| 19 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 20 | 16 |
| 21 struct DownloadCreateInfo; | 17 struct DownloadCreateInfo; |
| 22 class ResourceDispatcherHost; | 18 class ResourceDispatcherHost; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Whether the download is still using its initial temporary path. | 90 // Whether the download is still using its initial temporary path. |
| 95 bool path_renamed_; | 91 bool path_renamed_; |
| 96 | 92 |
| 97 // RAII handle to keep the system from sleeping while we're downloading. | 93 // RAII handle to keep the system from sleeping while we're downloading. |
| 98 PowerSaveBlocker dont_sleep_; | 94 PowerSaveBlocker dont_sleep_; |
| 99 | 95 |
| 100 DISALLOW_COPY_AND_ASSIGN(DownloadFile); | 96 DISALLOW_COPY_AND_ASSIGN(DownloadFile); |
| 101 }; | 97 }; |
| 102 | 98 |
| 103 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ | 99 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ |
| OLD | NEW |