Chromium Code Reviews| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 bool is_otr, | 98 bool is_otr, |
| 99 const net::BoundNetLog& bound_net_log); | 99 const net::BoundNetLog& bound_net_log); |
| 100 | 100 |
| 101 // Constructing for the "Save Page As..." feature: | 101 // Constructing for the "Save Page As..." feature: |
| 102 // |bound_net_log| is constructed externally for our use. | 102 // |bound_net_log| is constructed externally for our use. |
| 103 DownloadItemImpl(Delegate* delegate, | 103 DownloadItemImpl(Delegate* delegate, |
| 104 const FilePath& path, | 104 const FilePath& path, |
| 105 const GURL& url, | 105 const GURL& url, |
| 106 bool is_otr, | 106 bool is_otr, |
| 107 content::DownloadId download_id, | 107 content::DownloadId download_id, |
| 108 const std::string& mime_type, | |
|
Randy Smith (Not in Mondays)
2012/04/27 18:24:04
How is this used? I dug around and couldn't figur
benjhayden
2012/04/28 19:09:03
GDataUploader::UploadFile() requires it to be not
| |
| 108 const net::BoundNetLog& bound_net_log); | 109 const net::BoundNetLog& bound_net_log); |
| 109 | 110 |
| 110 virtual ~DownloadItemImpl(); | 111 virtual ~DownloadItemImpl(); |
| 111 | 112 |
| 112 // Overridden from DownloadItem. | 113 // Overridden from DownloadItem. |
| 113 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; | 114 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; |
| 114 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; | 115 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; |
| 115 virtual void UpdateObservers() OVERRIDE; | 116 virtual void UpdateObservers() OVERRIDE; |
| 116 virtual bool CanShowInFolder() OVERRIDE; | 117 virtual bool CanShowInFolder() OVERRIDE; |
| 117 virtual bool CanOpenDownload() OVERRIDE; | 118 virtual bool CanOpenDownload() OVERRIDE; |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 386 // are owned by the DownloadItemImpl. | 387 // are owned by the DownloadItemImpl. |
| 387 std::map<const void*, ExternalData*> external_data_map_; | 388 std::map<const void*, ExternalData*> external_data_map_; |
| 388 | 389 |
| 389 // Net log to use for this download. | 390 // Net log to use for this download. |
| 390 const net::BoundNetLog bound_net_log_; | 391 const net::BoundNetLog bound_net_log_; |
| 391 | 392 |
| 392 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 393 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
| 393 }; | 394 }; |
| 394 | 395 |
| 395 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 396 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| OLD | NEW |