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/background/pick_request_task_factory.h

Issue 2473553004: Request Picker task (Closed)
Patch Set: CR feedback per EStade, FGorski, and DougArnett Created 4 years, 1 month 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_PICK_REQUEST_TASK_FACTORY_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_FACTORY_H_
7
8 #include <cstdint>
fgorski 2016/11/10 19:15:50 stdint.h is what chromium uses for this.
Pete Williamson 2016/11/10 23:43:25 Done.
9 #include <set>
10
11 #include "components/offline_pages/background/pick_request_task.h"
12
13 namespace offline_pages {
14
15 class DeviceContitions;
16 class OfflinerPolicy;
17 class RequestCoordinatorEventLogger;
18 class RequestNotifier;
19 class RequestQueueStore;
20
21 class PickRequestTaskFactory {
22 public:
23 PickRequestTaskFactory(OfflinerPolicy* policy,
24 RequestNotifier* notifier,
25 RequestCoordinatorEventLogger* event_logger);
26
27 ~PickRequestTaskFactory();
28
29 std::unique_ptr<PickRequestTask> CreatePickerTask(
30 RequestQueueStore* store,
31 const PickRequestTask::RequestPickedCallback& picked_callback,
32 const PickRequestTask::RequestNotPickedCallback& not_picked_callback,
33 DeviceConditions& conditions,
34 std::set<int64_t>& disabled_requests);
35
36 private:
37 // Unowned pointer to the Policy
38 OfflinerPolicy* policy_;
39 // Unowned pointer to the notifier
40 RequestNotifier* notifier_;
41 // Unowned pointer to the EventLogger
42 RequestCoordinatorEventLogger* event_logger_;
43 };
44
45 } // namespace offline_pages
46
47 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PICK_REQUEST_TASK_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698