| 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 // 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 virtual const FilePath& GetFullPath() const = 0; | 257 virtual const FilePath& GetFullPath() const = 0; |
| 258 virtual void SetPathUniquifier(int uniquifier) = 0; | 258 virtual void SetPathUniquifier(int uniquifier) = 0; |
| 259 virtual const GURL& GetURL() const = 0; | 259 virtual const GURL& GetURL() const = 0; |
| 260 virtual const std::vector<GURL>& GetUrlChain() const = 0; | 260 virtual const std::vector<GURL>& GetUrlChain() const = 0; |
| 261 virtual const GURL& GetOriginalUrl() const = 0; | 261 virtual const GURL& GetOriginalUrl() const = 0; |
| 262 virtual const GURL& GetReferrerUrl() const = 0; | 262 virtual const GURL& GetReferrerUrl() const = 0; |
| 263 virtual std::string GetSuggestedFilename() const = 0; | 263 virtual std::string GetSuggestedFilename() const = 0; |
| 264 virtual std::string GetContentDisposition() const = 0; | 264 virtual std::string GetContentDisposition() const = 0; |
| 265 virtual std::string GetMimeType() const = 0; | 265 virtual std::string GetMimeType() const = 0; |
| 266 virtual std::string GetOriginalMimeType() const = 0; | 266 virtual std::string GetOriginalMimeType() const = 0; |
| 267 virtual std::string GetReferrerCharset() const = 0; | 267 virtual std::string GetDefaultCharset() const = 0; |
| 268 virtual std::string GetRemoteAddress() const = 0; | 268 virtual std::string GetRemoteAddress() const = 0; |
| 269 virtual int64 GetTotalBytes() const = 0; | 269 virtual int64 GetTotalBytes() const = 0; |
| 270 virtual void SetTotalBytes(int64 total_bytes) = 0; | 270 virtual void SetTotalBytes(int64 total_bytes) = 0; |
| 271 virtual int64 GetReceivedBytes() const = 0; | 271 virtual int64 GetReceivedBytes() const = 0; |
| 272 virtual const std::string& GetHashState() const = 0; | 272 virtual const std::string& GetHashState() const = 0; |
| 273 virtual int32 GetId() const = 0; | 273 virtual int32 GetId() const = 0; |
| 274 virtual DownloadId GetGlobalId() const = 0; | 274 virtual DownloadId GetGlobalId() const = 0; |
| 275 virtual base::Time GetStartTime() const = 0; | 275 virtual base::Time GetStartTime() const = 0; |
| 276 virtual base::Time GetEndTime() const = 0; | 276 virtual base::Time GetEndTime() const = 0; |
| 277 virtual void SetDbHandle(int64 handle) = 0; | 277 virtual void SetDbHandle(int64 handle) = 0; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 virtual void SetExternalData(const void* key, ExternalData* data) = 0; | 345 virtual void SetExternalData(const void* key, ExternalData* data) = 0; |
| 346 | 346 |
| 347 virtual std::string DebugString(bool verbose) const = 0; | 347 virtual std::string DebugString(bool verbose) const = 0; |
| 348 | 348 |
| 349 virtual void MockDownloadOpenForTesting() = 0; | 349 virtual void MockDownloadOpenForTesting() = 0; |
| 350 }; | 350 }; |
| 351 | 351 |
| 352 } // namespace content | 352 } // namespace content |
| 353 | 353 |
| 354 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ | 354 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ |
| OLD | NEW |