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 CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "content/public/browser/download_save_info.h" | 13 #include "content/public/browser/download_save_info.h" |
14 #include "content/public/common/referrer.h" | 14 #include "content/public/common/referrer.h" |
15 #include "googleurl/src/gurl.h" | |
16 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 16 #include "url/gurl.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class DownloadItem; | 20 class DownloadItem; |
21 class ResourceContext; | 21 class ResourceContext; |
22 class ResourceDispatcherHost; | 22 class ResourceDispatcherHost; |
23 class WebContents; | 23 class WebContents; |
24 | 24 |
25 // Pass an instance of DownloadUrlParameters to DownloadManager::DownloadUrl() | 25 // Pass an instance of DownloadUrlParameters to DownloadManager::DownloadUrl() |
26 // to download the content at |url|. All parameters with setters are optional. | 26 // to download the content at |url|. All parameters with setters are optional. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 ResourceContext* resource_context_; | 156 ResourceContext* resource_context_; |
157 DownloadSaveInfo save_info_; | 157 DownloadSaveInfo save_info_; |
158 GURL url_; | 158 GURL url_; |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters); | 160 DISALLOW_COPY_AND_ASSIGN(DownloadUrlParameters); |
161 }; | 161 }; |
162 | 162 |
163 } // namespace content | 163 } // namespace content |
164 | 164 |
165 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ | 165 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_URL_PARAMETERS_H_ |
OLD | NEW |