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

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

Issue 8371009: Make passing of DownloadRequestHandle separate from DownloadCreateInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. 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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "content/browser/download/download_file.h" 15 #include "content/browser/download/download_file.h"
16 #include "content/browser/download/download_request_handle.h"
17 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
18 #include "content/public/common/page_transition_types.h" 17 #include "content/public/common/page_transition_types.h"
19 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
20 19
21 // Used for informing the download manager of a new download, since we don't 20 // Used for informing the download manager of a new download, since we don't
22 // want to pass |DownloadItem|s between threads. 21 // want to pass |DownloadItem|s between threads.
23 struct CONTENT_EXPORT DownloadCreateInfo { 22 struct CONTENT_EXPORT DownloadCreateInfo {
24 DownloadCreateInfo(const FilePath& path, 23 DownloadCreateInfo(const FilePath& path,
25 const GURL& url, 24 const GURL& url,
26 const base::Time& start_time, 25 const base::Time& start_time,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 int32 state; 65 int32 state;
67 66
68 // The (per-session) ID of the download. 67 // The (per-session) ID of the download.
69 int32 download_id; 68 int32 download_id;
70 69
71 // True if the download was initiated by user action. 70 // True if the download was initiated by user action.
72 bool has_user_gesture; 71 bool has_user_gesture;
73 72
74 content::PageTransition transition_type; 73 content::PageTransition transition_type;
75 74
76 // The handle to the download request information. Used for operations
77 // outside the download system.
78 DownloadRequestHandle request_handle;
79
80 // The handle of the download in the history database. 75 // The handle of the download in the history database.
81 int64 db_handle; 76 int64 db_handle;
82 77
83 // The content-disposition string from the response header. 78 // The content-disposition string from the response header.
84 std::string content_disposition; 79 std::string content_disposition;
85 80
86 // The mime type string from the response header (may be overridden). 81 // The mime type string from the response header (may be overridden).
87 std::string mime_type; 82 std::string mime_type;
88 83
89 // The value of the content type header sent with the downloaded item. It 84 // The value of the content type header sent with the downloaded item. It
(...skipping 12 matching lines...) Expand all
102 97
103 // The charset of the referring page where the download request comes from. 98 // The charset of the referring page where the download request comes from.
104 // It's used to construct a suggested filename. 99 // It's used to construct a suggested filename.
105 std::string referrer_charset; 100 std::string referrer_charset;
106 101
107 // The download file save info. 102 // The download file save info.
108 DownloadSaveInfo save_info; 103 DownloadSaveInfo save_info;
109 }; 104 };
110 105
111 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ 106 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | content/browser/download/download_create_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698