Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / offline_pages / offline_page_item.h
blobac9bcb81d1ed794147bfcb45a2aab4de46cfd8d4
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_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/files/file_path.h"
12 #include "base/strings/string16.h"
13 #include "base/time/time.h"
14 #include "url/gurl.h"
16 namespace offline_pages {
18 // Metadata of the offline page.
19 struct OfflinePageItem {
20 public:
21 OfflinePageItem();
22 OfflinePageItem(const GURL& url,
23 int64 bookmark_id,
24 const base::FilePath& file_path,
25 int64 file_size);
26 OfflinePageItem(const GURL& url,
27 int64 bookmark_id,
28 const base::FilePath& file_path,
29 int64 file_size,
30 const base::Time& creation_time);
31 ~OfflinePageItem();
33 // Gets a URL of the file under |file_path|.
34 GURL GetOfflineURL() const;
36 // The URL of the page.
37 GURL url;
38 // The Bookmark ID related to the offline page.
39 int64 bookmark_id;
40 // Version of the offline page item.
41 int version;
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.
45 int64 file_size;
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_