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

Side by Side Diff: components/offline_pages/core/prefetch/prefetch_constants.h

Issue 2872933003: Add base persistence interfaces for Prefetching Offline Pages. (Closed)
Patch Set: Addressed comments and other changes; added constants file. Created 3 years, 7 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 2017 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_CORE_PREFETCH_PREFETCH_CONSTANTS_H_
6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_CONSTANTS_H_
7
8 namespace offline_pages {
9
10 // List of states a prefetch item can be at during its progress through the
11 // prefetching process. They follow somewhat the order below but some states
12 // might be skipped.
13 enum class PrefetchItemState {
fgorski 2017/05/10 05:02:53 I don't thing my original problem was addressed. H
carlosk 2017/05/10 22:48:53 Done. I didn't understand your initial concern. P
14 // New request just received from the client.
15 NEW_REQ,
16 // The item has been included in a GeneratePageBundle RPC requesting the
17 // creation of an archive for its URL.
18 SENT_GPB,
19 // The archive was not immediately available (cached) upon the request and
20 // is now waiting for a GCM message notifying of its archiving operation
21 // completion.
22 WAIT_GCM,
23 // The GCM message notifying of the archiving operation completion was
24 // received for this item.
25 GOT_GCM,
26 // A GetOperation RPC was sent for this item to query for the final results
27 // of its archiving request.
28 SENT_GET_OP,
29 // Information was received about a successfully created archive for this
30 // item that can now be downloaded.
31 RECV_BUNDLE,
32 // This item's archive is currently being downloaded.
33 DL,
34 // Item has finished processing, successfully or otherwise and is waiting to
fgorski 2017/05/10 05:02:53 nit: put a , after otherwise
carlosk 2017/05/10 22:48:53 Done.
35 // be processed for stats reporting to UMA.
36 FIN,
37 // UMA stats have been reported and the item is being kept just long enough
38 // to confirm that the same URL is not being repeatedly requested by its
39 // client.
40 ZOMBIE,
41 };
42
43 // Error codes used to identify the reason why a prefetch item has finished
44 // processing.
45 enum class PrefetchItemErrorCode {
46 NO_ERROR,
47 };
48
49 } // namespace offline_pages
50
51 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698