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

Unified Diff: components/offline_pages/offline_page_item.h

Issue 2040163003: Refactors offline page tab helper to stash the offline page item on redirect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@single-result
Patch Set: Add a dedicated test. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/offline_page_item.h
diff --git a/components/offline_pages/offline_page_item.h b/components/offline_pages/offline_page_item.h
index 469c822212d4b9a5ecdf582c834920baebb3489b..f8970a5758d84ae1c719f07bc9566e0f24a69901 100644
--- a/components/offline_pages/offline_page_item.h
+++ b/components/offline_pages/offline_page_item.h
@@ -11,6 +11,7 @@
#include "base/files/file_path.h"
#include "base/strings/string16.h"
+#include "base/supports_user_data.h"
#include "base/time/time.h"
#include "url/gurl.h"
@@ -29,7 +30,7 @@ struct ClientId {
};
// Metadata of the offline page.
-struct OfflinePageItem {
+struct OfflinePageItem : public base::SupportsUserData::Data {
public:
// Note that this should match with Flags enum in offline_pages.proto.
enum Flags {
@@ -50,7 +51,7 @@ struct OfflinePageItem {
int64_t file_size,
const base::Time& creation_time);
OfflinePageItem(const OfflinePageItem& other);
- ~OfflinePageItem();
+ ~OfflinePageItem() override;
// Gets a URL of the file under |file_path|.
GURL GetOfflineURL() const;

Powered by Google App Engine
This is Rietveld 408576698