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

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

Issue 2880933002: Download driver for components/download. (Closed)
Patch Set: Polish comment. Created 3 years, 7 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 26 matching lines...) Expand all
37 DownloadCreateInfo(const base::Time& start_time, 37 DownloadCreateInfo(const base::Time& start_time,
38 const net::NetLogWithSource& net_log, 38 const net::NetLogWithSource& net_log,
39 std::unique_ptr<DownloadSaveInfo> save_info); 39 std::unique_ptr<DownloadSaveInfo> save_info);
40 DownloadCreateInfo(); 40 DownloadCreateInfo();
41 ~DownloadCreateInfo(); 41 ~DownloadCreateInfo();
42 42
43 // The URL from which we are downloading. This is the final URL after any 43 // The URL from which we are downloading. This is the final URL after any
44 // redirection by the server for |url_chain|. 44 // redirection by the server for |url_chain|.
45 const GURL& url() const; 45 const GURL& url() const;
46 46
47 // The ID of the download. 47 // The ID of the download. (Deprecated)
48 uint32_t download_id; 48 uint32_t download_id;
49 49
50 // The unique identifier for the download.
51 std::string guid;
52
50 // The chain of redirects that leading up to and including the final URL. 53 // The chain of redirects that leading up to and including the final URL.
51 std::vector<GURL> url_chain; 54 std::vector<GURL> url_chain;
52 55
53 // The URL that referred us. 56 // The URL that referred us.
54 GURL referrer_url; 57 GURL referrer_url;
55 58
56 // Site URL for the site instance that initiated the download. 59 // Site URL for the site instance that initiated the download.
57 GURL site_url; 60 GURL site_url;
58 61
59 // The URL of the tab that started us. 62 // The URL of the tab that started us.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // The HTTP connection type. 139 // The HTTP connection type.
137 net::HttpResponseInfo::ConnectionInfo connection_info; 140 net::HttpResponseInfo::ConnectionInfo connection_info;
138 141
139 private: 142 private:
140 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); 143 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo);
141 }; 144 };
142 145
143 } // namespace content 146 } // namespace content
144 147
145 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 148 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
OLDNEW
« no previous file with comments | « components/download/internal/test/test_download_driver.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698