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

Unified Diff: chrome/browser/android/offline_pages/background_loader_offliner.h

Issue 2818783002: [Offline pages]: Implement background loader to save on last retry, and record last retry success U… (Closed)
Patch Set: Resolving code review comments Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/background_loader_offliner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/background_loader_offliner.h
diff --git a/chrome/browser/android/offline_pages/background_loader_offliner.h b/chrome/browser/android/offline_pages/background_loader_offliner.h
index 8d63c3c306e71945fdbae355e8101b06d0fa131a..25378b73e41864d594e793efe253f50f4c63f74d 100644
--- a/chrome/browser/android/offline_pages/background_loader_offliner.h
+++ b/chrome/browser/android/offline_pages/background_loader_offliner.h
@@ -84,6 +84,8 @@ class BackgroundLoaderOffliner : public Offliner,
content::BrowserContext* browser_context_;
// Not owned.
OfflinePageModel* offline_page_model_;
+ // Not owned.
+ const OfflinerPolicy* policy_;
// Tracks pending request, if any.
std::unique_ptr<SavePageRequest> pending_request_;
// Handles determining when a page should be snapshotted.
@@ -105,6 +107,10 @@ class BackgroundLoaderOffliner : public Offliner,
long page_delay_ms_;
// Network bytes loaded.
int64_t network_bytes_;
+ // Whether the low bar of snapshot quality has been met.
+ bool is_low_bar_met_;
+ // Whether the snapshot is on the last retry.
+ bool did_snapshot_on_last_retry_;
// Callback for cancel.
CancelCallback cancel_callback_;
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/background_loader_offliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698