OLD | NEW |
| (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 package org.chromium.chrome.browser.offlinepages; | |
6 | |
7 import org.chromium.base.Callback; | |
8 import org.chromium.chrome.browser.offlinepages.interfaces.BackgroundSchedulerPr
ocessor; | |
9 | |
10 /** | |
11 * Implementation of the scheduler bridge class that defers to the static backgr
ound scheduler | |
12 * bridge. | |
13 */ | |
14 public class BackgroundSchedulerProcessorImpl implements BackgroundSchedulerProc
essor { | |
15 @Override | |
16 public boolean startScheduledProcessing( | |
17 DeviceConditions deviceConditions, Callback<Boolean> callback) { | |
18 return BackgroundSchedulerBridge.startScheduledProcessing(deviceConditio
ns, callback); | |
19 } | |
20 | |
21 @Override | |
22 public boolean stopScheduledProcessing() { | |
23 return BackgroundSchedulerBridge.stopScheduledProcessing(); | |
24 } | |
25 } | |
OLD | NEW |