Chromium Code Reviews| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 int64_t file_size); | 47 int64_t file_size); |
| 48 OfflinePageItem(const GURL& url, | 48 OfflinePageItem(const GURL& url, |
| 49 int64_t offline_id, | 49 int64_t offline_id, |
| 50 const ClientId& client_id, | 50 const ClientId& client_id, |
| 51 const base::FilePath& file_path, | 51 const base::FilePath& file_path, |
| 52 int64_t file_size, | 52 int64_t file_size, |
| 53 const base::Time& creation_time); | 53 const base::Time& creation_time); |
| 54 OfflinePageItem(const OfflinePageItem& other); | 54 OfflinePageItem(const OfflinePageItem& other); |
| 55 ~OfflinePageItem(); | 55 ~OfflinePageItem(); |
| 56 | 56 |
| 57 bool operator==(const OfflinePageItem& other) const; | |
|
dewittj
2016/09/23 17:21:35
This should be documented; in particular, two Offl
| |
| 58 | |
| 57 // Gets a URL of the file under |file_path|. | 59 // Gets a URL of the file under |file_path|. |
| 58 GURL GetOfflineURL() const; | 60 GURL GetOfflineURL() const; |
| 59 | 61 |
| 60 // Returns whether the offline page is expired. | 62 // Returns whether the offline page is expired. |
| 61 bool IsExpired() const; | 63 bool IsExpired() const; |
| 62 | 64 |
| 63 // The URL of the page. | 65 // The URL of the page. |
| 64 GURL url; | 66 GURL url; |
| 65 // The primary key/ID for this page in offline pages internal database. | 67 // The primary key/ID for this page in offline pages internal database. |
| 66 int64_t offline_id; | 68 int64_t offline_id; |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 84 int access_count; | 86 int access_count; |
| 85 // The title of the page at the time it was saved. | 87 // The title of the page at the time it was saved. |
| 86 base::string16 title; | 88 base::string16 title; |
| 87 // Flags about the state and behavior of the offline page. | 89 // Flags about the state and behavior of the offline page. |
| 88 Flags flags; | 90 Flags flags; |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 } // namespace offline_pages | 93 } // namespace offline_pages |
| 92 | 94 |
| 93 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ | 95 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ |
| OLD | NEW |