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

Side by Side Diff: components/offline_pages/background_request_coordinator.h

Issue 1922533003: Defines initial inner circle of interfaces for background offlining. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback updates (does not yet rename Coordinator though). Created 4 years, 8 months 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 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_
7
8 namespace offline_pages {
9
10 class SavePageRequest;
11
12 // Coordinates queueing and processing save page later requests.
13 class BackgroundRequestCoordinator {
14 public:
15 // Callback to report when the processing of a triggered task is complete.
16 typedef base::Callback<void()> ProcessingDoneCallback;
17
18 virtual ~BackgroundRequestCoordinator() {}
19
20 // Queues |request| to later load and save when system conditions allow.
21 virtual bool SavePageLater(const SavePageRequest& request) = 0;
22
23 // Starts processing of one or more queued save page later requests.
Dmitry Titov 2016/04/26 00:20:31 Consider adding comments on: - can StartProcessing
dougarnett 2016/04/26 15:50:38 Please check updated wording on Start/Stop. Btw,
24 virtual void StartProcessing(const ProcessingDoneCallback& callback) = 0;
25
26 // Stops the current request processing if active.
27 virtual void StopProcessing() = 0;
28
29 // TODO(dougarnett): add policy support methods.
30 };
31
32 } // namespace offline_pages
33
34 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_
OLDNEW
« no previous file with comments | « components/offline_pages/background_offliner.h ('k') | components/offline_pages/background_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698