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

Side by Side Diff: components/offline_pages/core/background/scheduler.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: more rebase Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_SCHEDULER_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_SCHEDULER_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_SCHEDULER_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_SCHEDULER_H_
7 7
8 namespace offline_pages { 8 namespace offline_pages {
9 9
10 // Interface of a class responsible for scheduling a task to initiate 10 // Interface of a class responsible for scheduling a task to initiate
11 // processing of background offlining requests upon select system conditions 11 // processing of background offlining requests upon select system conditions
12 // (such as having a network connection). 12 // (such as having a network connection).
13 class Scheduler { 13 class Scheduler {
14 public: 14 public:
15 // Defines a set of system conditions to trigger background processing. 15 // Defines a set of system conditions to trigger background processing.
16 struct TriggerConditions { 16 struct TriggerConditions {
(...skipping 20 matching lines...) Expand all
37 // not overwrite existing tasks. 37 // not overwrite existing tasks.
38 virtual void BackupSchedule(const TriggerConditions& trigger_conditions, 38 virtual void BackupSchedule(const TriggerConditions& trigger_conditions,
39 long delay_in_seconds) = 0; 39 long delay_in_seconds) = 0;
40 40
41 // Unschedules the currently scheduled task, if any. 41 // Unschedules the currently scheduled task, if any.
42 virtual void Unschedule() = 0; 42 virtual void Unschedule() = 0;
43 }; 43 };
44 44
45 } // namespace offline_pages 45 } // namespace offline_pages
46 46
47 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_SCHEDULER_H_ 47 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698