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