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

Side by Side Diff: components/offline_pages/offline_page_metadata_store.h

Issue 1694863003: Refactor the offline page storage to include client namespace and id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address changes Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OFFLINE_PAGE_METADATA_STORE_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Get all of the offline pages from the store. 47 // Get all of the offline pages from the store.
48 virtual void Load(const LoadCallback& callback) = 0; 48 virtual void Load(const LoadCallback& callback) = 0;
49 49
50 // Asynchronously adds or updates offline page metadata to the store. 50 // Asynchronously adds or updates offline page metadata to the store.
51 // Result of the update is passed in callback. 51 // Result of the update is passed in callback.
52 virtual void AddOrUpdateOfflinePage(const OfflinePageItem& offline_page, 52 virtual void AddOrUpdateOfflinePage(const OfflinePageItem& offline_page,
53 const UpdateCallback& callback) = 0; 53 const UpdateCallback& callback) = 0;
54 54
55 // Asynchronously removes offline page metadata from the store. 55 // Asynchronously removes offline page metadata from the store.
56 // Result of the update is passed in callback. 56 // Result of the update is passed in callback.
57 virtual void RemoveOfflinePages(const std::vector<int64_t>& bookmark_ids, 57 virtual void RemoveOfflinePages(const std::vector<int64_t>& offline_ids,
58 const UpdateCallback& callback) = 0; 58 const UpdateCallback& callback) = 0;
59 59
60 // Resets the store. 60 // Resets the store.
61 virtual void Reset(const ResetCallback& callback) = 0; 61 virtual void Reset(const ResetCallback& callback) = 0;
62 }; 62 };
63 63
64 } // namespace offline_pages 64 } // namespace offline_pages
65 65
66 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ 66 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698