OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_STORE_CLEANUP_ZOMBIES_STORE_COMMA
ND_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_STORE_CLEANUP_ZOMBIES_STORE_COMMA
ND_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/callback.h" |
| 12 #include "base/macros.h" |
| 13 #include "url/gurl.h" |
| 14 |
| 15 namespace offline_pages { |
| 16 |
| 17 // Cleans up URL entries in the Zombie state that are not being suggested by the |
| 18 // client anymore. |
| 19 class CleanupZombiesStoreCommand { |
| 20 public: |
| 21 CleanupZombiesStoreCommand(){}; |
| 22 virtual ~CleanupZombiesStoreCommand(){}; |
| 23 |
| 24 // Cleans up Zombie entries from the client's |name_space| except for the ones |
| 25 // whose URL is contained in |urls_to_keep|. |
| 26 virtual void Execute(const std::string& name_space, |
| 27 const std::vector<GURL>& urls_to_keep, |
| 28 base::OnceCallback<void()> callback) = 0; |
| 29 |
| 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(CleanupZombiesStoreCommand); |
| 32 }; |
| 33 |
| 34 } // namespace offline_pages |
| 35 |
| 36 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_STORE_CLEANUP_ZOMBIES_STORE_CO
MMAND_H_ |
OLD | NEW |