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/time/time.h"
15 namespace offline_pages
{
17 // Metadata of the offline page.
18 struct OfflinePageItem
{
21 OfflinePageItem(const GURL
& url
,
22 const std::string
& title
,
23 const base::FilePath
& file_path
,
25 OfflinePageItem(const GURL
& url
,
26 const std::string
& title
,
27 const base::FilePath
& file_path
,
29 const base::Time
& creation_time
);
32 // Gets a URL of the file under |file_path|.
35 // The URL of the page.
37 // The title of the page.
39 // Version of the offline page item.
41 // The file path to the archive with a local copy of the page.
42 base::FilePath file_path
;
43 // The size of the offline copy.
45 // The time when the offline archive was created.
46 base::Time creation_time
;
47 // The time when the offline archive was last accessed.
48 base::Time last_access_time
;
51 } // namespace offline_pages
53 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_