summaryrefslogtreecommitdiffstats
path: root/components/offline_pages/offline_page_item.h
diff options
context:
space:
mode:
authorfgorski <fgorski@chromium.org>2015-08-06 14:43:48 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-06 21:44:29 +0000
commitab60e095f549876f7d9bde834387f3da37316e70 (patch)
tree809192a6eeed46b1e7eb95a1734cc1f6940a2b04 /components/offline_pages/offline_page_item.h
parent4fb6b6f46c01262f37c7a170f3de2366f4d8cedf (diff)
downloadchromium_src-ab60e095f549876f7d9bde834387f3da37316e70.zip
chromium_src-ab60e095f549876f7d9bde834387f3da37316e70.tar.gz
chromium_src-ab60e095f549876f7d9bde834387f3da37316e70.tar.bz2
[Offline pages] Adding bookmark ID to offline page (removing title)
This change is necessary, as title is already stored by the bookmark, while bookmark ID is how all the filtering and matching is done by the model and UI. Without this update any filtering logic will be very inefficient. BUG=491352 Review URL: https://codereview.chromium.org/1262743006 Cr-Commit-Position: refs/heads/master@{#342206}
Diffstat (limited to 'components/offline_pages/offline_page_item.h')
-rw-r--r--components/offline_pages/offline_page_item.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/offline_pages/offline_page_item.h b/components/offline_pages/offline_page_item.h
index 99ed8a4..ac9bcb8 100644
--- a/components/offline_pages/offline_page_item.h
+++ b/components/offline_pages/offline_page_item.h
@@ -20,11 +20,11 @@ struct OfflinePageItem {
public:
OfflinePageItem();
OfflinePageItem(const GURL& url,
- const base::string16& title,
+ int64 bookmark_id,
const base::FilePath& file_path,
int64 file_size);
OfflinePageItem(const GURL& url,
- const base::string16& title,
+ int64 bookmark_id,
const base::FilePath& file_path,
int64 file_size,
const base::Time& creation_time);
@@ -35,8 +35,8 @@ struct OfflinePageItem {
// The URL of the page.
GURL url;
- // The title of the page.
- base::string16 title;
+ // The Bookmark ID related to the offline page.
+ int64 bookmark_id;
// Version of the offline page item.
int version;
// The file path to the archive with a local copy of the page.