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

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

Issue 9351024: Clean up unused members and constructors from DownloadCreateInfo and DownloadSaveInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyright Created 8 years, 10 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 | 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // The handle to the request information. Used for operations outside the 248 // The handle to the request information. Used for operations outside the
249 // download system. 249 // download system.
250 scoped_ptr<DownloadRequestHandleInterface> request_handle_; 250 scoped_ptr<DownloadRequestHandleInterface> request_handle_;
251 251
252 // Download ID assigned by DownloadResourceHandler. 252 // Download ID assigned by DownloadResourceHandler.
253 content::DownloadId download_id_; 253 content::DownloadId download_id_;
254 254
255 // Full path to the downloaded or downloading file. 255 // Full path to the downloaded or downloading file.
256 FilePath full_path_; 256 FilePath full_path_;
257 257
258 // A number that should be appended to the path to make it unique, or 0 if the
259 // path should be used as is.
260 int path_uniquifier_;
261
262 // The chain of redirects that leading up to and including the final URL. 258 // The chain of redirects that leading up to and including the final URL.
263 std::vector<GURL> url_chain_; 259 std::vector<GURL> url_chain_;
264 260
265 // The URL of the page that initiated the download. 261 // The URL of the page that initiated the download.
266 GURL referrer_url_; 262 GURL referrer_url_;
267 263
268 // Suggested filename in 'download' attribute of an anchor. Details: 264 // Filename suggestion from DownloadSaveInfo. It could, among others, be the
265 // suggested filename in 'download' attribute of an anchor. Details:
269 // http://www.whatwg.org/specs/web-apps/current-work/#downloading-hyperlinks 266 // http://www.whatwg.org/specs/web-apps/current-work/#downloading-hyperlinks
270 std::string suggested_filename_; 267 std::string suggested_filename_;
271 268
272 // Information from the request. 269 // Information from the request.
273 // Content-disposition field from the header. 270 // Content-disposition field from the header.
274 std::string content_disposition_; 271 std::string content_disposition_;
275 272
276 // Mime-type from the header. Subject to change. 273 // Mime-type from the header. Subject to change.
277 std::string mime_type_; 274 std::string mime_type_;
278 275
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 360
364 // True if we've saved all the data for the download. 361 // True if we've saved all the data for the download.
365 bool all_data_saved_; 362 bool all_data_saved_;
366 363
367 // Did the user open the item either directly or indirectly (such as by 364 // Did the user open the item either directly or indirectly (such as by
368 // setting always open files of this type)? The shelf also sets this field 365 // setting always open files of this type)? The shelf also sets this field
369 // when the user closes the shelf before the item has been opened but should 366 // when the user closes the shelf before the item has been opened but should
370 // be treated as though the user opened it. 367 // be treated as though the user opened it.
371 bool opened_; 368 bool opened_;
372 369
373 // Do we actual open downloads when requested? For testing purposes 370 // Do we actually open downloads when requested? For testing purposes only.
374 // only.
375 bool open_enabled_; 371 bool open_enabled_;
376 372
377 // Did the delegate delay calling Complete on this download? 373 // Did the delegate delay calling Complete on this download?
378 bool delegate_delayed_complete_; 374 bool delegate_delayed_complete_;
379 375
380 // External Data storage. All objects in the store 376 // External Data storage. All objects in the store
381 // are owned by the DownloadItemImpl. 377 // are owned by the DownloadItemImpl.
382 std::map<const void*, ExternalData*> external_data_map_; 378 std::map<const void*, ExternalData*> external_data_map_;
383 379
384 // Net log to use for this download. 380 // Net log to use for this download.
385 const net::BoundNetLog bound_net_log_; 381 const net::BoundNetLog bound_net_log_;
386 382
387 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 383 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
388 }; 384 };
389 385
390 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 386 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_create_info.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698