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

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: Incorporated Randy's comments. 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 // Storing as a string for exact match to server format on
92 // "If-Unmodified-Since" comparison.
93 std::string last_modified;
94
95 // For restarting a download, the ETAG of the file.
96 std::string etag;
97
90 // True if we should display the 'save as...' UI and prompt the user 98 // True if we should display the 'save as...' UI and prompt the user
91 // for the download location. 99 // for the download location.
92 // False if the UI should be supressed and the download performed to the 100 // False if the UI should be suppressed and the download performed to the
93 // default location. 101 // default location.
94 bool prompt_user_for_save_location; 102 bool prompt_user_for_save_location;
95 103
96 // The original name for a dangerous download. 104 // The original name for a dangerous download.
97 FilePath original_name; 105 FilePath original_name;
98 106
99 // The charset of the referring page where the download request comes from. 107 // The charset of the referring page where the download request comes from.
100 // It's used to construct a suggested filename. 108 // It's used to construct a suggested filename.
101 std::string referrer_charset; 109 std::string referrer_charset;
102 110
103 // The download file save info. 111 // The download file save info.
104 DownloadSaveInfo save_info; 112 DownloadSaveInfo save_info;
105 }; 113 };
106 114
107 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 115 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698