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

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

Issue 2809953002: Make the download's response headers available in the DownloadItem (Closed)
Patch Set: Created 3 years, 8 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
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_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 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // True if the download was initiated by user action. 72 // True if the download was initiated by user action.
73 bool has_user_gesture; 73 bool has_user_gesture;
74 74
75 // Whether the download should be transient. A transient download is 75 // Whether the download should be transient. A transient download is
76 // short-lived and is not shown in the UI. 76 // short-lived and is not shown in the UI.
77 bool transient; 77 bool transient;
78 78
79 base::Optional<ui::PageTransition> transition_type; 79 base::Optional<ui::PageTransition> transition_type;
80 80
81 // The HTTP response code. This is 0 when the response has not yet been
82 // received or if the response code text could not be parsed.
83 int response_code;
84
81 // The remote IP address where the download was fetched from. Copied from 85 // The remote IP address where the download was fetched from. Copied from
82 // UrlRequest::GetSocketAddress(). 86 // UrlRequest::GetSocketAddress().
83 std::string remote_address; 87 std::string remote_address;
84 88
85 // If the download is initially created in an interrupted state (because the 89 // If the download is initially created in an interrupted state (because the
86 // response was in error), then |result| would be something other than 90 // response was in error), then |result| would be something other than
87 // INTERRUPT_REASON_NONE. 91 // INTERRUPT_REASON_NONE.
88 DownloadInterruptReason result; 92 DownloadInterruptReason result;
89 93
90 // The download file save info. 94 // The download file save info.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // The HTTP connection type. 131 // The HTTP connection type.
128 net::HttpResponseInfo::ConnectionInfo connection_info; 132 net::HttpResponseInfo::ConnectionInfo connection_info;
129 133
130 private: 134 private:
131 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); 135 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo);
132 }; 136 };
133 137
134 } // namespace content 138 } // namespace content
135 139
136 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 140 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/download/download_create_info.cc » ('j') | content/browser/download/download_item_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698