Chromium Code Reviews| Index: components/offline_pages/background/request_coordinator.cc |
| diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b8e9d069bdc71d874497ecf596c1bf6b2b743dfa |
| --- /dev/null |
| +++ b/components/offline_pages/background/request_coordinator.cc |
| @@ -0,0 +1,40 @@ |
| +// 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/request_coordinator.h" |
| + |
| +#include "components/offline_pages/background/scheduler.h" |
|
fgorski
2016/04/28 11:54:59
needed?
Pete Williamson
2016/04/28 20:22:03
Done.
|
| + |
| +// TODO: include file with SavePageRequest definition. |
| + |
| +namespace offline_pages { |
| + |
| +// TODO(dougarnett): How to inject Offliner factories and policy objects. |
| +RequestCoordinator::RequestCoordinator() { |
| + // Do setup as needed. |
| +} |
| + |
| +RequestCoordinator::~RequestCoordinator() { |
| + // Do cleanup as needed. |
| +} |
| + |
| +// Queues |request| to later load and save when system conditions allow. |
| +bool RequestCoordinator::SavePageLater(const SavePageRequest& request) { |
| + return true; |
| +} |
| + |
| +// Starts processing of one or more queued save page later requests. |
| +// Returns whether processing was started and that caller should expect |
| +// a callback. If processing was already active, returns false. |
| +bool RequestCoordinator::StartProcessing( |
| + const ProcessingDoneCallback& callback) { |
| + return false; |
| +} |
| + |
| +// Stops the current request processing if active. |
| +void RequestCoordinator::StopProcessing() { |
| + |
| +} |
| + |
| +} // namespace offline_pages |