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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual const GURL& GetOriginalUrl() const OVERRIDE; | 114 virtual const GURL& GetOriginalUrl() const OVERRIDE; |
115 virtual const GURL& GetReferrerUrl() const OVERRIDE; | 115 virtual const GURL& GetReferrerUrl() const OVERRIDE; |
116 virtual const GURL& GetTabUrl() const OVERRIDE; | 116 virtual const GURL& GetTabUrl() const OVERRIDE; |
117 virtual const GURL& GetTabReferrerUrl() const OVERRIDE; | 117 virtual const GURL& GetTabReferrerUrl() const OVERRIDE; |
118 virtual std::string GetSuggestedFilename() const OVERRIDE; | 118 virtual std::string GetSuggestedFilename() const OVERRIDE; |
119 virtual std::string GetContentDisposition() const OVERRIDE; | 119 virtual std::string GetContentDisposition() const OVERRIDE; |
120 virtual std::string GetMimeType() const OVERRIDE; | 120 virtual std::string GetMimeType() const OVERRIDE; |
121 virtual std::string GetOriginalMimeType() const OVERRIDE; | 121 virtual std::string GetOriginalMimeType() const OVERRIDE; |
122 virtual std::string GetRemoteAddress() const OVERRIDE; | 122 virtual std::string GetRemoteAddress() const OVERRIDE; |
123 virtual bool HasUserGesture() const OVERRIDE; | 123 virtual bool HasUserGesture() const OVERRIDE; |
124 virtual PageTransition GetTransitionType() const OVERRIDE; | 124 virtual ui::PageTransition GetTransitionType() const OVERRIDE; |
125 virtual const std::string& GetLastModifiedTime() const OVERRIDE; | 125 virtual const std::string& GetLastModifiedTime() const OVERRIDE; |
126 virtual const std::string& GetETag() const OVERRIDE; | 126 virtual const std::string& GetETag() const OVERRIDE; |
127 virtual bool IsSavePackageDownload() const OVERRIDE; | 127 virtual bool IsSavePackageDownload() const OVERRIDE; |
128 virtual const base::FilePath& GetFullPath() const OVERRIDE; | 128 virtual const base::FilePath& GetFullPath() const OVERRIDE; |
129 virtual const base::FilePath& GetTargetFilePath() const OVERRIDE; | 129 virtual const base::FilePath& GetTargetFilePath() const OVERRIDE; |
130 virtual const base::FilePath& GetForcedFilePath() const OVERRIDE; | 130 virtual const base::FilePath& GetForcedFilePath() const OVERRIDE; |
131 virtual base::FilePath GetFileNameToReportUser() const OVERRIDE; | 131 virtual base::FilePath GetFileNameToReportUser() const OVERRIDE; |
132 virtual TargetDisposition GetTargetDisposition() const OVERRIDE; | 132 virtual TargetDisposition GetTargetDisposition() const OVERRIDE; |
133 virtual const std::string& GetHash() const OVERRIDE; | 133 virtual const std::string& GetHash() const OVERRIDE; |
134 virtual const std::string& GetHashState() const OVERRIDE; | 134 virtual const std::string& GetHashState() const OVERRIDE; |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 // Filename suggestion from DownloadSaveInfo. It could, among others, be the | 430 // Filename suggestion from DownloadSaveInfo. It could, among others, be the |
431 // suggested filename in 'download' attribute of an anchor. Details: | 431 // suggested filename in 'download' attribute of an anchor. Details: |
432 // http://www.whatwg.org/specs/web-apps/current-work/#downloading-hyperlinks | 432 // http://www.whatwg.org/specs/web-apps/current-work/#downloading-hyperlinks |
433 std::string suggested_filename_; | 433 std::string suggested_filename_; |
434 | 434 |
435 // If non-empty, contains an externally supplied path that should be used as | 435 // If non-empty, contains an externally supplied path that should be used as |
436 // the target path. | 436 // the target path. |
437 base::FilePath forced_file_path_; | 437 base::FilePath forced_file_path_; |
438 | 438 |
439 // Page transition that triggerred the download. | 439 // Page transition that triggerred the download. |
440 PageTransition transition_type_; | 440 ui::PageTransition transition_type_; |
441 | 441 |
442 // Whether the download was triggered with a user gesture. | 442 // Whether the download was triggered with a user gesture. |
443 bool has_user_gesture_; | 443 bool has_user_gesture_; |
444 | 444 |
445 // Information from the request. | 445 // Information from the request. |
446 // Content-disposition field from the header. | 446 // Content-disposition field from the header. |
447 std::string content_disposition_; | 447 std::string content_disposition_; |
448 | 448 |
449 // Mime-type from the header. Subject to change. | 449 // Mime-type from the header. Subject to change. |
450 std::string mime_type_; | 450 std::string mime_type_; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 const net::BoundNetLog bound_net_log_; | 553 const net::BoundNetLog bound_net_log_; |
554 | 554 |
555 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 555 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
556 | 556 |
557 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 557 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
558 }; | 558 }; |
559 | 559 |
560 } // namespace content | 560 } // namespace content |
561 | 561 |
562 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 562 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |