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

Side by Side Diff: components/offline_pages/background/pick_request_task_builder.cc

Issue 2473553004: Request Picker task (Closed)
Patch Set: CR fixes per 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 #include "components/offline_pages/background/pick_request_task_builder.h"
6
7 #include "components/offline_pages/background/request_coordinator_event_logger.h "
8
9 namespace offline_pages {
10
11 PickRequestTaskBuilder::PickRequestTaskBuilder(
12 OfflinerPolicy* policy,
13 RequestNotifier* notifier,
14 RequestCoordinatorEventLogger* event_logger)
15 : policy_(policy), notifier_(notifier), event_logger_(event_logger) {}
16
17 PickRequestTaskBuilder::~PickRequestTaskBuilder() {}
18
19 std::unique_ptr<PickRequestTask> PickRequestTaskBuilder::CreatePickerTask(
20 RequestQueue* queue,
21 PickRequestTask::RequestPickedCallback picked_callback,
22 PickRequestTask::RequestNotPickedCallback not_picked_callback,
23 DeviceConditions* conditions,
24 std::set<int64_t>& disabled_requests) {
25 std::unique_ptr<PickRequestTask> task;
26 task.reset(new PickRequestTask(queue, policy_, notifier_, event_logger_,
27 picked_callback, not_picked_callback,
28 conditions, disabled_requests));
29 return task;
30 }
31
32 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698