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

Side by Side Diff: chrome/browser/download/download_item.h

Issue 3071005: Download code cleanup patch of death: (Closed)
Patch Set: inline the dtor Created 10 years, 4 months 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
« no previous file with comments | « chrome/browser/download/download_history.cc ('k') | chrome/browser/download/download_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Each download is represented by a DownloadItem, and all DownloadItems 5 // Each download is represented by a DownloadItem, and all DownloadItems
6 // are owned by the DownloadManager which maintains a global list of all 6 // are owned by the DownloadManager which maintains a global list of all
7 // downloads. DownloadItems are created when a user initiates a download, 7 // downloads. DownloadItems are created when a user initiates a download,
8 // and exist for the duration of the browser life time. 8 // and exist for the duration of the browser life time.
9 // 9 //
10 // Download observers: 10 // Download observers:
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 std::string mime_type() const { return mime_type_; } 164 std::string mime_type() const { return mime_type_; }
165 std::string original_mime_type() const { return original_mime_type_; } 165 std::string original_mime_type() const { return original_mime_type_; }
166 int64 total_bytes() const { return total_bytes_; } 166 int64 total_bytes() const { return total_bytes_; }
167 void set_total_bytes(int64 total_bytes) { total_bytes_ = total_bytes; } 167 void set_total_bytes(int64 total_bytes) { total_bytes_ = total_bytes; }
168 int64 received_bytes() const { return received_bytes_; } 168 int64 received_bytes() const { return received_bytes_; }
169 int32 id() const { return id_; } 169 int32 id() const { return id_; }
170 base::Time start_time() const { return start_time_; } 170 base::Time start_time() const { return start_time_; }
171 void set_db_handle(int64 handle) { db_handle_ = handle; } 171 void set_db_handle(int64 handle) { db_handle_ = handle; }
172 int64 db_handle() const { return db_handle_; } 172 int64 db_handle() const { return db_handle_; }
173 bool is_paused() const { return is_paused_; } 173 bool is_paused() const { return is_paused_; }
174 void set_is_paused(bool pause) { is_paused_ = pause; }
175 bool open_when_complete() const { return open_when_complete_; } 174 bool open_when_complete() const { return open_when_complete_; }
176 void set_open_when_complete(bool open) { open_when_complete_ = open; } 175 void set_open_when_complete(bool open) { open_when_complete_ = open; }
177 int render_process_id() const { return render_process_id_; } 176 int render_process_id() const { return render_process_id_; }
178 int request_id() const { return request_id_; } 177 int request_id() const { return request_id_; }
179 SafetyState safety_state() const { return safety_state_; } 178 SafetyState safety_state() const { return safety_state_; }
180 void set_safety_state(SafetyState safety_state) { 179 void set_safety_state(SafetyState safety_state) {
181 safety_state_ = safety_state; 180 safety_state_ = safety_state;
182 } 181 }
183 bool auto_opened() { return auto_opened_; } 182 bool auto_opened() { return auto_opened_; }
184 void set_auto_opened(bool auto_opened) { auto_opened_ = auto_opened; } 183 void set_auto_opened(bool auto_opened) { auto_opened_ = auto_opened; }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // True if the item was downloaded temporarily. 298 // True if the item was downloaded temporarily.
300 bool is_temporary_; 299 bool is_temporary_;
301 300
302 // True if the file needs final rename. 301 // True if the file needs final rename.
303 bool need_final_rename_; 302 bool need_final_rename_;
304 303
305 DISALLOW_COPY_AND_ASSIGN(DownloadItem); 304 DISALLOW_COPY_AND_ASSIGN(DownloadItem);
306 }; 305 };
307 306
308 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_H_ 307 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_history.cc ('k') | chrome/browser/download/download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698