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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup, and added fields to DownloadPersistentStoreInfo. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CREATE_INFO_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 std::string content_disposition; 80 std::string content_disposition;
81 81
82 // The mime type string from the response header (may be overridden). 82 // The mime type string from the response header (may be overridden).
83 std::string mime_type; 83 std::string mime_type;
84 84
85 // The value of the content type header sent with the downloaded item. It 85 // The value of the content type header sent with the downloaded item. It
86 // may be different from |mime_type|, which may be set based on heuristics 86 // may be different from |mime_type|, which may be set based on heuristics
87 // which may look at the file extension and first few bytes of the file. 87 // which may look at the file extension and first few bytes of the file.
88 std::string original_mime_type; 88 std::string original_mime_type;
89 89
90 // For restarting a download, the modification time of the file.
91 std::string last_modified;
92
93 // For restarting a download, the ETAG of the file.
94 std::string etag;
95
90 // True if we should display the 'save as...' UI and prompt the user 96 // True if we should display the 'save as...' UI and prompt the user
91 // for the download location. 97 // for the download location.
92 // False if the UI should be supressed and the download performed to the 98 // False if the UI should be suppressed and the download performed to the
93 // default location. 99 // default location.
94 bool prompt_user_for_save_location; 100 bool prompt_user_for_save_location;
95 101
96 // The original name for a dangerous download. 102 // The original name for a dangerous download.
97 FilePath original_name; 103 FilePath original_name;
98 104
99 // The charset of the referring page where the download request comes from. 105 // The charset of the referring page where the download request comes from.
100 // It's used to construct a suggested filename. 106 // It's used to construct a suggested filename.
101 std::string referrer_charset; 107 std::string referrer_charset;
102 108
103 // The download file save info. 109 // The download file save info.
104 DownloadSaveInfo save_info; 110 DownloadSaveInfo save_info;
105 }; 111 };
106 112
107 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 113 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698