Chromium Code Reviews| 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_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 | 45 |
| 46 // The URL that referred us. | 46 // The URL that referred us. |
| 47 GURL referrer_url; | 47 GURL referrer_url; |
| 48 | 48 |
| 49 // The URL of the tab that started us. | 49 // The URL of the tab that started us. |
| 50 GURL tab_url; | 50 GURL tab_url; |
| 51 | 51 |
| 52 // The referrer URL of the tab that started us. | 52 // The referrer URL of the tab that started us. |
| 53 GURL tab_referrer_url; | 53 GURL tab_referrer_url; |
| 54 | 54 |
| 55 // Site URL for the site instance that initiated the download. | |
|
svaldez
2016/05/05 14:23:27
nit: Same order as elsewhere (referrer->site_insta
asanka
2016/05/05 17:38:05
Done.
| |
| 56 GURL site_instance_url; | |
| 57 | |
| 55 // The time when the download started. | 58 // The time when the download started. |
| 56 base::Time start_time; | 59 base::Time start_time; |
| 57 | 60 |
| 58 // The total download size. | 61 // The total download size. |
| 59 int64_t total_bytes; | 62 int64_t total_bytes; |
| 60 | 63 |
| 61 // True if the download was initiated by user action. | 64 // True if the download was initiated by user action. |
| 62 bool has_user_gesture; | 65 bool has_user_gesture; |
| 63 | 66 |
| 64 ui::PageTransition transition_type; | 67 ui::PageTransition transition_type; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 // For continuing a download, the ETag of the file. | 109 // For continuing a download, the ETag of the file. |
| 107 std::string etag; | 110 std::string etag; |
| 108 | 111 |
| 109 private: | 112 private: |
| 110 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); | 113 DISALLOW_COPY_AND_ASSIGN(DownloadCreateInfo); |
| 111 }; | 114 }; |
| 112 | 115 |
| 113 } // namespace content | 116 } // namespace content |
| 114 | 117 |
| 115 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ | 118 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_CREATE_INFO_H_ |
| OLD | NEW |