| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // The URL of the page. | 63 // The URL of the page. |
| 64 GURL url; | 64 GURL url; |
| 65 // The primary key/ID for this page in offline pages internal database. | 65 // The primary key/ID for this page in offline pages internal database. |
| 66 int64_t offline_id; | 66 int64_t offline_id; |
| 67 | 67 |
| 68 // The Client ID (external) related to the offline page. This is opaque | 68 // The Client ID (external) related to the offline page. This is opaque |
| 69 // to our system, but useful for users of offline pages who want to map | 69 // to our system, but useful for users of offline pages who want to map |
| 70 // their ids to our saved pages. | 70 // their ids to our saved pages. |
| 71 ClientId client_id; | 71 ClientId client_id; |
| 72 | 72 |
| 73 // Version of the offline page item. | |
| 74 int version; | |
| 75 // The file path to the archive with a local copy of the page. | 73 // The file path to the archive with a local copy of the page. |
| 76 base::FilePath file_path; | 74 base::FilePath file_path; |
| 77 // The size of the offline copy. | 75 // The size of the offline copy. |
| 78 int64_t file_size; | 76 int64_t file_size; |
| 79 // The time when the offline archive was created. | 77 // The time when the offline archive was created. |
| 80 base::Time creation_time; | 78 base::Time creation_time; |
| 81 // The time when the offline archive was last accessed. | 79 // The time when the offline archive was last accessed. |
| 82 base::Time last_access_time; | 80 base::Time last_access_time; |
| 83 // The time when the offline page was expired. | 81 // The time when the offline page was expired. |
| 84 base::Time expiration_time; | 82 base::Time expiration_time; |
| 85 // Number of times that the offline archive has been accessed. | 83 // Number of times that the offline archive has been accessed. |
| 86 int access_count; | 84 int access_count; |
| 87 // The title of the page at the time it was saved. | 85 // The title of the page at the time it was saved. |
| 88 base::string16 title; | 86 base::string16 title; |
| 89 // Flags about the state and behavior of the offline page. | 87 // Flags about the state and behavior of the offline page. |
| 90 Flags flags; | 88 Flags flags; |
| 91 }; | 89 }; |
| 92 | 90 |
| 93 } // namespace offline_pages | 91 } // namespace offline_pages |
| 94 | 92 |
| 95 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ | 93 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ |
| OLD | NEW |