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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 virtual SafetyState GetSafetyState() const = 0; | 253 virtual SafetyState GetSafetyState() const = 0; |
254 // Why |safety_state_| is not SAFE. | 254 // Why |safety_state_| is not SAFE. |
255 virtual DownloadDangerType GetDangerType() const = 0; | 255 virtual DownloadDangerType GetDangerType() const = 0; |
256 virtual bool IsDangerous() const = 0; | 256 virtual bool IsDangerous() const = 0; |
257 | 257 |
258 virtual bool GetAutoOpened() = 0; | 258 virtual bool GetAutoOpened() = 0; |
259 virtual FilePath GetTargetName() const = 0; | 259 virtual FilePath GetTargetName() const = 0; |
260 virtual const FilePath& GetForcedFilePath() const = 0; | 260 virtual const FilePath& GetForcedFilePath() const = 0; |
261 virtual bool HasUserGesture() const = 0; | 261 virtual bool HasUserGesture() const = 0; |
262 virtual PageTransition GetTransitionType() const = 0; | 262 virtual PageTransition GetTransitionType() const = 0; |
263 virtual bool IsOtr() const = 0; | |
264 virtual bool IsTemporary() const = 0; | 263 virtual bool IsTemporary() const = 0; |
265 virtual void SetIsTemporary(bool temporary) = 0; | 264 virtual void SetIsTemporary(bool temporary) = 0; |
266 virtual void SetOpened(bool opened) = 0; | 265 virtual void SetOpened(bool opened) = 0; |
267 virtual bool GetOpened() const = 0; | 266 virtual bool GetOpened() const = 0; |
268 | 267 |
269 virtual const std::string& GetLastModifiedTime() const = 0; | 268 virtual const std::string& GetLastModifiedTime() const = 0; |
270 virtual const std::string& GetETag() const = 0; | 269 virtual const std::string& GetETag() const = 0; |
271 | 270 |
272 virtual DownloadInterruptReason GetLastReason() const = 0; | 271 virtual DownloadInterruptReason GetLastReason() const = 0; |
273 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0; | 272 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0; |
(...skipping 16 matching lines...) Expand all Loading... |
290 virtual FilePath GetUserVerifiedFilePath() const = 0; | 289 virtual FilePath GetUserVerifiedFilePath() const = 0; |
291 | 290 |
292 virtual std::string DebugString(bool verbose) const = 0; | 291 virtual std::string DebugString(bool verbose) const = 0; |
293 | 292 |
294 virtual void MockDownloadOpenForTesting() = 0; | 293 virtual void MockDownloadOpenForTesting() = 0; |
295 }; | 294 }; |
296 | 295 |
297 } // namespace content | 296 } // namespace content |
298 | 297 |
299 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ | 298 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ |
OLD | NEW |