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

Unified Diff: components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h

Issue 2914703002: [Offline Prefetch] Backoff support for PrefetchBackgroundTask (Closed)
Patch Set: Address feedback Created 3 years, 7 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/core/prefetch/prefetch_dispatcher_impl.h
diff --git a/components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h b/components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h
index e826d0a9f9ce4b4996f53f5c6e940f6150a85618..c7e043caaf3bbd73204499345cf65b166806f0fc 100644
--- a/components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h
+++ b/components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h
@@ -21,9 +21,14 @@ class PrefetchDispatcherImpl : public PrefetchDispatcher {
void RemoveAllUnprocessedPrefetchURLs(const std::string& name_space) override;
void RemovePrefetchURLsByClientId(const ClientId& client_id) override;
void BeginBackgroundTask(std::unique_ptr<ScopedBackgroundTask> task) override;
- void StopBackgroundTask(ScopedBackgroundTask* task) override;
+ void StopBackgroundTask() override;
+ void RequestFinishBackgroundTaskForTest() override;
private:
+ void DisposeTask();
+
+ std::unique_ptr<ScopedBackgroundTask> task_;
+
DISALLOW_COPY_AND_ASSIGN(PrefetchDispatcherImpl);
};

Powered by Google App Engine
This is Rietveld 408576698