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

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

Issue 2343743002: [Offline pages] Updating the UpdateCallback in OPMStoreSQL (Closed)
Patch Set: Addressing final feedback Created 4 years, 3 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 int64_t file_size); 47 int64_t file_size);
48 OfflinePageItem(const GURL& url, 48 OfflinePageItem(const GURL& url,
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;
dewittj 2016/09/23 17:21:35 This should be documented; in particular, two Offl
58
57 // Gets a URL of the file under |file_path|. 59 // Gets a URL of the file under |file_path|.
58 GURL GetOfflineURL() const; 60 GURL GetOfflineURL() const;
59 61
60 // Returns whether the offline page is expired. 62 // Returns whether the offline page is expired.
61 bool IsExpired() const; 63 bool IsExpired() const;
62 64
63 // The URL of the page. 65 // The URL of the page.
64 GURL url; 66 GURL url;
65 // The primary key/ID for this page in offline pages internal database. 67 // The primary key/ID for this page in offline pages internal database.
66 int64_t offline_id; 68 int64_t offline_id;
(...skipping 17 matching lines...) Expand all
84 int access_count; 86 int access_count;
85 // The title of the page at the time it was saved. 87 // The title of the page at the time it was saved.
86 base::string16 title; 88 base::string16 title;
87 // Flags about the state and behavior of the offline page. 89 // Flags about the state and behavior of the offline page.
88 Flags flags; 90 Flags flags;
89 }; 91 };
90 92
91 } // namespace offline_pages 93 } // namespace offline_pages
92 94
93 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ 95 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698