| 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 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_POLICY_UTILS_H_ | |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_POLICY_UTILS_H_ | |
| 7 | |
| 8 namespace offline_pages { | |
| 9 | |
| 10 class OfflinerPolicy; | |
| 11 class SavePageRequest; | |
| 12 | |
| 13 class OfflinerPolicyUtils { | |
| 14 public: | |
| 15 enum class RequestExpirationStatus { | |
| 16 VALID, | |
| 17 EXPIRED, | |
| 18 START_COUNT_EXCEEDED, | |
| 19 COMPLETION_COUNT_EXCEEDED, | |
| 20 }; | |
| 21 | |
| 22 static RequestExpirationStatus CheckRequestExpirationStatus( | |
| 23 const SavePageRequest* request, | |
| 24 const OfflinerPolicy* policy); | |
| 25 }; | |
| 26 | |
| 27 } // namespace offline_pages | |
| 28 | |
| 29 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_POLICY_UTILS_H_ | |
| OLD | NEW |