| Index: components/offline_pages/core/prefetch/store/prefetch_store_command_factory.h
|
| diff --git a/components/offline_pages/core/prefetch/store/prefetch_store_command_factory.h b/components/offline_pages/core/prefetch/store/prefetch_store_command_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bd83d4e37c26f5c6ce21598402d81172348fbdcb
|
| --- /dev/null
|
| +++ b/components/offline_pages/core/prefetch/store/prefetch_store_command_factory.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_STORE_COMMAND_FACTORY_H_
|
| +#define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_STORE_COMMAND_FACTORY_H_
|
| +
|
| +#include <memory>
|
| +#include <vector>
|
| +
|
| +#include "base/callback.h"
|
| +#include "components/offline_pages/core/prefetch/store/add_urls_store_command.h"
|
| +#include "components/offline_pages/core/prefetch/store/cleanup_zombies_store_command.h"
|
| +
|
| +namespace offline_pages {
|
| +
|
| +// The abstract factory for prefetching store commands. This API is used by the
|
| +// dispatcher to provided needed commands to each prefetching pipeline task it
|
| +// creates.
|
| +class PrefetchStoreCommandFactory {
|
| + public:
|
| + virtual std::unique_ptr<AddUrlsStoreCommand> createAddUrls() = 0;
|
| +
|
| + virtual std::unique_ptr<CleanupZombiesStoreCommand>
|
| + createCleanupZombies() = 0;
|
| +};
|
| +
|
| +} // namespace offline_pages
|
| +
|
| +#endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_STORE_COMMAND_FACTORY_H_
|
|
|