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

Side by Side Diff: components/offline_pages/background/cleanup_task_factory.h

Issue 2543093002: Split the RequestPicker task into two separate tasks. (Closed)
Patch Set: CR feedback per FGorski and DougArnett Created 4 years 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 2016 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_BACKGROUND_CLEANUP_TASK_FACTORY_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_CLEANUP_TASK_FACTORY_H_
7
8 #include <stdint.h>
9
10 #include <set>
11
12 #include "components/offline_pages/background/cleanup_task.h"
13
14 namespace offline_pages {
15
16 class OfflinerPolicy;
17 class RequestCoordinatorEventLogger;
18 class RequestNotifier;
19 class RequestQueueStore;
20
21 class CleanupTaskFactory {
22 public:
23 CleanupTaskFactory(OfflinerPolicy* policy,
24 RequestNotifier* notifier,
25 RequestCoordinatorEventLogger* event_logger);
26
27 ~CleanupTaskFactory();
28
29 std::unique_ptr<CleanupTask> CreateCleanupTask(RequestQueueStore* store,
30 int64_t current_request_id);
31
32 private:
33 // Unowned pointer to the Policy
34 OfflinerPolicy* policy_;
35 // Unowned pointer to the notifier
36 RequestNotifier* notifier_;
37 // Unowned pointer to the EventLogger
38 RequestCoordinatorEventLogger* event_logger_;
39 };
40
41 } // namespace offline_pages
42
43 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_CLEANUP_TASK_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698