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

Side by Side Diff: components/offline_pages/core/prefetch/store/cleanup_zombies_store_command.h

Issue 2920083002: Prefetching: Introduce store commands abstractions to be used by tasks. (Closed)
Patch Set: Added TODO for NWake Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698