| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Origin State accessors ------------------------------------------------- | 187 // Origin State accessors ------------------------------------------------- |
| 188 | 188 |
| 189 virtual const GURL& GetURL() const = 0; | 189 virtual const GURL& GetURL() const = 0; |
| 190 virtual const std::vector<GURL>& GetUrlChain() const = 0; | 190 virtual const std::vector<GURL>& GetUrlChain() const = 0; |
| 191 virtual const GURL& GetOriginalUrl() const = 0; | 191 virtual const GURL& GetOriginalUrl() const = 0; |
| 192 virtual const GURL& GetReferrerUrl() const = 0; | 192 virtual const GURL& GetReferrerUrl() const = 0; |
| 193 virtual std::string GetSuggestedFilename() const = 0; | 193 virtual std::string GetSuggestedFilename() const = 0; |
| 194 virtual std::string GetContentDisposition() const = 0; | 194 virtual std::string GetContentDisposition() const = 0; |
| 195 virtual std::string GetMimeType() const = 0; | 195 virtual std::string GetMimeType() const = 0; |
| 196 virtual std::string GetOriginalMimeType() const = 0; | 196 virtual std::string GetOriginalMimeType() const = 0; |
| 197 virtual std::string GetReferrerCharset() const = 0; | |
| 198 virtual std::string GetRemoteAddress() const = 0; | 197 virtual std::string GetRemoteAddress() const = 0; |
| 199 virtual bool HasUserGesture() const = 0; | 198 virtual bool HasUserGesture() const = 0; |
| 200 virtual PageTransition GetTransitionType() const = 0; | 199 virtual PageTransition GetTransitionType() const = 0; |
| 201 virtual const std::string& GetLastModifiedTime() const = 0; | 200 virtual const std::string& GetLastModifiedTime() const = 0; |
| 202 virtual const std::string& GetETag() const = 0; | 201 virtual const std::string& GetETag() const = 0; |
| 203 | 202 |
| 204 // Destination State accessors -------------------------------------------- | 203 // Destination State accessors -------------------------------------------- |
| 205 | 204 |
| 206 // Full path to the downloaded or downloading file. This is the path to the | 205 // Full path to the downloaded or downloading file. This is the path to the |
| 207 // physical file, if one exists. It should be considered a hint; changes to | 206 // physical file, if one exists. It should be considered a hint; changes to |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 virtual void SetDisplayName(const FilePath& name) = 0; | 331 virtual void SetDisplayName(const FilePath& name) = 0; |
| 333 | 332 |
| 334 // Debug/testing ------------------------------------------------------------- | 333 // Debug/testing ------------------------------------------------------------- |
| 335 virtual std::string DebugString(bool verbose) const = 0; | 334 virtual std::string DebugString(bool verbose) const = 0; |
| 336 virtual void MockDownloadOpenForTesting() = 0; | 335 virtual void MockDownloadOpenForTesting() = 0; |
| 337 }; | 336 }; |
| 338 | 337 |
| 339 } // namespace content | 338 } // namespace content |
| 340 | 339 |
| 341 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ | 340 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ |
| OLD | NEW |