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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_
10 #include "base/basictypes.h"
11 #include "base/files/file_path.h"
12 #include "base/strings/string16.h"
13 #include "base/time/time.h"
16 namespace offline_pages
{
18 // Metadata of the offline page.
19 struct OfflinePageItem
{
22 OfflinePageItem(const GURL
& url
,
24 const base::FilePath
& file_path
,
26 OfflinePageItem(const GURL
& url
,
28 const base::FilePath
& file_path
,
30 const base::Time
& creation_time
);
33 // Gets a URL of the file under |file_path|.
34 GURL
GetOfflineURL() const;
36 // The URL of the page.
38 // The Bookmark ID related to the offline page.
40 // Version of the offline page item.
42 // The file path to the archive with a local copy of the page.
43 base::FilePath file_path
;
44 // The size of the offline copy.
46 // The time when the offline archive was created.
47 base::Time creation_time
;
48 // The time when the offline archive was last accessed.
49 base::Time last_access_time
;
52 } // namespace offline_pages
54 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_