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

Side by Side Diff: components/offline_pages/background/request_queue_store.h

Issue 2379353003: [Offline pages] Applying StoreState to track RequestQueueStore state (Closed)
Patch Set: Addressing feedback Created 4 years, 2 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
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_REQUEST_QUEUE_STORE_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_ 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Asynchronously changes the state of requests from the store using their 68 // Asynchronously changes the state of requests from the store using their
69 // request id. 69 // request id.
70 virtual void ChangeRequestsState( 70 virtual void ChangeRequestsState(
71 const std::vector<int64_t>& request_ids, 71 const std::vector<int64_t>& request_ids,
72 const SavePageRequest::RequestState new_state, 72 const SavePageRequest::RequestState new_state,
73 const UpdateMultipleRequestsCallback& callback) = 0; 73 const UpdateMultipleRequestsCallback& callback) = 0;
74 74
75 // Resets the store. 75 // Resets the store.
76 virtual void Reset(const ResetCallback& callback) = 0; 76 virtual void Reset(const ResetCallback& callback) = 0;
77
78 // Gets the store state.
79 virtual StoreState state() const = 0;
77 }; 80 };
78 81
79 } // namespace offline_pages 82 } // namespace offline_pages
80 83
81 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_ 84 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698