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

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

Issue 2889453003: [Offline Prefetech] Send GetOperationReqest to the server (Closed)
Patch Set: Rebase 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 c15b6a0e014dfa0d9e6dc45b2514ed8180e8e8c7..f36526dcc7f3463bc56ad40c21c23eabe7755251 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"
@@ -99,6 +100,11 @@ enum class PrefetchItemErrorCode {
EXPIRED,
};
+// 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