Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed ordering of target_path and current_path everywhere to match that of DownloadItemImpl. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 23 matching lines...) Expand all
34 public DownloadDestinationObserver { 34 public DownloadDestinationObserver {
35 public: 35 public:
36 // Note that it is the responsibility of the caller to ensure that a 36 // Note that it is the responsibility of the caller to ensure that a
37 // DownloadItemImplDelegate passed to a DownloadItemImpl constructor 37 // DownloadItemImplDelegate passed to a DownloadItemImpl constructor
38 // outlives the DownloadItemImpl. 38 // outlives the DownloadItemImpl.
39 39
40 // Constructing from persistent store: 40 // Constructing from persistent store:
41 // |bound_net_log| is constructed externally for our use. 41 // |bound_net_log| is constructed externally for our use.
42 DownloadItemImpl(DownloadItemImplDelegate* delegate, 42 DownloadItemImpl(DownloadItemImplDelegate* delegate,
43 DownloadId download_id, 43 DownloadId download_id,
44 const FilePath& path, 44 const FilePath& current_path,
45 const GURL& url, 45 const FilePath& target_path,
46 const std::vector<GURL>& url_chain,
46 const GURL& referrer_url, 47 const GURL& referrer_url,
47 const base::Time& start_time, 48 const base::Time& start_time,
48 const base::Time& end_time, 49 const base::Time& end_time,
49 int64 received_bytes, 50 int64 received_bytes,
50 int64 total_bytes, 51 int64 total_bytes,
51 DownloadItem::DownloadState state, 52 DownloadItem::DownloadState state,
53 DownloadInterruptReason interrupt_reason,
52 bool opened, 54 bool opened,
53 const net::BoundNetLog& bound_net_log); 55 const net::BoundNetLog& bound_net_log);
54 56
55 // Constructing for a regular download. 57 // Constructing for a regular download.
56 // |bound_net_log| is constructed externally for our use. 58 // |bound_net_log| is constructed externally for our use.
57 DownloadItemImpl(DownloadItemImplDelegate* delegate, 59 DownloadItemImpl(DownloadItemImplDelegate* delegate,
58 const DownloadCreateInfo& info, 60 const DownloadCreateInfo& info,
59 scoped_ptr<DownloadRequestHandleInterface> request_handle, 61 scoped_ptr<DownloadRequestHandleInterface> request_handle,
60 const net::BoundNetLog& bound_net_log); 62 const net::BoundNetLog& bound_net_log);
61 63
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 const net::BoundNetLog bound_net_log_; 470 const net::BoundNetLog bound_net_log_;
469 471
470 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 472 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
471 473
472 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 474 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
473 }; 475 };
474 476
475 } // namespace content 477 } // namespace content
476 478
477 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 479 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698