Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: components/offline_pages/offline_page_item.h

Issue 2284933002: Remove OfflineURL from offline page (Closed)
Patch Set: Remove accidentally added new file during rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 57 bool operator==(const OfflinePageItem& other) const;
58 58
59 // Gets a URL of the file under |file_path|.
60 GURL GetOfflineURL() const;
61
62 // Returns whether the offline page is expired. 59 // Returns whether the offline page is expired.
63 bool IsExpired() const; 60 bool IsExpired() const;
64 61
65 // The URL of the page. 62 // The URL of the page.
66 GURL url; 63 GURL url;
67 // The primary key/ID for this page in offline pages internal database. 64 // The primary key/ID for this page in offline pages internal database.
68 int64_t offline_id; 65 int64_t offline_id;
69 66
70 // The Client ID (external) related to the offline page. This is opaque 67 // The Client ID (external) related to the offline page. This is opaque
71 // to our system, but useful for users of offline pages who want to map 68 // to our system, but useful for users of offline pages who want to map
(...skipping 14 matching lines...) Expand all
86 int access_count; 83 int access_count;
87 // The title of the page at the time it was saved. 84 // The title of the page at the time it was saved.
88 base::string16 title; 85 base::string16 title;
89 // Flags about the state and behavior of the offline page. 86 // Flags about the state and behavior of the offline page.
90 Flags flags; 87 Flags flags;
91 }; 88 };
92 89
93 } // namespace offline_pages 90 } // namespace offline_pages
94 91
95 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ 92 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698