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

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

Issue 1728583002: Simplify DownloadRequestHandle by using WebContentsGetter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: default callback constructor Created 4 years, 9 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
« no previous file with comments | « no previous file | content/browser/download/download_create_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 26
27 // Used for informing the download manager of a new download, since we don't 27 // Used for informing the download manager of a new download, since we don't
28 // want to pass |DownloadItem|s between threads. 28 // want to pass |DownloadItem|s between threads.
29 struct CONTENT_EXPORT DownloadCreateInfo { 29 struct CONTENT_EXPORT DownloadCreateInfo {
30 DownloadCreateInfo(const base::Time& start_time, 30 DownloadCreateInfo(const base::Time& start_time,
31 const net::BoundNetLog& bound_net_log, 31 const net::BoundNetLog& bound_net_log,
32 scoped_ptr<DownloadSaveInfo> save_info); 32 scoped_ptr<DownloadSaveInfo> save_info);
33 DownloadCreateInfo(); 33 DownloadCreateInfo();
34 ~DownloadCreateInfo(); 34 ~DownloadCreateInfo();
35 35
36 std::string DebugString() const;
37
38 // The URL from which we are downloading. This is the final URL after any 36 // The URL from which we are downloading. This is the final URL after any
39 // redirection by the server for |url_chain|. 37 // redirection by the server for |url_chain|.
40 const GURL& url() const; 38 const GURL& url() const;
41 39
42 // The ID of the download. 40 // The ID of the download.
43 uint32_t download_id; 41 uint32_t download_id;
44 42
45 // The chain of redirects that leading up to and including the final URL. 43 // The chain of redirects that leading up to and including the final URL.
46 std::vector<GURL> url_chain; 44 std::vector<GURL> url_chain;
47 45
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // For continuing a download, the ETag of the file. 106 // For continuing a download, the ETag of the file.
109 std::string etag; 107 std::string etag;
110 108
111 private: 109 private:
112 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); 110 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo);
113 }; 111 };
114 112
115 } // namespace content 113 } // namespace content
116 114
117 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 115 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698