| 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_QUEUE_RESULTS_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_QUEUE_RESULTS_H_ |
| 7 |
| 8 #include "components/offline_pages/background/save_page_request.h" |
| 9 #include "components/offline_pages/offline_store_types.h" |
| 10 |
| 11 namespace offline_pages { |
| 12 |
| 13 struct QueueResults { |
| 14 typedef StoreUpdateResult<SavePageRequest> UpdateRequestsResult; |
| 15 |
| 16 enum class GetRequestsResult { |
| 17 SUCCESS, |
| 18 STORE_FAILURE, |
| 19 }; |
| 20 |
| 21 enum class AddRequestResult { |
| 22 SUCCESS, |
| 23 STORE_FAILURE, |
| 24 ALREADY_EXISTS, |
| 25 REQUEST_QUOTA_HIT, // Cannot add a request with this namespace, as it has |
| 26 // reached a quota of active requests. |
| 27 }; |
| 28 |
| 29 // GENERATED_JAVA_ENUM_PACKAGE:org.chromium.components.offlinepages.background |
| 30 enum class UpdateRequestResult { |
| 31 SUCCESS, |
| 32 STORE_FAILURE, |
| 33 REQUEST_DOES_NOT_EXIST, // Failed to delete the request because it does not |
| 34 // exist. |
| 35 }; |
| 36 }; |
| 37 |
| 38 } // namespace offline_pages |
| 39 |
| 40 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_QUEUE_RESULTS_H_ |
| OLD | NEW |