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

Side by Side Diff: components/offline_pages/background/request_notifier.h

Issue 2233493003: [Offline Pages] Remove expired requests from the queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing build. Created 4 years, 4 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_NOTIFIER_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_NOTIFIER_H_
7
8 namespace offline_pages {
9
10 class SavePageRequest;
11
12 class RequestNotifier {
13 public:
14 // Status to return for failed notifications.
15 // TODO(petewil): Can we find a better name for this enum?
16 enum class SavePageStatus {
17 SUCCESS,
18 PRERENDER_FAILURE,
19 FOREGROUND_CANCELED,
20 SAVE_FAILED,
21 EXPIRED,
22 RETRY_COUNT_EXCEEDED,
23 REMOVED,
24 };
25
26 // Notifies observers that |request| has been added.
27 virtual void NotifyAdded(const SavePageRequest& request) = 0;
28
29 // Notifies observers that |request| has been completed with |status|.
30 virtual void NotifyCompleted(const SavePageRequest& request,
31 SavePageStatus status) = 0;
32
33 // Notifies observers that |request| has been changed.
34 virtual void NotifyChanged(const SavePageRequest& request) = 0;
35 };
36
37 } // namespace offline_pages
38
39 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_NOTIFIER_H_
OLDNEW
« no previous file with comments | « components/offline_pages/background/request_coordinator.cc ('k') | components/offline_pages/background/request_picker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698