Add a stub __cxa_demangle to disable LLVM's demangler.
[chromium-blink-merge.git] / components / offline_pages / offline_page_item.h
blobf00e503f112ffaeeabe269bcf964b4a4775bd155
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/time/time.h"
13 #include "url/gurl.h"
15 namespace offline_pages {
17 // Metadata of the offline page.
18 struct OfflinePageItem {
19 public:
20 OfflinePageItem();
21 OfflinePageItem(const GURL& url,
22 const std::string& title,
23 const base::FilePath& file_path,
24 int64 file_size);
25 OfflinePageItem(const GURL& url,
26 const std::string& title,
27 const base::FilePath& file_path,
28 int64 file_size,
29 const base::Time& creation_time);
30 ~OfflinePageItem();
32 // Gets a URL of the file under |file_path|.
33 GURL GetOfflineURL();
35 // The URL of the page.
36 GURL url;
37 // The title of the page.
38 std::string title;
39 // Version of the offline page item.
40 int version;
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.
44 int64 file_size;
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_