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

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

Issue 1345043002: Update access info when an offline page is being visited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more fixes Created 5 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 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 <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 14 matching lines...) Expand all
25 typedef base::Callback<void(bool, const std::vector<OfflinePageItem>&)> 25 typedef base::Callback<void(bool, const std::vector<OfflinePageItem>&)>
26 LoadCallback; 26 LoadCallback;
27 typedef base::Callback<void(bool)> UpdateCallback; 27 typedef base::Callback<void(bool)> UpdateCallback;
28 28
29 OfflinePageMetadataStore(); 29 OfflinePageMetadataStore();
30 virtual ~OfflinePageMetadataStore(); 30 virtual ~OfflinePageMetadataStore();
31 31
32 // Get all of the offline pages from the store. 32 // Get all of the offline pages from the store.
33 virtual void Load(const LoadCallback& callback) = 0; 33 virtual void Load(const LoadCallback& callback) = 0;
34 34
35 // Asynchronously adds offline page metadata to the store. 35 // Asynchronously adds or updates offline page metadata to the store.
36 // Result of the update is passed in callback. 36 // Result of the update is passed in callback.
37 virtual void AddOfflinePage(const OfflinePageItem& offline_page, 37 virtual void AddOrUpdateOfflinePage(const OfflinePageItem& offline_page,
38 const UpdateCallback& callback) = 0; 38 const UpdateCallback& callback) = 0;
39 39
40 // Asynchronously removes offline page metadata from the store. 40 // Asynchronously removes offline page metadata from the store.
41 // Result of the update is passed in callback. 41 // Result of the update is passed in callback.
42 virtual void RemoveOfflinePages(const std::vector<int64>& bookmark_ids, 42 virtual void RemoveOfflinePages(const std::vector<int64>& bookmark_ids,
43 const UpdateCallback& callback) = 0; 43 const UpdateCallback& callback) = 0;
44 }; 44 };
45 45
46 } // namespace offline_pages 46 } // namespace offline_pages
47 47
48 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ 48 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_item.cc ('k') | components/offline_pages/offline_page_metadata_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698