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

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

Issue 2889453003: [Offline Prefetech] Send GetOperationReqest to the server (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_types.h
diff --git a/components/offline_pages/core/prefetch/prefetch_types.h b/components/offline_pages/core/prefetch/prefetch_types.h
index 98dc9126b1fae0fc1bea3b656f280da7646333d2..1569917aebe4a09184c52c6ee6249f4024ceeca4 100644
--- a/components/offline_pages/core/prefetch/prefetch_types.h
+++ b/components/offline_pages/core/prefetch/prefetch_types.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_TYPES_H_
#define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_TYPES_H_
+#include <vector>
#include "base/macros.h"
#include "base/time/time.h"
@@ -59,6 +60,11 @@ struct RenderPageInfo {
base::Time render_time;
};
+// Callback invoked upon completion of a prefetch request.
+using PrefetchRequestFinishedCallback =
+ base::Callback<void(PrefetchRequestStatus status,
+ const std::vector<RenderPageInfo>& pages)>;
+
} // namespace offline_pages
#endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698