| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const DownloadCreateInfo& info, | 73 const DownloadCreateInfo& info, |
| 74 const net::BoundNetLog& bound_net_log); | 74 const net::BoundNetLog& bound_net_log); |
| 75 | 75 |
| 76 // Constructing for the "Save Page As..." feature: | 76 // Constructing for the "Save Page As..." feature: |
| 77 // |bound_net_log| is constructed externally for our use. | 77 // |bound_net_log| is constructed externally for our use. |
| 78 DownloadItemImpl(DownloadItemImplDelegate* delegate, | 78 DownloadItemImpl(DownloadItemImplDelegate* delegate, |
| 79 const base::FilePath& path, | 79 const base::FilePath& path, |
| 80 const GURL& url, | 80 const GURL& url, |
| 81 DownloadId download_id, | 81 DownloadId download_id, |
| 82 const std::string& mime_type, | 82 const std::string& mime_type, |
| 83 scoped_ptr<DownloadRequestHandleInterface> request_handle, |
| 83 const net::BoundNetLog& bound_net_log); | 84 const net::BoundNetLog& bound_net_log); |
| 84 | 85 |
| 85 virtual ~DownloadItemImpl(); | 86 virtual ~DownloadItemImpl(); |
| 86 | 87 |
| 87 // DownloadItem | 88 // DownloadItem |
| 88 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; | 89 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; |
| 89 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; | 90 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; |
| 90 virtual void UpdateObservers() OVERRIDE; | 91 virtual void UpdateObservers() OVERRIDE; |
| 91 virtual void DangerousDownloadValidated() OVERRIDE; | 92 virtual void DangerousDownloadValidated() OVERRIDE; |
| 92 virtual void Pause() OVERRIDE; | 93 virtual void Pause() OVERRIDE; |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 const net::BoundNetLog bound_net_log_; | 482 const net::BoundNetLog bound_net_log_; |
| 482 | 483 |
| 483 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 484 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
| 484 | 485 |
| 485 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 486 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
| 486 }; | 487 }; |
| 487 | 488 |
| 488 } // namespace content | 489 } // namespace content |
| 489 | 490 |
| 490 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 491 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| OLD | NEW |