| OLD | NEW |
| 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_CORE_OFFLINE_PAGE_METADATA_STORE_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_METADATA_STORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "components/offline_pages/offline_page_item.h" | 13 #include "components/offline_pages/core/offline_page_item.h" |
| 14 #include "components/offline_pages/offline_store_types.h" | 14 #include "components/offline_pages/core/offline_store_types.h" |
| 15 | 15 |
| 16 namespace offline_pages { | 16 namespace offline_pages { |
| 17 | 17 |
| 18 typedef StoreUpdateResult<OfflinePageItem> OfflinePagesUpdateResult; | 18 typedef StoreUpdateResult<OfflinePageItem> OfflinePagesUpdateResult; |
| 19 | 19 |
| 20 // OfflinePageMetadataStore keeps metadata for the offline pages. | 20 // OfflinePageMetadataStore keeps metadata for the offline pages. |
| 21 // Ability to create multiple instances of the store as well as behavior of | 21 // Ability to create multiple instances of the store as well as behavior of |
| 22 // asynchronous operations when the object is being destroyed, before such | 22 // asynchronous operations when the object is being destroyed, before such |
| 23 // operation finishes will depend on implementation. It should be possible to | 23 // operation finishes will depend on implementation. It should be possible to |
| 24 // issue multiple asynchronous operations in parallel. | 24 // issue multiple asynchronous operations in parallel. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // Resets the store. | 68 // Resets the store. |
| 69 virtual void Reset(const ResetCallback& callback) = 0; | 69 virtual void Reset(const ResetCallback& callback) = 0; |
| 70 | 70 |
| 71 // Gets the store state. | 71 // Gets the store state. |
| 72 virtual StoreState state() const = 0; | 72 virtual StoreState state() const = 0; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace offline_pages | 75 } // namespace offline_pages |
| 76 | 76 |
| 77 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_METADATA_STORE_H_ | 77 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_METADATA_STORE_H_ |
| OLD | NEW |