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

Unified Diff: components/offline_pages/background/pick_request_task_factory.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: update 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/background/pick_request_task_factory.cc
diff --git a/components/offline_pages/background/pick_request_task_factory.cc b/components/offline_pages/background/pick_request_task_factory.cc
deleted file mode 100644
index 8e3efad277491e542caf724f9e962792b053c172..0000000000000000000000000000000000000000
--- a/components/offline_pages/background/pick_request_task_factory.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/offline_pages/background/pick_request_task_factory.h"
-
-#include "components/offline_pages/background/offliner_policy.h"
-#include "components/offline_pages/background/request_coordinator_event_logger.h"
-#include "components/offline_pages/background/request_notifier.h"
-
-namespace offline_pages {
-
-// Capture the common parameters that we will need to make a pick task,
-// and use them when making tasks. Create this once each session, and
-// use it to build a picker task when needed.
-PickRequestTaskFactory::PickRequestTaskFactory(
- OfflinerPolicy* policy,
- RequestNotifier* notifier,
- RequestCoordinatorEventLogger* event_logger)
- : policy_(policy), notifier_(notifier), event_logger_(event_logger) {}
-
-PickRequestTaskFactory::~PickRequestTaskFactory() {}
-
-std::unique_ptr<PickRequestTask> PickRequestTaskFactory::CreatePickerTask(
- RequestQueueStore* store,
- const PickRequestTask::RequestPickedCallback& picked_callback,
- const PickRequestTask::RequestNotPickedCallback& not_picked_callback,
- DeviceConditions& conditions,
- std::set<int64_t>& disabled_requests) {
- std::unique_ptr<PickRequestTask> task(new PickRequestTask(
- store, policy_, notifier_, event_logger_, picked_callback,
- not_picked_callback, conditions, disabled_requests));
- return task;
-}
-
-} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698