| 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 17 matching lines...) Expand all Loading... |
| 28 OfflinePageItem(); | 28 OfflinePageItem(); |
| 29 OfflinePageItem(const GURL& url, | 29 OfflinePageItem(const GURL& url, |
| 30 int64_t bookmark_id, | 30 int64_t bookmark_id, |
| 31 const base::FilePath& file_path, | 31 const base::FilePath& file_path, |
| 32 int64_t file_size); | 32 int64_t file_size); |
| 33 OfflinePageItem(const GURL& url, | 33 OfflinePageItem(const GURL& url, |
| 34 int64_t bookmark_id, | 34 int64_t bookmark_id, |
| 35 const base::FilePath& file_path, | 35 const base::FilePath& file_path, |
| 36 int64_t file_size, | 36 int64_t file_size, |
| 37 const base::Time& creation_time); | 37 const base::Time& creation_time); |
| 38 OfflinePageItem(const OfflinePageItem& other); |
| 38 ~OfflinePageItem(); | 39 ~OfflinePageItem(); |
| 39 | 40 |
| 40 // Gets a URL of the file under |file_path|. | 41 // Gets a URL of the file under |file_path|. |
| 41 GURL GetOfflineURL() const; | 42 GURL GetOfflineURL() const; |
| 42 | 43 |
| 43 // Returns true if the page has been marked for deletion. This allows an undo | 44 // Returns true if the page has been marked for deletion. This allows an undo |
| 44 // in a short time period. After that, the marked page will be deleted. | 45 // in a short time period. After that, the marked page will be deleted. |
| 45 bool IsMarkedForDeletion() const; | 46 bool IsMarkedForDeletion() const; |
| 46 | 47 |
| 47 // Sets/clears the mark for deletion. | 48 // Sets/clears the mark for deletion. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 64 base::Time last_access_time; | 65 base::Time last_access_time; |
| 65 // Number of times that the offline archive has been accessed. | 66 // Number of times that the offline archive has been accessed. |
| 66 int access_count; | 67 int access_count; |
| 67 // Flags about the state and behavior of the offline page. | 68 // Flags about the state and behavior of the offline page. |
| 68 Flags flags; | 69 Flags flags; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace offline_pages | 72 } // namespace offline_pages |
| 72 | 73 |
| 73 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ | 74 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ |
| OLD | NEW |