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

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

Issue 102683004: Add mime type information to the download database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes Created 7 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // outlives the DownloadItemImpl. 49 // outlives the DownloadItemImpl.
50 50
51 // Constructing from persistent store: 51 // Constructing from persistent store:
52 // |bound_net_log| is constructed externally for our use. 52 // |bound_net_log| is constructed externally for our use.
53 DownloadItemImpl(DownloadItemImplDelegate* delegate, 53 DownloadItemImpl(DownloadItemImplDelegate* delegate,
54 uint32 id, 54 uint32 id,
55 const base::FilePath& current_path, 55 const base::FilePath& current_path,
56 const base::FilePath& target_path, 56 const base::FilePath& target_path,
57 const std::vector<GURL>& url_chain, 57 const std::vector<GURL>& url_chain,
58 const GURL& referrer_url, 58 const GURL& referrer_url,
59 const std::string& mime_type,
60 const std::string& original_mime_type,
59 const base::Time& start_time, 61 const base::Time& start_time,
60 const base::Time& end_time, 62 const base::Time& end_time,
61 const std::string& etag, 63 const std::string& etag,
62 const std::string& last_modified, 64 const std::string& last_modified,
63 int64 received_bytes, 65 int64 received_bytes,
64 int64 total_bytes, 66 int64 total_bytes,
65 DownloadItem::DownloadState state, 67 DownloadItem::DownloadState state,
66 DownloadDangerType danger_type, 68 DownloadDangerType danger_type,
67 DownloadInterruptReason interrupt_reason, 69 DownloadInterruptReason interrupt_reason,
68 bool opened, 70 bool opened,
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 const net::BoundNetLog bound_net_log_; 544 const net::BoundNetLog bound_net_log_;
543 545
544 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 546 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
545 547
546 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 548 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
547 }; 549 };
548 550
549 } // namespace content 551 } // namespace content
550 552
551 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 553 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698