| 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 f36526dcc7f3463bc56ad40c21c23eabe7755251..80208f0abe8a5b0931ceb92f90d52aa7a2b4563f 100644
|
| --- a/components/offline_pages/core/prefetch/prefetch_types.h
|
| +++ b/components/offline_pages/core/prefetch/prefetch_types.h
|
| @@ -5,9 +5,12 @@
|
| #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_TYPES_H_
|
| #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_TYPES_H_
|
|
|
| +#include <string>
|
| #include <vector>
|
| -#include "base/macros.h"
|
| +
|
| #include "base/time/time.h"
|
| +#include "components/offline_pages/core/client_id.h"
|
| +#include "url/gurl.h"
|
|
|
| namespace offline_pages {
|
|
|
| @@ -105,6 +108,20 @@ using PrefetchRequestFinishedCallback =
|
| base::Callback<void(PrefetchRequestStatus status,
|
| const std::vector<RenderPageInfo>& pages)>;
|
|
|
| +// Holds information about a new URL to be prefetched.
|
| +struct PrefetchURL {
|
| + PrefetchURL(const ClientId& client_id, const GURL& url)
|
| + : client_id(client_id), url(url) {}
|
| +
|
| + // Client provided ID to allow the matching of URLs to the respective work
|
| + // item in the prefetching system. It can be anything useful to identify the
|
| + // page . It will not be used internally for de-duplication.
|
| + ClientId client_id;
|
| +
|
| + // This URL will be prefetched by the service.
|
| + GURL url;
|
| +};
|
| +
|
| } // namespace offline_pages
|
|
|
| #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_TYPES_H_
|
|
|