| 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" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
| 18 #include "content/browser/download/download_net_log_parameters.h" | 18 #include "content/browser/download/download_net_log_parameters.h" |
| 19 #include "content/browser/download/download_request_handle.h" | 19 #include "content/browser/download/download_request_handle.h" |
| 20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 21 #include "content/public/browser/download_destination_observer.h" | 21 #include "content/public/browser/download_destination_observer.h" |
| 22 #include "content/public/browser/download_id.h" | 22 #include "content/public/browser/download_id.h" |
| 23 #include "content/public/browser/download_item.h" | 23 #include "content/public/browser/download_item.h" |
| 24 #include "googleurl/src/gurl.h" | |
| 25 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
| 26 #include "net/base/net_log.h" | 25 #include "net/base/net_log.h" |
| 26 #include "url/gurl.h" |
| 27 | 27 |
| 28 namespace content { | 28 namespace content { |
| 29 class DownloadFile; | 29 class DownloadFile; |
| 30 class DownloadItemImplDelegate; | 30 class DownloadItemImplDelegate; |
| 31 | 31 |
| 32 // See download_item.h for usage. | 32 // See download_item.h for usage. |
| 33 class CONTENT_EXPORT DownloadItemImpl | 33 class CONTENT_EXPORT DownloadItemImpl |
| 34 : public DownloadItem, | 34 : public DownloadItem, |
| 35 public DownloadDestinationObserver { | 35 public DownloadDestinationObserver { |
| 36 public: | 36 public: |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 const net::BoundNetLog bound_net_log_; | 537 const net::BoundNetLog bound_net_log_; |
| 538 | 538 |
| 539 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 539 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
| 540 | 540 |
| 541 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 541 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
| 542 }; | 542 }; |
| 543 | 543 |
| 544 } // namespace content | 544 } // namespace content |
| 545 | 545 |
| 546 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 546 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| OLD | NEW |