OLD | NEW |
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 // Download struct used for informing and querying the download system's | 5 // Download struct used for informing and querying the download system's |
6 // persitent store. | 6 // persitent store. |
7 | 7 |
8 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_PERSISTENT_STORE_INFO_H_ | 8 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_PERSISTENT_STORE_INFO_H_ |
9 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_PERSISTENT_STORE_INFO_H_ | 9 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_PERSISTENT_STORE_INFO_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "content/common/content_export.h" |
16 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
17 | 18 |
18 class DownloadItem; | 19 class DownloadItem; |
19 | 20 |
20 // Contains the information that is stored in the download system's persistent | 21 // Contains the information that is stored in the download system's persistent |
21 // store (or refers to it). Managed by the DownloadItem. | 22 // store (or refers to it). Managed by the DownloadItem. |
22 struct DownloadPersistentStoreInfo { | 23 struct CONTENT_EXPORT DownloadPersistentStoreInfo { |
23 // TODO(ahendrickson) -- Reduce the number of constructors. | 24 // TODO(ahendrickson) -- Reduce the number of constructors. |
24 DownloadPersistentStoreInfo(); | 25 DownloadPersistentStoreInfo(); |
25 DownloadPersistentStoreInfo(const FilePath& path, | 26 DownloadPersistentStoreInfo(const FilePath& path, |
26 const GURL& url, | 27 const GURL& url, |
27 const GURL& referrer, | 28 const GURL& referrer, |
28 const base::Time& start, | 29 const base::Time& start, |
29 int64 received, | 30 int64 received, |
30 int64 total, | 31 int64 total, |
31 int32 download_state, | 32 int32 download_state, |
32 int64 handle); | 33 int64 handle); |
(...skipping 19 matching lines...) Expand all Loading... |
52 int64 total_bytes; | 53 int64 total_bytes; |
53 | 54 |
54 // The current state of the download. | 55 // The current state of the download. |
55 int32 state; | 56 int32 state; |
56 | 57 |
57 // The handle of the download in the database. | 58 // The handle of the download in the database. |
58 int64 db_handle; | 59 int64 db_handle; |
59 }; | 60 }; |
60 | 61 |
61 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_PERSISTENT_STORE_INFO_H_ | 62 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_PERSISTENT_STORE_INFO_H_ |
OLD | NEW |