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 // Each download is represented by a DownloadItem, and all DownloadItems | 5 // Each download is represented by a DownloadItem, and all DownloadItems |
6 // are owned by the DownloadManager which maintains a global list of all | 6 // are owned by the DownloadManager which maintains a global list of all |
7 // downloads. DownloadItems are created when a user initiates a download, | 7 // downloads. DownloadItems are created when a user initiates a download, |
8 // and exist for the duration of the browser life time. | 8 // and exist for the duration of the browser life time. |
9 // | 9 // |
10 // Download observers: | 10 // Download observers: |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 virtual bool GetFileExternallyRemoved() const = 0; | 254 virtual bool GetFileExternallyRemoved() const = 0; |
255 virtual SafetyState GetSafetyState() const = 0; | 255 virtual SafetyState GetSafetyState() const = 0; |
256 // Why |safety_state_| is not SAFE. | 256 // Why |safety_state_| is not SAFE. |
257 virtual DownloadDangerType GetDangerType() const = 0; | 257 virtual DownloadDangerType GetDangerType() const = 0; |
258 virtual bool IsDangerous() const = 0; | 258 virtual bool IsDangerous() const = 0; |
259 | 259 |
260 virtual bool GetAutoOpened() = 0; | 260 virtual bool GetAutoOpened() = 0; |
261 virtual FilePath GetTargetName() const = 0; | 261 virtual FilePath GetTargetName() const = 0; |
262 virtual const FilePath& GetForcedFilePath() const = 0; | 262 virtual const FilePath& GetForcedFilePath() const = 0; |
263 virtual bool HasUserGesture() const = 0; | 263 virtual bool HasUserGesture() const = 0; |
264 virtual PageTransition GetTransitionType() const = 0; | 264 virtual content::PageTransition GetTransitionType() const = 0; |
265 virtual bool IsOtr() const = 0; | |
266 virtual bool IsTemporary() const = 0; | 265 virtual bool IsTemporary() const = 0; |
267 virtual void SetIsTemporary(bool temporary) = 0; | 266 virtual void SetIsTemporary(bool temporary) = 0; |
268 virtual void SetOpened(bool opened) = 0; | 267 virtual void SetOpened(bool opened) = 0; |
269 virtual bool GetOpened() const = 0; | 268 virtual bool GetOpened() const = 0; |
270 | 269 |
271 virtual const std::string& GetLastModifiedTime() const = 0; | 270 virtual const std::string& GetLastModifiedTime() const = 0; |
272 virtual const std::string& GetETag() const = 0; | 271 virtual const std::string& GetETag() const = 0; |
273 | 272 |
274 virtual DownloadInterruptReason GetLastReason() const = 0; | 273 virtual DownloadInterruptReason GetLastReason() const = 0; |
275 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0; | 274 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 virtual void SetExternalData(const void* key, ExternalData* data) = 0; | 307 virtual void SetExternalData(const void* key, ExternalData* data) = 0; |
309 | 308 |
310 virtual std::string DebugString(bool verbose) const = 0; | 309 virtual std::string DebugString(bool verbose) const = 0; |
311 | 310 |
312 virtual void MockDownloadOpenForTesting() = 0; | 311 virtual void MockDownloadOpenForTesting() = 0; |
313 }; | 312 }; |
314 | 313 |
315 } // namespace content | 314 } // namespace content |
316 | 315 |
317 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ | 316 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ |
OLD | NEW |