| Index: components/offline_pages/background/queue_results.h
|
| diff --git a/components/offline_pages/background/queue_results.h b/components/offline_pages/background/queue_results.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5cc74921f5da0856554c125dd2e596e2359d47fe
|
| --- /dev/null
|
| +++ b/components/offline_pages/background/queue_results.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_QUEUE_RESULTS_H_
|
| +#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_QUEUE_RESULTS_H_
|
| +
|
| +#include "components/offline_pages/background/save_page_request.h"
|
| +#include "components/offline_pages/offline_store_types.h"
|
| +
|
| +namespace offline_pages {
|
| +
|
| +struct QueueResults {
|
| + typedef StoreUpdateResult<SavePageRequest> UpdateRequestsResult;
|
| +
|
| + enum class GetRequestsResult {
|
| + SUCCESS,
|
| + STORE_FAILURE,
|
| + };
|
| +
|
| + enum class AddRequestResult {
|
| + SUCCESS,
|
| + STORE_FAILURE,
|
| + ALREADY_EXISTS,
|
| + REQUEST_QUOTA_HIT, // Cannot add a request with this namespace, as it has
|
| + // reached a quota of active requests.
|
| + };
|
| +
|
| + // GENERATED_JAVA_ENUM_PACKAGE:org.chromium.components.offlinepages.background
|
| + enum class UpdateRequestResult {
|
| + SUCCESS,
|
| + STORE_FAILURE,
|
| + REQUEST_DOES_NOT_EXIST, // Failed to delete the request because it does not
|
| + // exist.
|
| + };
|
| +};
|
| +
|
| +} // namespace offline_pages
|
| +
|
| +#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_QUEUE_RESULTS_H_
|
|
|