OLD | NEW |
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 CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 IOData(); | 128 IOData(); |
129 ~IOData(); | 129 ~IOData(); |
130 | 130 |
131 GURL url; | 131 GURL url; |
132 string16 filename; | 132 string16 filename; |
133 bool save_as; | 133 bool save_as; |
134 base::ListValue* extra_headers; | 134 base::ListValue* extra_headers; |
135 std::string method; | 135 std::string method; |
136 std::string post_body; | 136 std::string post_body; |
137 ResourceDispatcherHost* rdh; | 137 ResourceDispatcherHost* rdh; |
138 const content::ResourceContext* resource_context; | 138 content::ResourceContext* resource_context; |
139 int render_process_host_id; | 139 int render_process_host_id; |
140 int render_view_host_routing_id; | 140 int render_view_host_routing_id; |
141 }; | 141 }; |
142 void BeginDownloadOnIOThread(); | 142 void BeginDownloadOnIOThread(); |
143 void OnStarted(content::DownloadId dl_id, net::Error error); | 143 void OnStarted(content::DownloadId dl_id, net::Error error); |
144 | 144 |
145 scoped_ptr<IOData> iodata_; | 145 scoped_ptr<IOData> iodata_; |
146 | 146 |
147 DISALLOW_COPY_AND_ASSIGN(DownloadsDownloadFunction); | 147 DISALLOW_COPY_AND_ASSIGN(DownloadsDownloadFunction); |
148 }; | 148 }; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 typedef base::hash_map<int, content::DownloadItem*> ItemMap; | 316 typedef base::hash_map<int, content::DownloadItem*> ItemMap; |
317 typedef std::set<int> DownloadIdSet; | 317 typedef std::set<int> DownloadIdSet; |
318 | 318 |
319 Profile* profile_; | 319 Profile* profile_; |
320 content::DownloadManager* manager_; | 320 content::DownloadManager* manager_; |
321 DownloadIdSet downloads_; | 321 DownloadIdSet downloads_; |
322 | 322 |
323 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); | 323 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); |
324 }; | 324 }; |
325 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ | 325 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ |
OLD | NEW |